| java.lang.Object com.versant.core.ejb.EntityManagerImp
Method Summary | |
public void | addLifecycleListener(LifecycleListener listener, Class[] classes) | public void | addToCache(StatesReturned container) Add all the OIDs and States in the container to the cache. | public void | addToTxList(StateManagerImp sm) | public void | begin() | public void | cancelQueryExecution() | public void | checkModelConsistency() | public void | close() | public void | commit() Commit the active transaction. | public boolean | contains(Object entity) | public void | convertPcParamsToOID(Object[] params) TODO: move to base class
Convert all PC, VersantOid and objectid-class params to OIDs. | public Query | createNamedQuery(String name) | public Query | createNativeQuery(String sqlString) | public Query | createNativeQuery(String sqlString, Class resultClass) | public Query | createNativeQuery(String sqlString, String resultSetMapping) | public Query | createQuery(String ejbqlString) | public Transaction | currentTransaction() | public void | deletePersistent(Object o) | public void | deletePersistentAll(Object[] objects) | public void | deletePersistentAll(Collection collection) | public void | evict(Object o) | public void | evictAll(Object[] objects) | public void | evictAll(Collection collection) | public void | evictAll() | public void | evictAllFromL2CacheAfterCommit(Object[] a) | public void | evictAllFromL2CacheAfterCommit(Collection c) | public void | evictAllFromL2CacheAfterCommit(Class cls, boolean includeSubclasses) | public void | evictAllFromL2CacheAfterCommit() | public void | evictFromL2CacheAfterCommit(Object o) | public OID | extractOID(Object oid) | public void | fetchState(StateManagerImp sm, FetchGroup fg) | public Object | find(String entityName, Object primaryKey) | public T | find(Class<T> entityClass, Object primaryKey) | public void | flush() | public void | flush(boolean retainValues) | public void | flushIfDepOn(int[] cmdBits) | public String | getConnectionDriverName(String dataStore) | public String | getConnectionURL(String dataStore) | public int | getDatastoreTxLocking() | public Extent | getExtent(Class aClass, boolean b) | public boolean | getIgnoreCache() | public OID | getInternalOID(PersistenceCapable pc) | public PCStateMan | getInternalSM(PersistenceCapable pc) | public Connection | getJdbcConnection(String datastore) | public LifeCycleStatus | getLifeCycleStatus(Object entity) Determine the status
LifeCycleStatus of the supplied entity. | public boolean | getMultithreaded() | public boolean | getNontransactionalRead() | public boolean | getNontransactionalWrite() | public Object | getObjectByIDString(String value, boolean toValidate) | public Object | getObjectByIDString(String value, boolean toValidate, boolean resolved) | public StateManagerImp | getObjectById(OID oid) Return managed instance for supplied oid. | public Object | getObjectById(Object o, boolean b) | public Object | getObjectByIdForState(OID oid, int stateFieldNo, int navClassIndex, OID fromOID) | public Object | getObjectByIdFromCache(Object oid) | public Object | getObjectId(Object o) | public Class | getObjectIdClass(Class aClass) | public int | getObjectsById(Object[] oids, int length, Object[] data, int stateFieldNo, int classMetaDataIndex) | public boolean | getOptimistic() | public Object | getOptimisticLockingValue(Object o) | public PersistenceManager | getPersistenceManager() | public PersistenceManagerFactory | getPersistenceManagerFactory() | public int | getPmCacheRefType() | public boolean | getRestoreValues() | public boolean | getRetainValues() | public StorageManager | getStorageManager() | public Synchronization | getSynchronization() | public Transaction | getTransaction() | public Object | getTransactionalObjectId(Object o) | public Object | getUserObject() | public boolean | hasIdentity(Object pc) | public boolean | isActive() | public boolean | isCheckModelConsistencyOnCommit() | public boolean | isClosed() | public boolean | isDirty() | public boolean | isHollow(Object pc) | public boolean | isInterceptDfgFieldAccess() | public void | isOpen() | public boolean | isStateRequired(OID oid, FetchGroup fetchGroup) The StorageManager calls this method to check if we need prefetched
data or not. | public void | loadFetchGroup(Object pc, String name) | public void | logEvent(int level, String description, int ms) | public void | makeNontransactional(Object o) | public void | makeNontransactionalAll(Object[] objects) | public void | makeNontransactionalAll(Collection collection) | public void | makePersistent(Object o) | public void | makePersistentAll(Object[] objects) | public void | makePersistentAll(Collection collection) | public void | makeTransactional(Object o) | public void | makeTransactionalAll(Object[] objects) | public void | makeTransactionalAll(Collection collection) | public void | makeTransient(Object o) | public void | makeTransientAll(Object[] objects) | public void | makeTransientAll(Collection collection) | public void | makeTransientRecursive(Object pc) | public StateManagerImp | manage(OID oid, State state) | public T | merge(T entity) " If X is a detached entity, it is copied onto a pre-existing managed
entity instance X' of the same identity or a new managed copy of X is created. | public T | mergeImp(T entity, EntrySet mergeSet) | public StateManagerImp | mergeInternal(Object entity, EntrySet mergeSet) Merge in the provided entity. | public Object | newObjectIdInstance(Class aClass, String s) | public Object | newObjectIdInstance(Class pcClass, String str, boolean resolved) | public javax.jdo.Query | newQuery() | public javax.jdo.Query | newQuery(Object o) | public javax.jdo.Query | newQuery(String s, Object o) | public javax.jdo.Query | newQuery(Class aClass) | public javax.jdo.Query | newQuery(Extent extent) | public javax.jdo.Query | newQuery(Class aClass, Collection collection) | public javax.jdo.Query | newQuery(Class aClass, String s) | public javax.jdo.Query | newQuery(Class aClass, Collection collection, String s) | public javax.jdo.Query | newQuery(Extent extent, String s) | public void | persist(Object entity) " If X is a new entity, it becomes managed. | public void | refresh(Object entity) | public void | refreshAll(Object[] objects) | public void | refreshAll(Collection collection) | public void | refreshAll() | public void | remove(Object entity) | public void | removeLifecycleListener(LifecycleListener listener) | public void | retrieve(Object o) | public void | retrieveAll(Collection collection) | public void | retrieveAll(Collection collection, boolean b) | public void | retrieveAll(Object[] objects) | public void | retrieveAll(Object[] objects, boolean b) | public void | rollback() | public void | setCheckModelConsistencyOnCommit(boolean on) | public void | setDatastoreTxLocking(int mode) | public void | setIgnoreCache(boolean b) | public void | setInterceptDfgFieldAccess(boolean interceptDfgFieldAccess) | public void | setMultithreaded(boolean b) | public void | setNontransactionalRead(boolean b) | public void | setNontransactionalWrite(boolean b) | public void | setOptimistic(boolean b) | public void | setPmCacheRefType(Object pc, int type) | public void | setPmCacheRefType(Object[] pcs, int type) | public void | setPmCacheRefType(Collection col, int type) | public void | setPmCacheRefType(int type) | public void | setRestoreValues(boolean b) | public void | setRetainConnectionInOptTx(boolean on) | public void | setRetainValues(boolean b) | public void | setSynchronization(Synchronization synchronization) | public void | setUserObject(Object o) | public List | versantAllDirtyInstances() | public Collection | versantAttachCopy(Collection detached, boolean makeTransactional) | public Collection | versantAttachCopy(Collection detached, boolean makeTransactional, boolean shallow) | public Collection | versantDetachCopy(Collection pcs, String fetchGroup) | public javax.jdo.Query | versantNewNamedQuery(Class cls, String queryName) |
storeOidStateContainer | final public StatesToStore storeOidStateContainer(Code) | | This is used to transport the dirty stuff to the server.
|
addToCache | public void addToCache(StatesReturned container)(Code) | | Add all the OIDs and States in the container to the cache.
|
begin | public void begin()(Code) | | |
cancelQueryExecution | public void cancelQueryExecution()(Code) | | |
checkModelConsistency | public void checkModelConsistency()(Code) | | |
close | public void close()(Code) | | |
commit | public void commit()(Code) | | Commit the active transaction. Everything must be detached at the end
of the operation. This would mean that the pc instance must contain the needed
data for it to be detached.
|
convertPcParamsToOID | public void convertPcParamsToOID(Object[] params)(Code) | | TODO: move to base class
Convert all PC, VersantOid and objectid-class params to OIDs. This
makes it possible to pass an OID instead of a PC instance for PC
parameters.
|
currentTransaction | public Transaction currentTransaction()(Code) | | |
deletePersistent | public void deletePersistent(Object o)(Code) | | |
deletePersistentAll | public void deletePersistentAll(Object[] objects)(Code) | | |
evictAll | public void evictAll()(Code) | | |
evictAllFromL2CacheAfterCommit | public void evictAllFromL2CacheAfterCommit(Object[] a)(Code) | | |
evictAllFromL2CacheAfterCommit | public void evictAllFromL2CacheAfterCommit(Collection c)(Code) | | |
evictAllFromL2CacheAfterCommit | public void evictAllFromL2CacheAfterCommit(Class cls, boolean includeSubclasses)(Code) | | |
evictAllFromL2CacheAfterCommit | public void evictAllFromL2CacheAfterCommit()(Code) | | |
evictFromL2CacheAfterCommit | public void evictFromL2CacheAfterCommit(Object o)(Code) | | |
flush | public void flush()(Code) | | |
flush | public void flush(boolean retainValues)(Code) | | |
flushIfDepOn | public void flushIfDepOn(int[] cmdBits)(Code) | | |
getDatastoreTxLocking | public int getDatastoreTxLocking()(Code) | | |
getExtent | public Extent getExtent(Class aClass, boolean b)(Code) | | |
getIgnoreCache | public boolean getIgnoreCache()(Code) | | |
getInternalOID | public OID getInternalOID(PersistenceCapable pc)(Code) | | |
getMultithreaded | public boolean getMultithreaded()(Code) | | |
getNontransactionalRead | public boolean getNontransactionalRead()(Code) | | |
getNontransactionalWrite | public boolean getNontransactionalWrite()(Code) | | |
getObjectByIDString | public Object getObjectByIDString(String value, boolean toValidate)(Code) | | |
getObjectByIDString | public Object getObjectByIDString(String value, boolean toValidate, boolean resolved)(Code) | | |
getObjectById | public StateManagerImp getObjectById(OID oid)(Code) | | Return managed instance for supplied oid. If instance not found in
localCache then manage it.
Parameters: oid - |
getObjectByIdForState | public Object getObjectByIdForState(OID oid, int stateFieldNo, int navClassIndex, OID fromOID)(Code) | | |
getObjectsById | public int getObjectsById(Object[] oids, int length, Object[] data, int stateFieldNo, int classMetaDataIndex)(Code) | | |
getOptimistic | public boolean getOptimistic()(Code) | | |
getPersistenceManager | public PersistenceManager getPersistenceManager()(Code) | | |
getPersistenceManagerFactory | public PersistenceManagerFactory getPersistenceManagerFactory()(Code) | | |
getPmCacheRefType | public int getPmCacheRefType()(Code) | | |
getRestoreValues | public boolean getRestoreValues()(Code) | | |
getRetainValues | public boolean getRetainValues()(Code) | | |
getSynchronization | public Synchronization getSynchronization()(Code) | | |
getTransaction | public Transaction getTransaction()(Code) | | |
isActive | public boolean isActive()(Code) | | |
isCheckModelConsistencyOnCommit | public boolean isCheckModelConsistencyOnCommit()(Code) | | |
isClosed | public boolean isClosed()(Code) | | |
isDirty | public boolean isDirty()(Code) | | |
isInterceptDfgFieldAccess | public boolean isInterceptDfgFieldAccess()(Code) | | |
isOpen | public void isOpen()(Code) | | |
isStateRequired | public boolean isStateRequired(OID oid, FetchGroup fetchGroup)(Code) | | The StorageManager calls this method to check if we need prefetched
data or not.
|
logEvent | public void logEvent(int level, String description, int ms)(Code) | | |
makeNontransactional | public void makeNontransactional(Object o)(Code) | | |
makeNontransactionalAll | public void makeNontransactionalAll(Object[] objects)(Code) | | |
makeNontransactionalAll | public void makeNontransactionalAll(Collection collection)(Code) | | |
makePersistentAll | public void makePersistentAll(Object[] objects)(Code) | | |
makeTransactional | public void makeTransactional(Object o)(Code) | | |
makeTransactionalAll | public void makeTransactionalAll(Object[] objects)(Code) | | |
makeTransactionalAll | public void makeTransactionalAll(Collection collection)(Code) | | |
makeTransientAll | public void makeTransientAll(Object[] objects)(Code) | | |
makeTransientRecursive | public void makeTransientRecursive(Object pc)(Code) | | |
merge | public T merge(T entity)(Code) | | " If X is a detached entity, it is copied onto a pre-existing managed
entity instance X' of the same identity or a new managed copy of X is created.
" If X is a new entity instance, a new managed entity instance X' is created
and the state of X is copied into the new managed entity instance X'.
" If X is a removed entity instance, an IllegalArgumentException will be
thrown by the container (or the transaction commit will fail).
" If X is a managed entity, it is ignored by the merge operation, however,
the merge operation is cascaded to entities referenced by relationships
from X if these relationships have been annotated with the cascade member
value cascade=MERGE or cascade=ALL annotation.
" For all entities Y referenced by relationships from X having the cascade
member value cascade=MERGE or cascade=ALL, Y is merged recursively as Y'.
For all such Y referenced by X, X' is set to reference Y'.
(Note that if X is managed then X is the same object as X'.)
" If X is an entity merged to X', with a reference to another entity Y,
where cascade=MERGE or cascade=ALL is not specified, then navigation of
the same association from X' yields a reference to a managed object Y'
with the same persistent identity as Y.
" Fields or properties of type java.sql.Blob and java.sql.Clob are
ignored by the merge operation.
Parameters: entity - the instance that the state was merged to |
newQuery | public javax.jdo.Query newQuery()(Code) | | |
newQuery | public javax.jdo.Query newQuery(Class aClass)(Code) | | |
newQuery | public javax.jdo.Query newQuery(Extent extent)(Code) | | |
newQuery | public javax.jdo.Query newQuery(Extent extent, String s)(Code) | | |
persist | public void persist(Object entity)(Code) | | " If X is a new entity, it becomes managed. The entity X will be entered
into the database at or before transaction commit or as a result of the
flush operation .
" If X is a preexisting managed entity, it is ignored by the persist
operation. However, the persist operation is cascaded to entities
referenced by X, if the relationships from X to these other entities
is annotated with the cascade=PERSIST or cascade=ALL annotation member
value.
" If X is a removed entity, it becomes managed.
" If X is a detached object, an IllegalArgumentException will be thrown
by the container (or the transaction commit will fail).
" For all entities Y referenced by a relationship from X, if the
relationship to Y has been annotated with the cascade member
value cascade=PERSIST or cascade=ALL, the persist operation is
applied to Y.
Parameters: entity - |
refreshAll | public void refreshAll()(Code) | | |
retrieveAll | public void retrieveAll(Object[] objects, boolean b)(Code) | | |
rollback | public void rollback()(Code) | | |
setCheckModelConsistencyOnCommit | public void setCheckModelConsistencyOnCommit(boolean on)(Code) | | |
setDatastoreTxLocking | public void setDatastoreTxLocking(int mode)(Code) | | |
setIgnoreCache | public void setIgnoreCache(boolean b)(Code) | | |
setInterceptDfgFieldAccess | public void setInterceptDfgFieldAccess(boolean interceptDfgFieldAccess)(Code) | | |
setMultithreaded | public void setMultithreaded(boolean b)(Code) | | |
setNontransactionalRead | public void setNontransactionalRead(boolean b)(Code) | | |
setNontransactionalWrite | public void setNontransactionalWrite(boolean b)(Code) | | |
setOptimistic | public void setOptimistic(boolean b)(Code) | | |
setPmCacheRefType | public void setPmCacheRefType(Object pc, int type)(Code) | | |
setPmCacheRefType | public void setPmCacheRefType(Object[] pcs, int type)(Code) | | |
setPmCacheRefType | public void setPmCacheRefType(int type)(Code) | | |
setRestoreValues | public void setRestoreValues(boolean b)(Code) | | |
setRetainConnectionInOptTx | public void setRetainConnectionInOptTx(boolean on)(Code) | | |
setRetainValues | public void setRetainValues(boolean b)(Code) | | |
setSynchronization | public void setSynchronization(Synchronization synchronization)(Code) | | |
versantAllDirtyInstances | public List versantAllDirtyInstances()(Code) | | |
versantNewNamedQuery | public javax.jdo.Query versantNewNamedQuery(Class cls, String queryName)(Code) | | |
|
|