|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
getBooleanField(java.lang.Object pc,
int field,
boolean currentValue)
Return the value for the field. |
byte |
getByteField(java.lang.Object pc,
int field,
byte currentValue)
Return the value for the field. |
char |
getCharField(java.lang.Object pc,
int field,
char currentValue)
Return the value for the field. |
double |
getDoubleField(java.lang.Object pc,
int field,
double currentValue)
Return the value for the field. |
float |
getFloatField(java.lang.Object pc,
int field,
float currentValue)
Return the value for the field. |
int |
getIntField(java.lang.Object pc,
int field,
int currentValue)
Return the value for the field. |
long |
getLongField(java.lang.Object pc,
int field,
long currentValue)
Return the value for the field. |
java.lang.Object |
getObjectField(java.lang.Object pc,
int field,
java.lang.Object currentValue)
Return the value for the field. |
java.lang.Object |
getObjectId(java.lang.Object pc)
Return the object representing the JDO identity of the calling instance. |
PersistenceManager |
getPersistenceManager(java.lang.Object pc)
Return the PersistenceManager that owns this instance. |
short |
getShortField(java.lang.Object pc,
int field,
short currentValue)
Return the value for the field. |
java.lang.String |
getStringField(java.lang.Object pc,
int field,
java.lang.String currentValue)
Return the value for the field. |
java.lang.Object |
getTransactionalObjectId(java.lang.Object pc)
Return the object representing the JDO identity of the calling instance. |
boolean |
isDeleted(java.lang.Object pc)
Tests whether this object has been deleted. |
boolean |
isDirty(java.lang.Object pc)
Tests whether this object is dirty. |
boolean |
isLoaded(java.lang.Object pc,
int field)
Return true if the field is cached in the calling instance. |
boolean |
isNew(java.lang.Object pc)
Tests whether this object has been newly made persistent. |
boolean |
isPersistent(java.lang.Object pc)
Tests whether this object is persistent. |
boolean |
isTransactional(java.lang.Object pc)
Tests whether this object is transactional. |
void |
makeDirty(java.lang.Object pc,
java.lang.String fieldName)
Mark the associated PersistenceCapable field dirty. |
void |
preSerialize(java.lang.Object pc)
Guarantee that the serializable transactional and persistent fields are loaded into the instance. |
void |
providedBooleanField(java.lang.Object pc,
int field,
boolean currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedByteField(java.lang.Object pc,
int field,
byte currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedCharField(java.lang.Object pc,
int field,
char currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedDoubleField(java.lang.Object pc,
int field,
double currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedFloatField(java.lang.Object pc,
int field,
float currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedIntField(java.lang.Object pc,
int field,
int currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedLongField(java.lang.Object pc,
int field,
long currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedObjectField(java.lang.Object pc,
int field,
java.lang.Object currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedShortField(java.lang.Object pc,
int field,
short currentValue)
The value of the field requested to be provided to the StateManager |
void |
providedStringField(java.lang.Object pc,
int field,
java.lang.String currentValue)
The value of the field requested to be provided to the StateManager |
boolean |
replacingBooleanField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
byte |
replacingByteField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
char |
replacingCharField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
double |
replacingDoubleField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
byte |
replacingFlags(java.lang.Object pc)
The owning StateManager uses this method to supply the value of the flags to the PersistenceCapable instance. |
float |
replacingFloatField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
int |
replacingIntField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
long |
replacingLongField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
java.lang.Object |
replacingObjectField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
short |
replacingShortField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
StateManager |
replacingStateManager(java.lang.Object pc,
StateManager sm)
Replace the current value of jdoStateManager. |
java.lang.String |
replacingStringField(java.lang.Object pc,
int field)
The replacing value of the field in the calling instance |
boolean |
setBooleanField(java.lang.Object pc,
int field,
boolean currentValue,
boolean newValue)
Mark the field as modified by the user, and return the new value for the field. |
byte |
setByteField(java.lang.Object pc,
int field,
byte currentValue,
byte newValue)
Mark the field as modified by the user, and return the new value for the field. |
char |
setCharField(java.lang.Object pc,
int field,
char currentValue,
char newValue)
Mark the field as modified by the user, and return the new value for the field. |
double |
setDoubleField(java.lang.Object pc,
int field,
double currentValue,
double newValue)
Mark the field as modified by the user, and return the new value for the field. |
float |
setFloatField(java.lang.Object pc,
int field,
float currentValue,
float newValue)
Mark the field as modified by the user, and return the new value for the field. |
int |
setIntField(java.lang.Object pc,
int field,
int currentValue,
int newValue)
Mark the field as modified by the user, and return the new value for the field. |
long |
setLongField(java.lang.Object pc,
int field,
long currentValue,
long newValue)
Mark the field as modified by the user, and return the new value for the field. |
java.lang.Object |
setObjectField(java.lang.Object pc,
int field,
java.lang.Object currentValue,
java.lang.Object newValue)
Mark the field as modified by the user, and return the new value for the field. |
short |
setShortField(java.lang.Object pc,
int field,
short currentValue,
short newValue)
Mark the field as modified by the user, and return the new value for the field. |
java.lang.String |
setStringField(java.lang.Object pc,
int field,
java.lang.String currentValue,
java.lang.String newValue)
Mark the field as modified by the user, and return the new value for the field. |
Method Detail |
public byte replacingFlags(java.lang.Object pc)
pc
- the calling PersistenceCapable instance
public StateManager replacingStateManager(java.lang.Object pc, 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.
pc
- the calling PersistenceCapable instancesm
- the proposed new value for the jdoStateManager
public boolean isDirty(java.lang.Object pc)
Transient nontransactional instances return false.
pc
- the calling PersistenceCapable instance
PersistenceCapable.jdoMakeDirty(String fieldName)
public boolean isTransactional(java.lang.Object pc)
Transient nontransactional instances return false.
pc
- the calling PersistenceCapable instance
public boolean isPersistent(java.lang.Object pc)
Transient instances return false.
pc
- the calling PersistenceCapable instance
PersistenceManager.makePersistent(Object pc)
public boolean isNew(java.lang.Object pc)
Transient instances return false.
pc
- the calling PersistenceCapable instance
PersistenceManager.makePersistent(Object pc)
public boolean isDeleted(java.lang.Object pc)
Transient instances return false.
pc
- the calling PersistenceCapable instance
PersistenceManager.deletePersistent(Object pc)
public PersistenceManager getPersistenceManager(java.lang.Object pc)
pc
- the calling PersistenceCapable instance
public void makeDirty(java.lang.Object pc, java.lang.String fieldName)
The StateManager will make a copy of the field so it can be restored if needed later, and then mark the field as modified in the current transaction.
pc
- the calling PersistenceCapable instancefieldName
- the name of the fieldpublic java.lang.Object getObjectId(java.lang.Object pc)
pc
- the calling PersistenceCapable instance
public java.lang.Object getTransactionalObjectId(java.lang.Object pc)
pc
- the calling PersistenceCapable instance
public boolean isLoaded(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public void preSerialize(java.lang.Object pc)
pc
- the calling PersistenceCapable instancepublic boolean getBooleanField(java.lang.Object pc, int field, boolean currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public char getCharField(java.lang.Object pc, int field, char currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public byte getByteField(java.lang.Object pc, int field, byte currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public short getShortField(java.lang.Object pc, int field, short currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public int getIntField(java.lang.Object pc, int field, int currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public long getLongField(java.lang.Object pc, int field, long currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public float getFloatField(java.lang.Object pc, int field, float currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public double getDoubleField(java.lang.Object pc, int field, double currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public java.lang.String getStringField(java.lang.Object pc, int field, java.lang.String currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public java.lang.Object getObjectField(java.lang.Object pc, int field, java.lang.Object currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the field
public boolean setBooleanField(java.lang.Object pc, int field, boolean currentValue, boolean newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public char setCharField(java.lang.Object pc, int field, char currentValue, char newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public byte setByteField(java.lang.Object pc, int field, byte currentValue, byte newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public short setShortField(java.lang.Object pc, int field, short currentValue, short newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public int setIntField(java.lang.Object pc, int field, int currentValue, int newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public long setLongField(java.lang.Object pc, int field, long currentValue, long newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public float setFloatField(java.lang.Object pc, int field, float currentValue, float newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public double setDoubleField(java.lang.Object pc, int field, double currentValue, double newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public java.lang.String setStringField(java.lang.Object pc, int field, java.lang.String currentValue, java.lang.String newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public java.lang.Object setObjectField(java.lang.Object pc, int field, java.lang.Object currentValue, java.lang.Object newValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldnewValue
- the proposed new value of the field
public void providedBooleanField(java.lang.Object pc, int field, boolean currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedCharField(java.lang.Object pc, int field, char currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedByteField(java.lang.Object pc, int field, byte currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedShortField(java.lang.Object pc, int field, short currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedIntField(java.lang.Object pc, int field, int currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedLongField(java.lang.Object pc, int field, long currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedFloatField(java.lang.Object pc, int field, float currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedDoubleField(java.lang.Object pc, int field, double currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedStringField(java.lang.Object pc, int field, java.lang.String currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic void providedObjectField(java.lang.Object pc, int field, java.lang.Object currentValue)
pc
- the calling PersistenceCapable instancefield
- the field numbercurrentValue
- the current value of the fieldpublic boolean replacingBooleanField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public char replacingCharField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public byte replacingByteField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public short replacingShortField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public int replacingIntField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public long replacingLongField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public float replacingFloatField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public double replacingDoubleField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public java.lang.String replacingStringField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
public java.lang.Object replacingObjectField(java.lang.Object pc, int field)
pc
- the calling PersistenceCapable instancefield
- the field number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |