public abstract class PersistentBase extends org.apache.avro.specific.SpecificRecordBase implements Persistent
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentBase.PersistentData |
DIRTY_BYTES_FIELD_NAME| Constructor and Description |
|---|
PersistentBase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object that) |
List<org.apache.avro.Schema.Field> |
getUnmanagedFields()
Get a list of fields from this persistent object's schema that are not
managed by Gora.
|
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 fieldName)
Returns whether the field has been modified.
|
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.
|
compareTo, get, getSchema, hashCode, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTombstone, newInstancepublic void clearDirty()
DirtyableclearDirty in interface Dirtyablepublic void clearDirty(int fieldIndex)
PersistentclearDirty in interface PersistentfieldIndex - the offset of the field in the objectpublic void clearDirty(String field)
PersistentclearDirty in interface Persistentfield - the name of the fieldpublic boolean isDirty()
Dirtyablepublic boolean isDirty(int fieldIndex)
PersistentisDirty in interface PersistentfieldIndex - the offset of the field in the objectpublic boolean isDirty(String fieldName)
PersistentisDirty in interface PersistentfieldName - the name of the fieldpublic void setDirty()
PersistentsetDirty in interface Persistentpublic void setDirty(int fieldIndex)
PersistentsetDirty in interface PersistentfieldIndex - the offset of the field in the objectpublic void setDirty(String field)
PersistentsetDirty in interface Persistentfield - the name of the fieldpublic void clear()
Persistentclear in interface Persistentpublic boolean equals(Object that)
equals in class org.apache.avro.specific.SpecificRecordBasepublic List<org.apache.avro.Schema.Field> getUnmanagedFields()
PersistentgetUnmanagedFields in interface PersistentCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.