Methods Summary |
---|
public void | addDependency(com.sun.jdo.spi.persistence.support.sqlstore.StateManager sm)Adds another StateManager to this StateManager dependencies list.
|
public void | applyUpdates(java.lang.String fieldName, SCOCollection c)...
|
public void | commit(boolean retainValues)...
The PersistenceManager calls this method to inform
the StateManager that the transaction has been committed.
|
public void | copyFields(com.sun.jdo.spi.persistence.support.sqlstore.StateManager source)Copies field values from source to this
StateManager's fields.
|
public void | deletePersistent()...
The PersistenceManager calls this method to delete
a persistent instance.
|
public void | flushed()...
The PersistenceManager calls this method to inform
the StateManager that the flush processing is completed.
|
public java.lang.Object | getHiddenValue(int index)Returns value for a hidden field. This method expects index
to be negative for hidden fields.
|
public void | getLock()Lock this instance. This method must be called the same
number of times as #releaseLock().
|
public java.lang.Object | getObjectId()...
|
public PersistenceConfig | getPersistenceConfig()...
|
public com.sun.jdo.api.persistence.support.PersistenceManager | getPersistenceManager()...
|
public com.sun.jdo.api.persistence.support.PersistenceManager | getPersistenceManagerInternal()...
|
public java.lang.Object | getPersistent()get actualImage associated with this StateManager
|
public boolean | getPresenceMaskBit(int index)Returns true if field with this index is present in the instance.
|
public boolean | hasVersionConsistency()Returns true, if the managed instance has Version Consistency.
|
public void | initialize(boolean persistentInDB)State initialization
|
public boolean | isDeleted()...
|
public boolean | isDirty()
|
public boolean | isNew()...
|
public boolean | isPersistent()...
|
public boolean | isProcessed()...
The PersistenceManager calls this method to verify
that corresponding object has been flushed to the database
|
public boolean | isTransactional()...
|
public boolean | isValid()Returns true if this StateManager is valid for use.
The valid flag is initially set to false and changed to true
when the first operation (e.g. makePersistent(), loadForRead(), or
PersistenceManager.getObjectById()) succeeds.
|
public boolean | isVerificationFailed()Returns, if this state manager has failed version consistency
validation.
|
public void | loadForRead()...
|
public void | loadForUpdate()...
|
public void | makeDirty(java.lang.String fieldName)...
|
public void | makePersistent(PersistenceManager pm, java.lang.Object pc)The PersistenceManager needs to call this method
in order to make an instance persistent.
|
public void | makePresent(java.lang.String fieldName, java.lang.Object value)...
|
public void | markNotRegistered()Notifies the StateManager that this instance needs to be registered
with the global (weak) cache at rollback if it transitions to persistent
state.
Used for replacing a deleted instance with the newly persistent with
the same object id.
|
public void | markReplacement()Notifies the StateManager that this instance is a replacement for a
deleted instance with the same ObjectId.
|
public void | markVerifyAtDeregister()Notifies the StateManager that this instance needs to be verified at
the time it is removed from the global (weak) cache at rollback if it
transitions to transient state.
|
public boolean | needsRegisterWithVersionConsistencyCache()
|
public boolean | needsUpdateInVersionConsistencyCache()
|
public void | prepareGetField(int fieldID)
|
public void | prepareToUpdatePhaseI()
|
public void | prepareToUpdatePhaseII(java.util.HashSet phase3sms)This is the second phase of the commit processing. It populates phase3sms with all
the autopersistence instances that are no longer reachable from a persistent instance.
|
public void | prepareToUpdatePhaseIII()This is the third phase of commit processing. It sets up the delete dependencies among
all the autopersistent instances that have been flushed to the database.
|
public void | refreshPersistent()...
The PersistenceManager calls this method to refresh
the state of the StateManager from the database.
|
public void | release()Release references in the StateManager to the persistent instance,
ObjectId, and PersistenceManager.
|
public void | releaseLock()Release this instance. This method must be called the same
number of times as #getLock().
|
public void | reload()Reload the instance associated with this StateManager. Called by
{@link PersistenceManager#getObjectById(Object, boolean)
PersistenceManager.getObjectById(Object, boolean)} with validate
flag set to true
|
public void | replaceObjectField(java.lang.String fieldName, java.lang.Object o)...
|
public void | resolveDependencies()Tries to resolve the dependencies for all instances waiting for the
current state manager to be flushed to the store.
|
public void | rollback(boolean retainValues)...
The PersistenceManager calls this method to inform
the StateManager that the transaction has been rolled back.
|
public boolean[] | setBooleanArrayField(int fieldNumber, boolean[] value)
|
public boolean | setBooleanField(int fieldNumber, boolean value)
|
public byte[] | setByteArrayField(int fieldNumber, byte[] value)
|
public byte | setByteField(int fieldNumber, byte value)
|
public char | setCharArrayField(int fieldNumber, char value)
|
public char | setCharField(int fieldNumber, char value)
|
public double[] | setDoubleArrayField(int fieldNumber, double[] value)
|
public double | setDoubleField(int fieldNumber, double value)
|
public byte | setFlags(byte flags)...
|
public float[] | setFloatArrayField(int fieldNumber, float[] value)
|
public float | setFloatField(int fieldNumber, float value)
|
public void | setHiddenValue(int index, java.lang.Object value)Sets value for a hidden field. This method expects index
to be negative for hidden fields.
|
public int[] | setIntArrayField(int fieldNumber, int[] value)
|
public int | setIntField(int fieldNumber, int value)
|
public long[] | setLongArrayField(int fieldNumber, long[] value)
|
public long | setLongField(int fieldNumber, long value)
|
public java.lang.Object[] | setObjectArrayField(int fieldNumber, java.lang.Object[] value)
|
public java.lang.Object | setObjectField(int fieldNumber, java.lang.Object value)
|
public void | setObjectId(java.lang.Object objectId)...
|
public void | setPersistenceManager(com.sun.jdo.api.persistence.support.PersistenceManager pm)...
|
public void | setPersistent(java.lang.Object obj)set actualImage associated with this StateManager
|
public void | setPresenceMaskBit(int index)Marks field with this index as present.
|
public short[] | setShortArrayField(int fieldNumber, short[] value)
|
public short | setShortField(int fieldNumber, short value)
|
public java.lang.String[] | setStringArrayField(int fieldNumber, java.lang.String[] value)
|
public java.lang.String | setStringField(int fieldNumber, java.lang.String value)
|
public void | setValid()Mark this StateManager as valid. Called before returning from
getObjectById. Flag is set to true internally in the StateManager
at makePersistent(), or initialize(true) (to be used for storing
query or navigation results.
|
public void | setVerificationFailed()Marks that this state manager has failed version consistency
validation.
|
public void | updatePersistent(com.sun.jdo.spi.persistence.support.sqlstore.StateManager next)...
The PersistenceManager calls this method to flush
changes made to the StateManager to the database.
The specified StateManager argument is used to determine whether the
actual instance should be flushed immediately or whether batch update
is possible.
|
public boolean | verifyPersistent()Verify that an instance set up with Version consistency is not modified
in a parallel transaction.
|