|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateManager
StateManager manages objects state for persistency.
Method Summary | |
---|---|
void |
clearDirty(Persistent persistent)
Clears the dirty state. |
void |
clearDirty(Persistent persistent,
int fieldIndex)
Clears the field as dirty. |
void |
clearNew(Persistent persistent)
Clears the new state |
void |
clearReadable(Persistent persistent)
Clears the readable state. |
void |
clearReadable(Persistent persistent,
int fieldIndex)
Clears the field as readable. |
boolean |
isDirty(Persistent persistent)
Returns whether any of the fields of the object has been modified after construction or loading. |
boolean |
isDirty(Persistent persistent,
int fieldIndex)
Returns whether the field has been modified. |
boolean |
isNew(Persistent persistent)
Returns whether the object is newly constructed. |
boolean |
isReadable(Persistent persistent,
int fieldIndex)
Returns whether the field has been loaded from the datastore. |
void |
setDirty(Persistent persistent)
Sets all the fields of the object as dirty. |
void |
setDirty(Persistent persistent,
int fieldIndex)
Sets the field as dirty. |
void |
setManagedPersistent(Persistent persistent)
If one state manager is allocated per persistent object, call this method to set the managed persistent. |
void |
setNew(Persistent persistent)
Sets the state of the object as new for persistency |
void |
setReadable(Persistent persistent,
int fieldIndex)
Sets the field as readable. |
Method Detail |
---|
void setManagedPersistent(Persistent persistent)
persistent
- the persistent to manageboolean isNew(Persistent persistent)
void setNew(Persistent persistent)
void clearNew(Persistent persistent)
boolean isDirty(Persistent persistent)
boolean isDirty(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the object
void setDirty(Persistent persistent)
void setDirty(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the objectvoid clearDirty(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the objectvoid clearDirty(Persistent persistent)
boolean isReadable(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the object
void setReadable(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the objectvoid clearReadable(Persistent persistent, int fieldIndex)
fieldIndex
- the offset of the field in the objectvoid clearReadable(Persistent persistent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |