|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.state.StateManagerImpl
This class implements the StateManager.
| Constructor Summary | |
StateManagerImpl(PersistenceManager pm,
java.lang.Class pcClass,
java.lang.Object id)
Constructs a state manager to manage a new, hollow instance having the given object ID. |
|
StateManagerImpl(PersistenceManager pm,
javax.jdo.spi.PersistenceCapable pc)
Constructs a state manager to manage an existing persistence-capable instance that is not persistent. |
|
| Method Summary | |
void |
deletePersistent(boolean noStore)
Deletes the instance. |
void |
dump(java.io.PrintWriter out)
|
void |
evict()
|
void |
flush()
Flushes any dirty fields to the data store. |
boolean |
getBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
byte |
getByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
char |
getCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
double |
getDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
java.lang.Object |
getField(int field)
Reads the current value of the specified field. |
float |
getFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
int |
getIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
long |
getLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
javax.jdo.spi.PersistenceCapable |
getObject()
|
java.lang.Object |
getObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
java.lang.Object |
getObjectId()
|
java.lang.Object |
getObjectId(javax.jdo.spi.PersistenceCapable pc)
Return the object representing the JDO identity of the calling instance. |
PersistenceManager |
getPersistenceManager()
|
javax.jdo.PersistenceManager |
getPersistenceManager(javax.jdo.spi.PersistenceCapable pc)
Return the PersistenceManager that owns this instance. |
short |
getShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
StoreManager |
getStoreManager()
|
java.lang.String |
getStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue)
This method is called by the associated PersistenceCapable if the value for the specified field is not cached (i.e., StateManager.isLoaded() fails). |
java.lang.Object |
getTransactionalObjectId(javax.jdo.spi.PersistenceCapable pc)
Return the object representing the JDO identity of the calling instance. |
boolean |
isDeleted(javax.jdo.spi.PersistenceCapable pc)
Tests whether this object has been deleted. |
boolean |
isDirty(javax.jdo.spi.PersistenceCapable pc)
Tests whether this object is dirty. |
boolean |
isLoaded(javax.jdo.spi.PersistenceCapable pc,
int field)
Return true if the field is cached in the calling instance. |
boolean |
isNew(javax.jdo.spi.PersistenceCapable pc)
Tests whether this object has been newly made persistent. |
boolean |
isPersistent(javax.jdo.spi.PersistenceCapable pc)
Tests whether this object is persistent. |
boolean |
isTransactional(javax.jdo.spi.PersistenceCapable pc)
Tests whether this object is transactional. |
void |
makeDirty(int field)
Marks the given field dirty. |
void |
makeDirty(javax.jdo.spi.PersistenceCapable pc,
java.lang.String fieldName)
Mark the associated PersistenceCapable field dirty. |
void |
makeNontransactional()
|
boolean |
makePersistent()
Makes the instance persistent. |
void |
makeTransactional()
|
void |
makeTransient()
|
void |
offerPrefetchedFields(int[] fieldNumbers,
FieldManager fieldManager)
Offers the specified pre-fetched fields to the state manager. |
void |
postCommit()
This method is invoked when a commit is performed in a Transaction involving the PersistenceCapable managed by this StateManager |
void |
preRollback()
This method is invoked when a rollback is performed in a Transaction involving the PersistenceCapable managed by this StateManager. |
void |
preSerialize(javax.jdo.spi.PersistenceCapable pc)
Guarantee that the serializable transactional and persistent fields are loaded into the instance. |
void |
providedBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
providedStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue)
This method is called from the associated PersistenceCapable when its PersistenceCapable.jdoProvideFields() method is invoked. |
void |
provideFields(int[] fieldNumbers,
FieldManager fm)
Called to obtain current values from the PersistenceCapable associated with this StateManager. |
void |
refresh()
|
void |
replaceFields(int[] fieldNumbers,
FieldManager fm)
Called to refresh data in the PersistenceCapable object associated with this StateManager. |
boolean |
replacingBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a boolean field. |
byte |
replacingByteField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a byte field. |
char |
replacingCharField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a char field. |
double |
replacingDoubleField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a double field. |
byte |
replacingFlags(javax.jdo.spi.PersistenceCapable pc)
The StateManager uses this method to supply the value of jdoFlags to the associated PersistenceCapable instance. |
float |
replacingFloatField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a float field. |
int |
replacingIntField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a int field. |
long |
replacingLongField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a long field. |
java.lang.Object |
replacingObjectField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of an Object field. |
short |
replacingShortField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a short field. |
javax.jdo.spi.StateManager |
replacingStateManager(javax.jdo.spi.PersistenceCapable pc,
javax.jdo.spi.StateManager sm)
Replace the current value of jdoStateManager. |
java.lang.String |
replacingStringField(javax.jdo.spi.PersistenceCapable obj,
int field)
This method is invoked by the PersistenceCapable object's jdoReplaceField() method to refresh the value of a String field. |
void |
retrieve(boolean DFGOnly)
|
void |
setBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue,
boolean newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue,
byte newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue,
char newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue,
double newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setField(int field,
java.lang.Object currentValue,
java.lang.Object newValue,
boolean noStore)
Updates the current value of the specified field. |
void |
setFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue,
float newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue,
int newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue,
long newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue,
java.lang.Object newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue,
short newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
void |
setStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue,
java.lang.String newValue)
This method is called by the associated PersistenceCapable when the corresponding mutator method (setXXX()) is called on the PersistenceCapable. |
java.lang.String |
toString()
|
void |
validate()
Validates that the instance exists in the data store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StateManagerImpl(PersistenceManager pm,
javax.jdo.spi.PersistenceCapable pc)
pm - The persistence manager controlling this state manager.pc - The instance to be managed.
public StateManagerImpl(PersistenceManager pm,
java.lang.Class pcClass,
java.lang.Object id)
pm - The persistence manager controlling this state manager.pcClass - The class of the new instance to be created.id - The JDO identity of the object.| Method Detail |
public byte replacingFlags(javax.jdo.spi.PersistenceCapable pc)
replacingFlags in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public javax.jdo.PersistenceManager getPersistenceManager(javax.jdo.spi.PersistenceCapable pc)
getPersistenceManager in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public void makeDirty(int field)
makeDirty in interface StateManager
public void makeDirty(javax.jdo.spi.PersistenceCapable pc,
java.lang.String fieldName)
makeDirty in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefieldName - the name of the fieldpublic java.lang.Object getObjectId()
getObjectId in interface StateManagerpublic PersistenceManager getPersistenceManager()
getPersistenceManager in interface StateManagerpublic StoreManager getStoreManager()
getStoreManager in interface StateManagerpublic java.lang.Object getObjectId(javax.jdo.spi.PersistenceCapable pc)
getObjectId in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public javax.jdo.spi.StateManager replacingStateManager(javax.jdo.spi.PersistenceCapable pc,
javax.jdo.spi.StateManager sm)
This method is called by the PersistenceCapable whenever jdoReplaceStateManager is called and there is already an owning StateManager. This is a security precaution to ensure that the owning StateManager is the only source of any change to its reference in the PersistenceCapable.
replacingStateManager in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancesm - the proposed new value for the jdoStateManager
public java.lang.Object getTransactionalObjectId(javax.jdo.spi.PersistenceCapable pc)
getTransactionalObjectId in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public boolean isDirty(javax.jdo.spi.PersistenceCapable pc)
Transient nontransactional instances return false (JDO spec), but the TriActive implementation does not currently support the transient transactional state.
isDirty in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
PersistenceCapable.jdoMakeDirty(String fieldName)public boolean isTransactional(javax.jdo.spi.PersistenceCapable pc)
Transient nontransactional instances return false.
isTransactional in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public boolean isPersistent(javax.jdo.spi.PersistenceCapable pc)
Transient instances return false.
isPersistent in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
PersistenceManager.makePersistent(Object pc)public boolean isNew(javax.jdo.spi.PersistenceCapable pc)
Transient instances return false.
isNew in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
PersistenceManager.makePersistent(Object pc)public boolean isDeleted(javax.jdo.spi.PersistenceCapable pc)
Transient instances return false.
isDeleted in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
PersistenceManager.deletePersistent(Object pc)public void validate()
validate in interface StateManager
public void offerPrefetchedFields(int[] fieldNumbers,
FieldManager fieldManager)
offerPrefetchedFields in interface StateManagerpublic void preSerialize(javax.jdo.spi.PersistenceCapable pc)
preSerialize in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instance
public boolean isLoaded(javax.jdo.spi.PersistenceCapable pc,
int field)
In the TriActive implementation of this method, isLoaded() will always return true. If the field is not loaded, it will be loaded as a side effect of the call to this method. If it is in the default fetch group, the default fetch group, including this field, will be loaded.
isLoaded in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the absolute field number
public java.lang.Object getField(int field)
getField in interface StateManagerfield - The field number to read.
public void setField(int field,
java.lang.Object currentValue,
java.lang.Object newValue,
boolean noStore)
setField in interface StateManagerfield - The field number to write.currentValue - The current value of the field. Used to determine whether or not
the write is redundant. If necessary, the value can be obtained
using getField(int).newValue - The new value of the field. Primitives must be boxed in appropriate
java.lang wrapper classes.
public boolean getBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue)
getBooleanField in interface javax.jdo.spi.StateManager
public byte getByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue)
getByteField in interface javax.jdo.spi.StateManager
public char getCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue)
getCharField in interface javax.jdo.spi.StateManager
public double getDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue)
getDoubleField in interface javax.jdo.spi.StateManager
public float getFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue)
getFloatField in interface javax.jdo.spi.StateManager
public int getIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue)
getIntField in interface javax.jdo.spi.StateManager
public long getLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue)
getLongField in interface javax.jdo.spi.StateManager
public short getShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue)
getShortField in interface javax.jdo.spi.StateManager
public java.lang.String getStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue)
getStringField in interface javax.jdo.spi.StateManager
public java.lang.Object getObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue)
getObjectField in interface javax.jdo.spi.StateManager
public void setBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue,
boolean newValue)
setBooleanField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue,
byte newValue)
setByteField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue,
char newValue)
setCharField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue,
double newValue)
setDoubleField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue,
float newValue)
setFloatField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue,
int newValue)
setIntField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue,
long newValue)
setLongField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue,
short newValue)
setShortField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue,
java.lang.String newValue)
setStringField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void setObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue,
java.lang.Object newValue)
setObjectField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the fieldnewValue - the new value for the field
public void providedBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field,
boolean currentValue)
providedBooleanField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedByteField(javax.jdo.spi.PersistenceCapable pc,
int field,
byte currentValue)
providedByteField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedCharField(javax.jdo.spi.PersistenceCapable pc,
int field,
char currentValue)
providedCharField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedDoubleField(javax.jdo.spi.PersistenceCapable pc,
int field,
double currentValue)
providedDoubleField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedFloatField(javax.jdo.spi.PersistenceCapable pc,
int field,
float currentValue)
providedFloatField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedIntField(javax.jdo.spi.PersistenceCapable pc,
int field,
int currentValue)
providedIntField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedLongField(javax.jdo.spi.PersistenceCapable pc,
int field,
long currentValue)
providedLongField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedShortField(javax.jdo.spi.PersistenceCapable pc,
int field,
short currentValue)
providedShortField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedStringField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.String currentValue)
providedStringField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public void providedObjectField(javax.jdo.spi.PersistenceCapable pc,
int field,
java.lang.Object currentValue)
providedObjectField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field numbercurrentValue - the current value of the field
public boolean replacingBooleanField(javax.jdo.spi.PersistenceCapable pc,
int field)
replacingBooleanField in interface javax.jdo.spi.StateManagerpc - the calling PersistenceCapable instancefield - the field number
public byte replacingByteField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingByteField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public char replacingCharField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingCharField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public double replacingDoubleField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingDoubleField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public float replacingFloatField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingFloatField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public int replacingIntField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingIntField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public long replacingLongField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingLongField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public short replacingShortField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingShortField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public java.lang.String replacingStringField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingStringField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public java.lang.Object replacingObjectField(javax.jdo.spi.PersistenceCapable obj,
int field)
replacingObjectField in interface javax.jdo.spi.StateManagerobj - the calling PersistenceCapable instancefield - the field number
public javax.jdo.spi.PersistenceCapable getObject()
getObject in interface StateManager
public void provideFields(int[] fieldNumbers,
FieldManager fm)
provideFields in interface StateManagerfieldNumbers - An array of field numbers to be updated by the Storefm - The updated values are stored in this object. This object is only valid
for the duration of this call.
public void replaceFields(int[] fieldNumbers,
FieldManager fm)
Unwrapped values for SCO fields are wrapped with an appropriate SCO wrapper object.
replaceFields in interface StateManagerfieldNumbers - An array of field numbers to be refreshed.fm - Provides the updated values. This object is only used for the
duration of the call.public boolean makePersistent()
Any failure will leave the instance in its previous life-cycle state.
makePersistent in interface StateManagertrue if the object was successfully made persistent,
false if the object was already persistent.public void makeTransactional()
makeTransactional in interface StateManagerpublic void makeNontransactional()
makeNontransactional in interface StateManagerpublic void makeTransient()
makeTransient in interface StateManagerpublic void evict()
evict in interface StateManagerpublic void refresh()
refresh in interface StateManagerpublic void retrieve(boolean DFGOnly)
retrieve in interface StateManagerpublic void postCommit()
postCommit in interface StateManagerpublic void preRollback()
preRollback in interface StateManagerpublic void deletePersistent(boolean noStore)
Any failure will leave the instance in its previous life-cycle state.
deletePersistent in interface StateManagerpublic void flush()
Note that "dirty" in this case is not equated to being in the P_DIRTY state. The P_DIRTY state means that at least one field in the object has been written by the user during the current transaction, whereas for the purposes of this method, a field is "dirty" if it's been written by the user but not yet updated in the data store. The difference is, it's possible for an object's state to be P_DIRTY, yet have no "dirty" fields because flush() has been called at least once during the transaction.
flush in interface StateManagerpublic java.lang.String toString()
public void dump(java.io.PrintWriter out)
dump in interface StateManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||