Class TableInitializer
- java.lang.Object
- 
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
- 
- edu.uiuc.ncsa.security.storage.sql.TableInitializer
 
 
- 
- All Implemented Interfaces:
- Initializable
 
 public class TableInitializer extends SQLDatabase implements Initializable Created by Jeff Gaynor 
 on 5/3/12 at 3:21 PM
- 
- 
Constructor SummaryConstructors Constructor Description TableInitializer(ConnectionPool connectionPool, Table table)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateNew()Creates a completely new instance.booleandestroy()Destroy the object completely.booleaninit()Initialize an existing object.booleanisCreated()(Optional) Returns true if the object in question has been created.booleanisDestroyed()(Optional) Returns true if the object in question has been destroyed.booleanisInitialized()(Optional) Returns true if the object in question has been initialized.- 
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabasedestroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
 
- 
 
- 
- 
- 
Constructor Detail- 
TableInitializerpublic TableInitializer(ConnectionPool connectionPool, Table table) 
 
- 
 - 
Method Detail- 
createNewpublic boolean createNew() Description copied from interface:InitializableCreates a completely new instance. Fails if an instance already exists. In that case, call destroy first. For instance, this might create all file system entries or drop then recreate all tables in an SQL database. Compare this with init which might delete any entries in a file store or SQL table.- Specified by:
- createNewin interface- Initializable
- Returns:
 
 - 
destroypublic boolean destroy() Description copied from interface:InitializableDestroy the object completely. Returnstrueif the object existed before destroy was called. Further calls to this object must fail after this invocation.- Specified by:
- destroyin interface- Initializable
 
 - 
initpublic boolean init() Description copied from interface:InitializableInitialize an existing object. This throws an exception if the object does not exist. The state after this call is exactly as if the system were created for the first time. Calls to the object before invocation have no guarantee of success.- Specified by:
- initin interface- Initializable
- Returns:
- Returns True if the operation succeeds.
 
 - 
isCreatedpublic boolean isCreated() Description copied from interface:Initializable(Optional) Returns true if the object in question has been created. If this cannot be determined then the call should throw an exception.- Specified by:
- isCreatedin interface- Initializable
- Returns:
 
 - 
isInitializedpublic boolean isInitialized() Description copied from interface:Initializable(Optional) Returns true if the object in question has been initialized. If this cannot be determined this call should throw an exception.- Specified by:
- isInitializedin interface- Initializable
- Returns:
 
 - 
isDestroyedpublic boolean isDestroyed() Description copied from interface:Initializable(Optional) Returns true if the object in question has been destroyed. If this cannot be determined this call should throw an exception.- Specified by:
- isDestroyedin interface- Initializable
- Returns:
 
 
- 
 
-