cmu.survey.data
Class TableStorageFactory

java.lang.Object
  extended by cmu.survey.data.TableStorageFactory

public class TableStorageFactory
extends java.lang.Object


Constructor Summary
TableStorageFactory()
           
 
Method Summary
static TableStorage getInstance(DatabaseConnection databaseConnection)
          If you have already created a TableStorage, call this method -- it will find an existing DataBitStorage for the databaseConnectionString, and if none exists, it will create one with tableStorage.
static TableStorage getInstance(java.lang.String databaseConnectionString)
           
protected static TableStorage getNewInstance(DatabaseConnection databaseConnection)
           
protected static TableStorage getNewInstance(java.lang.String databaseConnectionString)
           
static void unregisterInstance(TableStorage tableStorage)
          This should be called when a created TableStorage is closed, so we will reload it next time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableStorageFactory

public TableStorageFactory()
Method Detail

getInstance

public static TableStorage getInstance(java.lang.String databaseConnectionString)
                                throws java.lang.Throwable
Throws:
java.lang.Throwable

getInstance

public static TableStorage getInstance(DatabaseConnection databaseConnection)
                                throws java.lang.Throwable
If you have already created a TableStorage, call this method -- it will find an existing DataBitStorage for the databaseConnectionString, and if none exists, it will create one with tableStorage.

Parameters:
databaseConnection -
Returns:
Throws:
java.lang.Throwable

getNewInstance

protected static TableStorage getNewInstance(java.lang.String databaseConnectionString)
                                      throws java.lang.Throwable
Throws:
java.lang.Throwable

getNewInstance

protected static TableStorage getNewInstance(DatabaseConnection databaseConnection)
                                      throws java.lang.Throwable
Throws:
java.lang.Throwable

unregisterInstance

public static void unregisterInstance(TableStorage tableStorage)
This should be called when a created TableStorage is closed, so we will reload it next time.

Parameters:
tableStorage -