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, getInstance
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeShortField, storeStringField
SaveFieldManager(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)
FieldSupplier
fetchObjectField
in interface FieldSupplier
fetchObjectField
in class ClearFieldManager
public void storeObjectField(int field, Object curVal)
FieldConsumer
storeObjectField
in interface FieldConsumer
storeObjectField
in class AbstractFieldManager
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.