|
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.rop.ROPStoreManager
Wraps the native store manager to handle calls using custom
PCResultObjectProviders.
| Constructor Summary | |
ROPStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager delegate)
|
|
| Method Summary | |
boolean |
initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.runtime.JDOState state,
java.lang.Object connection)
Initialize the given StateManager. |
void |
load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object connection)
Load the given StateManager. |
boolean |
synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object connection)
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 |
begin, beginOptimistic, commit, copyDataStoreId, equals, exists, flush, getDataStoreIdClass, getDelegate, getInnermostDelegate, hashCode, newDataStoreId, newDataStoreId, newExtent, newQuery, rollback, setPersistenceManager |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ROPStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager delegate)
| Method Detail |
public boolean initialize(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
com.solarmetric.rd.kodo.runtime.JDOState state,
java.lang.Object connection)
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 withconnection - the current connection information, or null if not
given to the calling method of the persistence
manager
public boolean synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object connection)
StoreManager
synchVersion in interface StoreManagersynchVersion in class DelegatingStoreManagersm - the instance to checkconnection - 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 connection)
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 ignoredconnection - the current connection information, or null if not
given to the calling method of the persistence
manager
|
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 | |||||||||