| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Persistent
Objects that are persisted by Gora implements this interface.
| Method Summary | |
|---|---|
|  void | clear()Clears the inner state of the object without any modification to the actual data on the data store. | 
|  void | clearDirty()Clears the dirty state. | 
|  void | clearDirty(int fieldIndex)Clears the field as dirty. | 
|  void | clearDirty(String field)Clears the field as dirty. | 
|  void | clearNew()Clears the new state | 
|  void | clearReadable()Clears the readable state. | 
|  void | clearReadable(int fieldIndex)Clears the field as readable. | 
|  void | clearReadable(String field)Sets the field as readable. | 
|  Persistent | clone() | 
|  String | getField(int index)Returns the field name with the given index | 
|  int | getFieldIndex(String field)Returns the index of the field with the given name | 
|  String[] | getFields()Returns sorted field names of the object | 
|  StateManager | getStateManager()Returns the StateManager which manages the persistent state of the object. | 
|  boolean | isDirty()Returns whether any of the fields of the object has been modified after construction or loading. | 
|  boolean | isDirty(int fieldIndex)Returns whether the field has been modified. | 
|  boolean | isDirty(String field)Returns whether the field has been modified. | 
|  boolean | isNew()Returns whether the object is newly constructed. | 
|  boolean | isReadable(int fieldIndex)Returns whether the field has been loaded from the datastore. | 
|  boolean | isReadable(String field)Returns whether the field has been loaded from the datastore. | 
|  Persistent | newInstance(StateManager stateManager)Constructs a new instance of the object with the given StateManager. | 
|  void | setDirty()Sets all the fields of the object as dirty. | 
|  void | setDirty(int fieldIndex)Sets the field as dirty. | 
|  void | setDirty(String field)Sets the field as dirty. | 
|  void | setNew()Sets the state of the object as new for persistency | 
|  void | setReadable(int fieldIndex)Sets the field as readable. | 
|  void | setReadable(String field)Sets the field as readable. | 
| Methods inherited from interface org.apache.avro.generic.IndexedRecord | 
|---|
| get, put | 
| Methods inherited from interface org.apache.avro.generic.GenericContainer | 
|---|
| getSchema | 
| Method Detail | 
|---|
StateManager getStateManager()
Persistent newInstance(StateManager stateManager)
stateManager - the StateManager to manage the persistent state 
 of the object
String[] getFields()
String getField(int index)
index - the index of the field
int getFieldIndex(String field)
field - the name of the field
void clear()
boolean isNew()
void setNew()
void clearNew()
boolean isDirty()
boolean isDirty(int fieldIndex)
fieldIndex - the offset of the field in the object
boolean isDirty(String field)
field - the name of the field
void setDirty()
void setDirty(int fieldIndex)
fieldIndex - the offset of the field in the objectvoid setDirty(String field)
field - the name of the fieldvoid clearDirty(int fieldIndex)
fieldIndex - the offset of the field in the objectvoid clearDirty(String field)
field - the name of the fieldvoid clearDirty()
boolean isReadable(int fieldIndex)
fieldIndex - the offset of the field in the object
boolean isReadable(String field)
field - the name of the field
void setReadable(int fieldIndex)
fieldIndex - the offset of the field in the objectvoid setReadable(String field)
field - the name of the fieldvoid clearReadable(int fieldIndex)
fieldIndex - the offset of the field in the objectvoid clearReadable(String field)
field - the name of the fieldvoid clearReadable()
Persistent clone()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||