public class SaveFieldManager extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
fetchBooleanField(int field)
Return the value of the given field.
|
byte |
fetchByteField(int field)
Return the value of the given field.
|
char |
fetchCharField(int field)
Return the value of the given field.
|
double |
fetchDoubleField(int field)
Return the value of the given field.
|
float |
fetchFloatField(int field)
Return the value of the given field.
|
int |
fetchIntField(int field)
Return the value of the given field.
|
long |
fetchLongField(int field)
Return the value of the given field.
|
Object |
fetchObjectField(int field)
Return the value of the given field.
|
short |
fetchShortField(int field)
Return the value of the given field.
|
String |
fetchStringField(int field)
Return the value of the given field.
|
static org.apache.openjpa.kernel.ClearFieldManager |
getInstance() |
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 |
storeBooleanField(int field,
boolean curVal)
Set the value of the given field.
|
void |
storeByteField(int field,
byte curVal)
Set the value of the given field.
|
void |
storeCharField(int field,
char curVal)
Set the value of the given field.
|
void |
storeDoubleField(int field,
double curVal)
Set the value of the given field.
|
void |
storeFloatField(int field,
float curVal)
Set the value of the given field.
|
void |
storeIntField(int field,
int curVal)
Set the value of the given field.
|
void |
storeLongField(int field,
long curVal)
Set the value of the given field.
|
void |
storeObjectField(int field,
Object curVal)
Set the value of the given field.
|
void |
storeShortField(int field,
short curVal)
Set the value of the given field.
|
void |
storeStringField(int field,
String curVal)
Set the value of the given field.
|
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 FieldSupplierpublic void storeObjectField(int field,
Object curVal)
FieldConsumerstoreObjectField in interface FieldConsumerpublic static org.apache.openjpa.kernel.ClearFieldManager getInstance()
public boolean fetchBooleanField(int field)
FieldSupplierfetchBooleanField in interface FieldSupplierpublic byte fetchByteField(int field)
FieldSupplierfetchByteField in interface FieldSupplierpublic char fetchCharField(int field)
FieldSupplierfetchCharField in interface FieldSupplierpublic double fetchDoubleField(int field)
FieldSupplierfetchDoubleField in interface FieldSupplierpublic float fetchFloatField(int field)
FieldSupplierfetchFloatField in interface FieldSupplierpublic int fetchIntField(int field)
FieldSupplierfetchIntField in interface FieldSupplierpublic long fetchLongField(int field)
FieldSupplierfetchLongField in interface FieldSupplierpublic short fetchShortField(int field)
FieldSupplierfetchShortField in interface FieldSupplierpublic String fetchStringField(int field)
FieldSupplierfetchStringField in interface FieldSupplierpublic void storeBooleanField(int field,
boolean curVal)
FieldConsumerstoreBooleanField in interface FieldConsumerpublic void storeByteField(int field,
byte curVal)
FieldConsumerstoreByteField in interface FieldConsumerpublic void storeCharField(int field,
char curVal)
FieldConsumerstoreCharField in interface FieldConsumerpublic void storeDoubleField(int field,
double curVal)
FieldConsumerstoreDoubleField in interface FieldConsumerpublic void storeFloatField(int field,
float curVal)
FieldConsumerstoreFloatField in interface FieldConsumerpublic void storeIntField(int field,
int curVal)
FieldConsumerstoreIntField in interface FieldConsumerpublic void storeLongField(int field,
long curVal)
FieldConsumerstoreLongField in interface FieldConsumerpublic void storeShortField(int field,
short curVal)
FieldConsumerstoreShortField in interface FieldConsumerpublic void storeStringField(int field,
String curVal)
FieldConsumerstoreStringField in interface FieldConsumerCopyright © 2006–2022 Apache Software Foundation. All rights reserved.