|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.AbstractFieldManager
org.apache.openjpa.kernel.ClearFieldManager
org.apache.openjpa.kernel.SaveFieldManager
public class SaveFieldManager
FieldManager type used to store information for rollback.
| Constructor Summary | |
|---|---|
SaveFieldManager(StateManagerImpl sm,
PersistenceCapable pc,
BitSet dirty)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
fetchObjectField(int field)
Return the value of the given field. |
PersistenceCapable |
getState()
Return the persistence capable copy holding the rollback field values. |
BitSet |
getUnloaded()
Return the currently-loaded fields that will be unloaded after rollback. |
boolean |
isFieldEqual(int field,
Object current)
Compare the given field. |
boolean |
restoreField(int field)
Restore the given field. |
boolean |
saveField(int field)
Save the given field. |
void |
storeObjectField(int field,
Object curVal)
Set the value of the given field. |
| Methods inherited from class org.apache.openjpa.kernel.ClearFieldManager |
|---|
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchShortField, fetchStringField, getInstance |
| Methods inherited from class org.apache.openjpa.kernel.AbstractFieldManager |
|---|
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeShortField, storeStringField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SaveFieldManager(StateManagerImpl sm,
PersistenceCapable pc,
BitSet dirty)
StateManagerImpl of instance to save.
| Method Detail |
|---|
public PersistenceCapable getState()
public BitSet getUnloaded()
public boolean saveField(int field)
getState().
public boolean restoreField(int field)
public boolean isFieldEqual(int field,
Object current)
true if the field is the same in the current
state and in the saved state; otherwise, false.public Object fetchObjectField(int field)
FieldSupplier
fetchObjectField in interface FieldSupplierfetchObjectField in class ClearFieldManager
public void storeObjectField(int field,
Object curVal)
FieldConsumer
storeObjectField in interface FieldConsumerstoreObjectField in class AbstractFieldManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||