|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.autostart.AbstractAutoStartMechanism
org.datanucleus.store.rdbms.autostart.SchemaAutoStarter
public class SchemaAutoStarter
Implementation of an Auto-Start Mechanism for DataNucleus. This implementation stores the classes supported in a table in the datastore. It is initialised and read at startup, and is continually updated during the lifetime of the calling application.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.datanucleus.store.autostart.AutoStartMechanism |
|---|
org.datanucleus.store.autostart.AutoStartMechanism.Mode |
| Field Summary | |
|---|---|
protected org.datanucleus.store.connection.ManagedConnection |
mconn
|
protected SchemaTable |
schemaTable
|
protected RDBMSStoreManager |
storeMgr
|
| Fields inherited from class org.datanucleus.store.autostart.AbstractAutoStartMechanism |
|---|
LOCALISER, mode, open |
| Constructor Summary | |
|---|---|
SchemaAutoStarter(org.datanucleus.store.StoreManager store_mgr,
org.datanucleus.ClassLoaderResolver clr)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addClass(org.datanucleus.store.StoreData data)
Method to add a class to the supported list. |
void |
close()
Closes a transaction for writing (add/delete) classes to the auto start mechanism |
void |
deleteAllClasses()
Method to drop support for all current classes. |
void |
deleteClass(String class_name)
Method to drop support for a class. |
Collection |
getAllClassData()
Accessor for the data for the classes supported. |
String |
getStorageDescription()
Utility to output the storage description for this mechanism. |
boolean |
isOpen()
Whether it's open for writing (add/delete) classes to the auto start mechanism |
void |
open()
Starts a transaction for writing (add/delete) classes to the auto start mechanism |
| Methods inherited from class org.datanucleus.store.autostart.AbstractAutoStartMechanism |
|---|
getMode, setMode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SchemaTable schemaTable
protected RDBMSStoreManager storeMgr
protected org.datanucleus.store.connection.ManagedConnection mconn
| Constructor Detail |
|---|
public SchemaAutoStarter(org.datanucleus.store.StoreManager store_mgr,
org.datanucleus.ClassLoaderResolver clr)
store_mgr - The RDBMSManager managing the store that we are auto-starting.clr - The ClassLoaderResolver| Method Detail |
|---|
public Collection getAllClassData()
throws org.datanucleus.store.exceptions.DatastoreInitialisationException
org.datanucleus.store.exceptions.DatastoreInitialisationExceptionpublic void open()
open in interface org.datanucleus.store.autostart.AutoStartMechanismopen in class org.datanucleus.store.autostart.AbstractAutoStartMechanismpublic void close()
close in interface org.datanucleus.store.autostart.AutoStartMechanismclose in class org.datanucleus.store.autostart.AbstractAutoStartMechanismpublic boolean isOpen()
isOpen in interface org.datanucleus.store.autostart.AutoStartMechanismisOpen in class org.datanucleus.store.autostart.AbstractAutoStartMechanismpublic void addClass(org.datanucleus.store.StoreData data)
data - Data for the class to add.public void deleteClass(String class_name)
class_name - The classpublic void deleteAllClasses()
public String getStorageDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||