|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Internal persistence manager interface.
| Field Summary | |
static BitSet |
EXCLUDE_ALL
Marker bitset to indicate that all field loads should be excluded in the getObjectById methods of this interface. |
static int |
OID_ALLOW_NEW
|
static int |
OID_COPY
|
static int |
OID_VALIDATE
|
| Fields inherited from interface kodo.runtime.KodoPersistenceManager |
CONN_RETAIN_DEMAND, CONN_RETAIN_PM, CONN_RETAIN_TRANS, DETACH_ALL, DETACH_FGS, DETACH_LOADED, LOCK_NONE, LOCK_READ, LOCK_WRITE, LOOKUP_CHECK, LOOKUP_HOLLOW |
| 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. |
InverseManager |
getInverseManager()
Return the inverse manager in use. |
LockManager |
getLockManager()
Return the lock manager in use. |
Object |
getObjectById(Object oid,
FetchConfiguration conf,
BitSet exclude,
Object context,
int flags)
Return the object with the given oid. |
Object[] |
getObjectsById(Object[] oids,
FetchConfiguration conf,
BitSet exclude,
Object context,
int flags)
Return the objects with the given oids. |
KodoStateManager |
getStateManager(Object pc)
Return the state manager for the given instance. |
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,
Object id,
KodoStateManager owner,
int ownerField)
Make the given instance embedded. |
KodoStateManager |
makePersistent(Object pc,
Object id)
Make the given instance persistent. |
KodoStateManager |
newStateManager(Object oid,
boolean copyOids)
Create a new state manager with the given oid and corresponding metadata. |
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 |
| Field Detail |
public static final BitSet EXCLUDE_ALL
getObjectById methods of this interface.public static final int OID_VALIDATE
public static final int OID_COPY
public static final int OID_ALLOW_NEW
| Method Detail |
public Object getObjectById(Object oid,
FetchConfiguration conf,
BitSet exclude,
Object context,
int flags)
exclude mask.
public Object[] getObjectsById(Object[] oids,
FetchConfiguration conf,
BitSet exclude,
Object context,
int flags)
public KodoStateManager makePersistent(Object pc,
Object id)
pc - the instance to persistid - the id to give the state manager; may be null for default
public KodoStateManager makeEmbedded(Object pc,
Object id,
KodoStateManager owner,
int ownerField)
pc - the instance to embed, or null to embed a
newly-created instance that will be loaded with
datastore dataid - the id to give the embedded state manager; may be
null for defaultowner - the owning state managerownerField - the field number of the owning objectpublic LockManager getLockManager()
public InverseManager getInverseManager()
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 KodoStateManager getStateManager(Object pc)
getStateManager in interface KodoPersistenceManagerpublic 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()
public KodoStateManager newStateManager(Object oid,
boolean copyOids)
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||