|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.runtime.DelegatingStoreManager
|
+--com.solarmetric.rd.kodo.runtime.datacache.DataCacheStoreManager
StoreManager proxy that delegates to a data cache when possible.
| Constructor Summary | |
DataCacheStoreManager(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
com.solarmetric.rd.kodo.runtime.datacache.DataCache cache)
Constructor. |
|
| Method Summary | |
void |
begin()
Begin a data store transaction. |
void |
commit()
Commit the current data store transaction. |
boolean |
exists(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Verify that the given instance exists in the data store; return false if it does not. |
java.util.Collection |
flush(java.util.Collection states)
Flush the given state manager collection to the datastore, returning a collection of user exceptions encountered during flushing. |
com.solarmetric.rd.kodo.runtime.datacache.DataCache |
getDataCache()
Return the cache in use. |
boolean |
initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.runtime.JDOState state,
java.lang.Object conn)
Initialize the given StateManager. |
void |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object conn)
Load the given StateManager. |
protected com.solarmetric.rd.kodo.runtime.PCData |
newPCData(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
|
void |
rollback()
Rollback the current data store transaction. |
void |
setPersistenceManager(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
Set a reference to the corresponding PersistenceManager. |
boolean |
synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object conn)
Update the version information in the given state manager to the version stored in the data store. |
| Methods inherited from class com.solarmetric.rd.kodo.runtime.DelegatingStoreManager |
beginOptimistic, copyDataStoreId, equals, getDataStoreIdClass, getDelegate, getInnermostDelegate, hashCode, newDataStoreId, newDataStoreId, newExtent, newQuery |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataCacheStoreManager(com.solarmetric.rd.kodo.conf.JDOConfiguration conf,
com.solarmetric.rd.kodo.runtime.StoreManager sm,
com.solarmetric.rd.kodo.runtime.datacache.DataCache cache)
sm - the store manager to delegate tocache - the cache to access for shared objects| Method Detail |
public com.solarmetric.rd.kodo.runtime.datacache.DataCache getDataCache()
public void setPersistenceManager(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
StoreManager
setPersistenceManager in interface StoreManagersetPersistenceManager in class DelegatingStoreManagerpublic void begin()
StoreManager
begin in interface StoreManagerbegin in class DelegatingStoreManagerpublic void commit()
StoreManager
commit in interface StoreManagercommit in class DelegatingStoreManagerpublic void rollback()
StoreManager
rollback in interface StoreManagerrollback in class DelegatingStoreManager
public boolean exists(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
exists in interface StoreManagerexists in class DelegatingStoreManager
public boolean synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object conn)
StoreManager
synchVersion in interface StoreManagersynchVersion in class DelegatingStoreManagersm - the instance to checkconn - the current connection information, or null if not
given to the calling method of the persistence
manager
public boolean initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.runtime.JDOState state,
java.lang.Object conn)
StoreManageroid of the
StateManager will be set, and the meta field of the
StateManager will be set to the class of the instance to load, or
possibly one of its superclasses. Initialization involves first
calling the StateManagerImpl.initialize(javax.jdo.spi.PersistenceCapable, com.solarmetric.rd.kodo.runtime.JDOState) method with
a new instance of the correct type constructed with the
JDOImplHelper#newInstance(Class,StateManager,Object) method
(this will reset the meta field of the StateManager if
the actual type was a subclass), then possibly loading fields if
if desired. If this method is called during a data store transaction,
the instance's database record should be locked. Version information
can be loaded if desired through the StateManagerImpl.setVersion(java.lang.Object)
method.
initialize in interface StoreManagerinitialize in class DelegatingStoreManagersm - the instance to initializestate - the lifecycle state to initialize the state
manager withconn - the current connection information, or null if not
given to the calling method of the persistence
manager
public void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object conn)
StoreManagerStateManagerImpl.setVersion(java.lang.Object) method.
load in interface StoreManagerload in class DelegatingStoreManagersm - the instance to loadfield - the field to load; the field corrsponding to the
metadata field at the given absolute index should
be loaded; additional fields can be loaded if
desired; attempting to load an additional field that
has been dirtied will cause the load to be ignoredconn - the current connection information, or null if not
given to the calling method of the persistence
managerpublic java.util.Collection flush(java.util.Collection states)
StoreManagerStateManagerImpl.setNextVersion(java.lang.Object) method. The current version
will roll over to this next version upon successful commit.
flush in interface StoreManagerflush in class DelegatingStoreManagerprotected com.solarmetric.rd.kodo.runtime.PCData newPCData(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||