Methods Summary |
---|
public void | acquireCacheLock()Lock cache for getObjectById and result processing synchronization.
|
public void | acquireExclusiveLock()Acquires an exclusive lock from the persistence manager. By acquiring an
exclusive lock, a thread is guaranteed to have exclusive right to the persistence
runtime meaning no other threads can perform any operation in the runtime.
|
public void | acquireFieldUpdateLock()Serialize field updates
|
public void | acquireShareLock()Acquires a share lock from the persistence manager. This method will
put the calling thread to sleep if another thread is holding the exclusive lock.
|
public void | afterCompletion(int status)Called by Transaction commit() or rollback()
cleans up transactional cache
|
public void | beforeCompletion()Called by Transaction commit()
Loops through transactional cache and calls PersistentStore.updatePersistent()
on each instance
|
public void | clearFields(java.lang.Object pc)
|
public void | deregisterInstance(java.lang.Object oid)Deregister an instance.
|
public void | deregisterInstance(java.lang.Object oid, StateManager sm)Deregister an instance with this object Id, only if it holds the same instance.
|
public StateManager | findOrCreateStateManager(java.lang.Object oid, java.lang.Class pcClass)Returns StateManager instance for this Object Id.
|
public void | forceClose()Force to close the persistence manager. Called by
TransactionImpl.afterCompletion in case of the CMT transaction
and the status value passed to the method cannot be resolved.
|
public com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper | getCurrentWrapper()
|
public java.lang.Object | getField(java.lang.Object pc, int fieldNumber)
|
public byte | getFlags(java.lang.Object pc)
|
public RetrieveDesc | getRetrieveDesc(java.lang.Class classType)Return a RetrieveDesc given a Class object.
|
public RetrieveDesc | getRetrieveDesc(java.lang.String fieldName, java.lang.Class classType)Return a RetrieveDesc for a foreign field (relationship) given the
Class object for the parent class.
|
public StateManager | getStateManager(java.lang.Object pc)
|
public boolean | initializeFromVersionConsistencyCache(StateManager sm)Looks up the given instance in the Version Consistency cache and
if found, populates it from the cached values.
|
public void | internalFlush()Called by Query in pessimistic transaction
to flush changes to the database
|
public boolean | isActiveTransaction()Returns true if associated transaction is active
|
public boolean | isNontransactionalRead()Returns true if nontransactionalRead flag is set to true.
|
public boolean | isOptimisticTransaction()Returns true if associated transaction is optimistic
|
public java.lang.Object | newCollectionInstanceInternal(java.lang.Class type, java.lang.Object owner, java.lang.String fieldName, java.lang.Class elementType, boolean allowNulls, int initialSize)Called by newCollectionInstance from the public interface
or internally by the runtime
Will not result in marking field as dirty
|
public java.lang.Object | newInstance(StateManager sm)
|
public java.lang.Object | newSCOInstanceInternal(java.lang.Class type, java.lang.Object owner, java.lang.String fieldName)Called by newSCOInstance from the public interface or internally
by the runtime
Will not result in marking field as dirty
Returns a new Second Class Object instance of the type specified,
|
public void | notifyNontransactionalRead(boolean nontransactionalRead)For Transaction to notify PersistenceManager that
optimistic flag is changed
|
public void | notifyOptimistic(boolean optimistic)For Transaction to notify PersistenceManager that
optimistic flag is changed
|
public void | notifyStatusChange(boolean isActive)For Transaction to notify PersistenceManager that
status is changed
|
public void | registerInstance(StateManager sm, java.lang.Object oid, boolean throwDuplicateException, boolean forceRegister)Called by StateManager to register new instance. This method will throw
an JDOUserException if throwDuplicateException is true and the object being
registered already exists in the pm cache.
|
public void | registerInstance(StateManager sm, java.lang.Object oid)Called by StateManager to register persistent instance at the rollback if
it was removed from the global (weak) cache as the result of the replace
operation.
|
public void | releaseCacheLock()Release cache lock.
|
public void | releaseExclusiveLock()Release the exclusive lock and notify any thread waiting to get an exclusive or
share lock. Note that every releaseShareLock() call needs to be preceeded by
an acquireExclusiveLock() call.
|
public void | releaseFieldUpdateLock()Allow other threads to update fields
|
public void | releaseShareLock()Releases the share lock and notify any thread waiting to get an exclusive lock.
Note that every releaseShareLock() call needs to be preceeded by an acquireShareLock() call.
|
public java.lang.Object | retrieve(RetrieveDesc action, ValueFetcher parameters)Executes the given retrieve descriptor. The result
is a collection unless an aggregate query was specified.
In most cases the query result is a collection of
persistent objects. In case of a projection
on a local field the collection holds objects of that
type. For aggregate queries the result is a
single object, which type was defined by the caller.
|
public java.lang.Object | retrieve(RetrieveDesc action)Executes the given retrieve descriptor. The result
is a collection unless an aggregate query was specified.
In most cases the query result is a collection of
persistent objects. In case of a projection
on a local field the collection holds objects of that
type. For aggregate queries the result is a
single object, which type was defined by the caller.
|
public void | setField(java.lang.Object pc, int fieldNumber, java.lang.Object value)
|
public void | setFlags(java.lang.Object pc, byte flags)
|
public void | setStateManager(java.lang.Object pc, StateManager sm)
|