|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.state.StateManagerImpl
public class 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,
java.lang.Class pcClass,
java.lang.Object id,
FieldValues fv)
Constructs a state manager to manage a new populated instance having the given object ID and the given field values. |
|
StateManagerImpl(PersistenceManager pm,
javax.jdo.spi.PersistenceCapable pc,
FieldValues preInsertChanges)
Constructs a state manager to manage an existing persistence-capable instance that is becoming newly persistent. |
Method Summary | |
---|---|
(package private) void |
clearFields()
|
(package private) void |
clearSavedFields()
|
void |
deletePersistent()
|
(package private) void |
disconnect()
|
void |
dump(java.io.PrintWriter out)
|
(package private) void |
enlistInTransaction()
|
void |
evict()
|
(package private) void |
evictFromTransaction()
|
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). |
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 |
loadDefaultFetchGroup()
Loads all of the default fetch group fields into the instance. |
(package private) void |
loadDFGFields()
Fetchs from the database all fields in the default fetch group not already loaded. |
(package private) void |
loadUnloadedFields()
Fetchs from the database all fields not currently loaded. |
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()
|
void |
makeTransactional()
|
void |
makeTransient()
|
java.lang.Object |
newSCOInstance(int fieldNumber,
java.lang.Object value)
|
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 i,
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. |
java.lang.Object |
provideField(int fieldNumber)
|
void |
provideFields(int[] fieldNumbers,
FieldManager fm)
Called from the StoreManager after StoreManager.update() is called to obtain updated values from the PersistenceCapable associated with this StateManager. |
void |
refresh()
|
(package private) void |
refreshLoadedFields()
Refreshes from the database all fields currently loaded. |
void |
replaceField(int fieldNumber,
java.lang.Object value)
|
void |
replaceFields(int[] fieldNumbers,
FieldManager fm)
Called from the StoreManager to refresh data in the PersistenceCapable object associated with this StateManager. |
void |
replaceSCOField(int fieldNumber,
java.lang.Object value)
|
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. |
(package private) void |
restoreFields()
|
void |
retrieve(boolean DFGOnly)
|
(package private) void |
saveFields()
|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateManagerImpl(PersistenceManager pm, java.lang.Class pcClass, java.lang.Object id)
PersistenceManager.getObjectById(Object,boolean)
).
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.public StateManagerImpl(PersistenceManager pm, java.lang.Class pcClass, java.lang.Object id, FieldValues fv)
PersistenceManager.getObjectById(Object,FieldValues)
).
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.fv
- the initial field values of the object.public StateManagerImpl(PersistenceManager pm, javax.jdo.spi.PersistenceCapable pc, FieldValues preInsertChanges)
This constructor is used for assigning state managers to existing
instances that are transitioning to a persistent state (i.e. via
PersistenceManager.makePersistent(Object)
).
pm
- the persistence manager controlling this state manager.pc
- the instance being make persistent.Method Detail |
---|
void enlistInTransaction()
void evictFromTransaction()
void saveFields()
void restoreFields()
void clearFields()
void clearSavedFields()
public byte replacingFlags(javax.jdo.spi.PersistenceCapable pc)
replacingFlags
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instance
public javax.jdo.PersistenceManager getPersistenceManager(javax.jdo.spi.PersistenceCapable pc)
getPersistenceManager
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instance
public void makeDirty(int field)
public void makeDirty(javax.jdo.spi.PersistenceCapable pc, java.lang.String fieldName)
makeDirty
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefieldName
- the name of the fieldpublic java.lang.Object getObjectId()
public StoreManager getStoreManager()
public PersistenceManager getPersistenceManager()
public java.lang.Object getObjectId(javax.jdo.spi.PersistenceCapable pc)
getObjectId
in interface javax.jdo.spi.StateManager
pc
- 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.StateManager
pc
- 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.StateManager
pc
- 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.StateManager
pc
- 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.StateManager
pc
- the calling PersistenceCapable instance
public boolean isPersistent(javax.jdo.spi.PersistenceCapable pc)
Transient instances return false.
isPersistent
in interface javax.jdo.spi.StateManager
pc
- 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.StateManager
pc
- 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.StateManager
pc
- the calling PersistenceCapable instance
PersistenceManager.deletePersistent(Object pc)
void loadDFGFields()
void loadUnloadedFields()
void refreshLoadedFields()
public void loadDefaultFetchGroup()
public void preSerialize(javax.jdo.spi.PersistenceCapable pc)
preSerialize
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancepublic 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.StateManager
pc
- the calling PersistenceCapable instancefield
- the absolute field number
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.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setByteField(javax.jdo.spi.PersistenceCapable pc, int field, byte currentValue, byte newValue)
setByteField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setCharField(javax.jdo.spi.PersistenceCapable pc, int field, char currentValue, char newValue)
setCharField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setDoubleField(javax.jdo.spi.PersistenceCapable pc, int field, double currentValue, double newValue)
setDoubleField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setFloatField(javax.jdo.spi.PersistenceCapable pc, int field, float currentValue, float newValue)
setFloatField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setIntField(javax.jdo.spi.PersistenceCapable pc, int field, int currentValue, int newValue)
setIntField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setLongField(javax.jdo.spi.PersistenceCapable pc, int field, long currentValue, long newValue)
setLongField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setShortField(javax.jdo.spi.PersistenceCapable pc, int field, short currentValue, short newValue)
setShortField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setStringField(javax.jdo.spi.PersistenceCapable pc, int field, java.lang.String currentValue, java.lang.String newValue)
setStringField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void setObjectField(javax.jdo.spi.PersistenceCapable pc, int field, java.lang.Object currentValue, java.lang.Object newValue)
setObjectField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the new value for the fieldpublic void providedBooleanField(javax.jdo.spi.PersistenceCapable pc, int field, boolean currentValue)
providedBooleanField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedByteField(javax.jdo.spi.PersistenceCapable pc, int field, byte currentValue)
providedByteField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedCharField(javax.jdo.spi.PersistenceCapable pc, int field, char currentValue)
providedCharField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedDoubleField(javax.jdo.spi.PersistenceCapable pc, int field, double currentValue)
providedDoubleField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedFloatField(javax.jdo.spi.PersistenceCapable pc, int field, float currentValue)
providedFloatField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedIntField(javax.jdo.spi.PersistenceCapable pc, int field, int currentValue)
providedIntField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedLongField(javax.jdo.spi.PersistenceCapable pc, int field, long currentValue)
providedLongField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedShortField(javax.jdo.spi.PersistenceCapable pc, int field, short currentValue)
providedShortField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedStringField(javax.jdo.spi.PersistenceCapable pc, int field, java.lang.String currentValue)
providedStringField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedObjectField(javax.jdo.spi.PersistenceCapable pc, int i, java.lang.Object currentValue)
providedObjectField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic boolean replacingBooleanField(javax.jdo.spi.PersistenceCapable pc, int field)
replacingBooleanField
in interface javax.jdo.spi.StateManager
pc
- the calling PersistenceCapable instancefield
- the field number
public byte replacingByteField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingByteField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public char replacingCharField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingCharField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public double replacingDoubleField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingDoubleField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public float replacingFloatField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingFloatField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public int replacingIntField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingIntField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public long replacingLongField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingLongField
in interface javax.jdo.spi.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public short replacingShortField(javax.jdo.spi.PersistenceCapable obj, int field)
replacingShortField
in interface javax.jdo.spi.StateManager
obj
- 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.StateManager
obj
- 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.StateManager
obj
- the calling PersistenceCapable instancefield
- the field number
public javax.jdo.spi.PersistenceCapable getObject()
public java.lang.Object provideField(int fieldNumber)
public void replaceField(int fieldNumber, java.lang.Object value)
public void provideFields(int[] fieldNumbers, FieldManager fm)
fieldNumbers
- 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)
fieldNumbers
- An array of field numbers to be refreshed by the Storefm
- The updated values are stored in this object. This object is only valid
for the duration of this call.public java.lang.Object newSCOInstance(int fieldNumber, java.lang.Object value)
public void replaceSCOField(int fieldNumber, java.lang.Object value)
public void makeTransactional()
public void makeNontransactional()
public void makeTransient()
public void evict()
public void refresh()
public void retrieve(boolean DFGOnly)
public void postCommit()
public void preRollback()
public void deletePersistent()
public 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.
void disconnect()
public void dump(java.io.PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |