|
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
Base class for store manager decorators that delegate to another store manager for some operations.
| Constructor Summary | |
DelegatingStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager store)
Constructor. |
|
| Method Summary | |
void |
begin()
Begin a data store transaction. |
void |
beginOptimistic()
Notification that an optimistic transaction has started. |
void |
commit()
Commit the current data store transaction. |
java.lang.Object |
copyDataStoreId(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Copy the given object id value. |
boolean |
equals(java.lang.Object other)
|
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. |
java.lang.Class |
getDataStoreIdClass(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Return the class used by this StoreManager for datastore identity values. |
com.solarmetric.rd.kodo.runtime.StoreManager |
getDelegate()
Return the wrapped store manager. |
com.solarmetric.rd.kodo.runtime.StoreManager |
getInnermostDelegate()
Return the base underlying native store manager. |
int |
hashCode()
|
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. |
java.lang.Object |
newDataStoreId(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Create a new unique datastore identity for the given type. |
java.lang.Object |
newDataStoreId(java.lang.String str,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
Create a new unique datastore identity for the given type from the given string. |
javax.jdo.Extent |
newExtent(com.solarmetric.rd.kodo.meta.ClassMetaData meta,
boolean subclasses)
Return an extent of the given candidate class, optionally including subclasses. |
javax.jdo.Query |
newQuery(java.lang.String language,
java.lang.Object template)
Return a query implementation suitable for this runtime. |
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 connection)
Update the version information in the given state manager to the version stored in the data store. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelegatingStoreManager(com.solarmetric.rd.kodo.runtime.StoreManager store)
| Method Detail |
public com.solarmetric.rd.kodo.runtime.StoreManager getDelegate()
public com.solarmetric.rd.kodo.runtime.StoreManager getInnermostDelegate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic void setPersistenceManager(com.solarmetric.rd.kodo.runtime.PersistenceManagerImpl pm)
StoreManager
setPersistenceManager in interface StoreManagerpublic void beginOptimistic()
StoreManagerStoreManager.begin() method, which will still be called
when a true data store transaction should begin.
beginOptimistic in interface StoreManagerpublic void begin()
StoreManager
begin in interface StoreManagerpublic void commit()
StoreManager
commit in interface StoreManagerpublic void rollback()
StoreManager
rollback in interface StoreManager
public boolean exists(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
exists in interface StoreManager
public boolean synchVersion(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
java.lang.Object connection)
StoreManager
synchVersion in interface StoreManagersm - the instance to checkconnection - 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 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 StoreManagersm - 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 void load(com.solarmetric.rd.kodo.runtime.StateManagerImpl sm,
int field,
java.lang.Object connection)
StoreManagerStateManagerImpl.setVersion(java.lang.Object) method.
load in interface StoreManagersm - 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
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 StoreManagerpublic java.lang.Class getDataStoreIdClass(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
getDataStoreIdClass in interface StoreManager
public java.lang.Object copyDataStoreId(java.lang.Object oid,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
copyDataStoreId in interface StoreManagerpublic java.lang.Object newDataStoreId(com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
newDataStoreId in interface StoreManager
public java.lang.Object newDataStoreId(java.lang.String str,
com.solarmetric.rd.kodo.meta.ClassMetaData meta)
StoreManager
newDataStoreId in interface StoreManager
public javax.jdo.Extent newExtent(com.solarmetric.rd.kodo.meta.ClassMetaData meta,
boolean subclasses)
StoreManager
newExtent in interface StoreManager
public javax.jdo.Query newQuery(java.lang.String language,
java.lang.Object template)
StoreManager
newQuery in interface StoreManagerlanguage - the query language; implementations are only
required to support
javax.jdo.query.JDOQLtemplate - a template query instance also from this
StoreManager; this instance may be null; if not * null, the filter, variables, parameters, imports,
and candidate class should be copied from the
template to the returned Query instance
|
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 | |||||||||