|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.SchemaAutoStarter
Implementation of an Auto-Start Mechanism for JPOX. This implementation stores the classes supported in a table in the datastore. It is initialised and read at startup of JPOX, and is continually updated during the lifetime of the calling application.
Field Summary | |
protected java.sql.Connection |
conn
|
protected java.lang.String |
mode
|
static java.lang.String |
SCHEMA_TABLE
Name of value for the autoStartMechanism property for this starter. |
protected SchemaTable |
schemaTable
|
protected RDBMSManager |
storeMgr
|
Fields inherited from interface org.jpox.store.AutoStartMechanism |
MODE_CHECKED, MODE_IGNORED, MODE_QUIET, NONE |
Constructor Summary | |
SchemaAutoStarter(RDBMSManager store_mgr,
ClassLoaderResolver clr)
Constructor. |
Method Summary | |
void |
addClass(StoreData data)
Method to add a class to the supported list. |
void |
close()
Closes a transaction for writting (add/delete) classes to the auto start mechanism |
void |
deleteAllClasses()
Method to drop support for all current classes. |
void |
deleteClass(java.lang.String class_name)
Method to drop support for a class. |
java.util.Collection |
getAllClassData()
Accessor for the data for the classes supported. |
java.lang.String |
getMode()
Accessor for the mode of operation. |
java.lang.String |
getStorageDescription()
Utility to output the storage description for this mechanism. |
boolean |
isOpen()
Whether it's open for writting (add/delete) classes to the auto start mechanism |
void |
open()
Starts a transaction for writting (add/delete) classes to the auto start mechanism |
void |
setMode(java.lang.String mode)
Mutator for the mode of operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SCHEMA_TABLE
protected java.lang.String mode
protected SchemaTable schemaTable
protected RDBMSManager storeMgr
protected java.sql.Connection conn
Constructor Detail |
public SchemaAutoStarter(RDBMSManager store_mgr, ClassLoaderResolver clr)
store_mgr
- The RDBMSManager managing the store that we are
auto-starting.clr
- The ClassLoaderResolverMethod Detail |
public java.lang.String getMode()
getMode
in interface AutoStartMechanism
public void setMode(java.lang.String mode)
setMode
in interface AutoStartMechanism
mode
- Mode of operationpublic java.util.Collection getAllClassData() throws DatastoreInitialisationException
getAllClassData
in interface AutoStartMechanism
DatastoreInitialisationException
public void open()
open
in interface AutoStartMechanism
public void close()
close
in interface AutoStartMechanism
public boolean isOpen()
isOpen
in interface AutoStartMechanism
public void addClass(StoreData data)
addClass
in interface AutoStartMechanism
data
- Data for the class to add.public void deleteClass(java.lang.String class_name)
deleteClass
in interface AutoStartMechanism
class_name
- The classpublic void deleteAllClasses()
deleteAllClasses
in interface AutoStartMechanism
public java.lang.String getStorageDescription()
getStorageDescription
in interface AutoStartMechanism
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |