cmu.survey.data
Class TableStorageFactory
java.lang.Object
cmu.survey.data.TableStorageFactory
public class TableStorageFactory
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableStorageFactory
public TableStorageFactory()
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
-