edu.unh.sdb.common
Class WorkSpace

java.lang.Object
  extended by edu.unh.sdb.common.WorkSpace

public class WorkSpace
extends java.lang.Object

The WorkSpace class is a container holding the various objects that an SDB user will require during an SDB work session. This includes a list of datasources, lattices, and types.


Constructor Summary
WorkSpace(java.lang.String name)
           
WorkSpace(java.lang.String name, DataSourceCollection collection)
           
WorkSpace(java.lang.String name, DataSourceCollection collection, TypeTable t)
           
WorkSpace(java.lang.String name, TypeTable t)
           
WorkSpace(URL url)
           
 
Method Summary
 void addWorkSpace(java.lang.String name, WorkSpace ws)
          add the name of the AliasDataSource or ForeignReferenceDataSource to the look up table
 DBIF getDBConnection()
          Returns the DataBase Connection.
 DataSourceCollection getDSCollection()
          Returns the DataSourceCollection.
 LatticeCollection getLatticeCollection()
          Returns the LatticeCollection.
 java.lang.String getName()
          Returns the WorkSpace name as a String.
 TypeTable getTypeTable()
          Returns the TypeTable.
 URL getURL(java.lang.String name)
          Returns the URL of the primary database which the DataSource specified by the name is saved
 DataSource loadDS(java.lang.String name)
          add the DataSource specified by the name from database to workspace
 void loadFully()
          add all the DataSources' in database to workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkSpace

public WorkSpace(URL url)

WorkSpace

public WorkSpace(java.lang.String name)

WorkSpace

public WorkSpace(java.lang.String name,
                 TypeTable t)

WorkSpace

public WorkSpace(java.lang.String name,
                 DataSourceCollection collection)

WorkSpace

public WorkSpace(java.lang.String name,
                 DataSourceCollection collection,
                 TypeTable t)
Method Detail

getDSCollection

public DataSourceCollection getDSCollection()
Returns the DataSourceCollection.


getLatticeCollection

public LatticeCollection getLatticeCollection()
Returns the LatticeCollection.


getTypeTable

public TypeTable getTypeTable()
Returns the TypeTable.


getName

public java.lang.String getName()
Returns the WorkSpace name as a String.


getDBConnection

public DBIF getDBConnection()
Returns the DataBase Connection.


getURL

public URL getURL(java.lang.String name)
Returns the URL of the primary database which the DataSource specified by the name is saved


addWorkSpace

public void addWorkSpace(java.lang.String name,
                         WorkSpace ws)
add the name of the AliasDataSource or ForeignReferenceDataSource to the look up table


loadDS

public DataSource loadDS(java.lang.String name)
                  throws java.lang.Exception
add the DataSource specified by the name from database to workspace

Throws:
java.lang.Exception

loadFully

public void loadFully()
               throws java.lang.Exception
add all the DataSources' in database to workspace

Throws:
java.lang.Exception