|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.AbstractAutoStartMechanism
org.jpox.store.rdbms.SchemaAutoStarter
public class 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
|
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 class org.jpox.store.AbstractAutoStartMechanism |
|---|
LOCALISER, mode, open |
| Fields inherited from interface org.jpox.store.AutoStartMechanism |
|---|
MODE_CHECKED, MODE_IGNORED, MODE_QUIET, NONE |
| Constructor Summary | |
|---|---|
SchemaAutoStarter(StoreManager 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 |
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 |
| Methods inherited from class org.jpox.store.AbstractAutoStartMechanism |
|---|
getMode, setMode |
| 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 SchemaTable schemaTable
protected RDBMSManager storeMgr
protected java.sql.Connection conn
| Constructor Detail |
|---|
public SchemaAutoStarter(StoreManager store_mgr,
ClassLoaderResolver clr)
store_mgr - The RDBMSManager managing the store that we are
auto-starting.clr - The ClassLoaderResolver| Method Detail |
|---|
public java.util.Collection getAllClassData()
throws DatastoreInitialisationException
DatastoreInitialisationExceptionpublic void open()
open in interface AutoStartMechanismopen in class AbstractAutoStartMechanismpublic void close()
close in interface AutoStartMechanismclose in class AbstractAutoStartMechanismpublic boolean isOpen()
isOpen in interface AutoStartMechanismisOpen in class AbstractAutoStartMechanismpublic void addClass(StoreData data)
data - Data for the class to add.public void deleteClass(java.lang.String class_name)
class_name - The classpublic void deleteAllClasses()
public java.lang.String getStorageDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||