|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Internal persistence mangager interface.
| Fields inherited from interface kodo.runtime.KodoPersistenceManager |
CONN_RETAIN_DEMAND, CONN_RETAIN_PM, CONN_RETAIN_TRANS, LOCK_NONE, LOCK_READ, LOCK_WRITE |
| Method Summary | |
void |
assertActiveTransaction()
Throw an exception if there is no active transaction. |
void |
assertNontransactionalRead()
Throw an exception if there is no transaction active and nontransactional reading is not enabled. |
void |
assertOpen()
Throw an exception if this persistence manager has been closed. |
LockManager |
getLockManager()
Return the lock manager in use. |
Object |
getObjectById(Object oid,
FetchConfiguration conf,
Object connection)
Return the object with the given oid. |
Object |
getObjectById(Object oid,
FetchConfiguration fetch,
Object connection,
boolean validate,
boolean copyOid,
boolean allowNew)
Return the object with the given oid. |
Object[] |
getObjectsById(Object[] oids,
FetchConfiguration conf,
Object connection)
Return the objects with the given oids. |
StoreManager |
getStoreManager(boolean unwrap)
Return the store manager in use. |
void |
lock()
Synchronizes on an internal lock if the Multithreaded flag is set to true. |
KodoStateManager |
makeEmbedded(Object pc,
KodoStateManager owner,
int ownerField)
Make the given instance embedded. |
void |
unlock()
Releases the internal lock. |
| Methods inherited from interface javax.jdo.Transaction |
begin, commit, getNontransactionalRead, getNontransactionalWrite, getOptimistic, getPersistenceManager, getRestoreValues, getRetainValues, getSynchronization, isActive, rollback, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, setSynchronization |
| Methods inherited from interface javax.transaction.Synchronization |
afterCompletion, beforeCompletion |
| Methods inherited from interface javax.resource.cci.Connection |
close, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo |
| Methods inherited from interface javax.resource.cci.LocalTransaction |
begin, commit, rollback |
| Methods inherited from interface javax.resource.spi.LocalTransaction |
begin, commit, rollback |
| Methods inherited from interface com.solarmetric.util.Closeable |
close |
| Methods inherited from interface com.solarmetric.profile.ProfilingAgentProvider |
getProfilingAgent |
| Method Detail |
public Object getObjectById(Object oid,
FetchConfiguration conf,
Object connection)
public Object getObjectById(Object oid,
FetchConfiguration fetch,
Object connection,
boolean validate,
boolean copyOid,
boolean allowNew)
public Object[] getObjectsById(Object[] oids,
FetchConfiguration conf,
Object connection)
public KodoStateManager makeEmbedded(Object pc,
KodoStateManager owner,
int ownerField)
pc - the instance to embed, or null to embed a
newly-created instance that will be loaded with
datastore dataowner - the owning state managerownerField - the field number of the owning objectpublic LockManager getLockManager()
public StoreManager getStoreManager(boolean unwrap)
getStoreManager in interface KodoPersistenceManagerunwrap - if true, the native store manager will be returned;
otherwise, the store manager used by this
persistence manager, which may be a decorator
around the native store manager, will be returnedpublic void lock()
Multithreaded flag is set to true. Make sure to call
unlock() in a finally clause of the same method.public void unlock()
public void assertOpen()
public void assertActiveTransaction()
public void assertNontransactionalRead()
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||