public class SaveFieldManager extends ClearFieldManager implements Serializable
| Constructor and Description |
|---|
SaveFieldManager(StateManagerImpl sm,
PersistenceCapable pc,
BitSet dirty)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchShortField, fetchStringField, getInstancestoreBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeShortField, storeStringFieldSaveFieldManager(StateManagerImpl sm, PersistenceCapable pc, BitSet dirty)
StateManagerImpl of instance to save.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)
FieldSupplierfetchObjectField in interface FieldSupplierfetchObjectField in class ClearFieldManagerpublic void storeObjectField(int field,
Object curVal)
FieldConsumerstoreObjectField in interface FieldConsumerstoreObjectField in class AbstractFieldManagerCopyright © 2006–2013 Apache Software Foundation. All rights reserved.