@NotStorableClass public abstract class AbstractHeapRecordable extends Object implements IHeapRecordable
| Modifier and Type | Field and Description |
|---|---|
protected HeapRecordableManager |
heapRecordableManager
manager of read and write of
IHeapRecordable |
protected HelperBinaryConversion |
helperBinaryConversion |
protected JoafipLogger |
logger |
| Constructor and Description |
|---|
AbstractHeapRecordable(HeapRecordableManager heapRecordableManager,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkLoaded() |
void |
clear()
clear to put in same state as for construction
|
int |
compareTo(IHeapRecordable heapRecordable) |
boolean |
equals(Object obj) |
DataRecordIdentifier |
getDataRecordIdentifier()
get the identifier of the data record storing this object state
|
int |
hashCode() |
boolean |
isStateChanged() |
void |
setDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier,
boolean existInFile)
set the identifier of the data record storing this object state
|
void |
setStateHaveChanged()
set state changed,
HeapRecordableManager will save change |
void |
setSynchronizedWithFile()
set this object state is synchronized with data in file
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbyteSize, marshall, unmarshallprotected final JoafipLogger logger
protected final HeapRecordableManager heapRecordableManager
IHeapRecordableprotected HelperBinaryConversion helperBinaryConversion
public AbstractHeapRecordable(HeapRecordableManager heapRecordableManager, HelperBinaryConversion helperBinaryConversion)
public DataRecordIdentifier getDataRecordIdentifier()
IHeapRecordablegetDataRecordIdentifier in interface IHeapRecordablepublic void setDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier, boolean existInFile) throws HeapRecordableException
IHeapRecordablesetDataRecordIdentifier in interface IHeapRecordabledataRecordIdentifier - the data record identifier for this objectHeapRecordableExceptionpublic void setStateHaveChanged()
throws HeapRecordableException
HeapRecordableManager will save changeHeapRecordableExceptionpublic boolean isStateChanged()
isStateChanged in interface IHeapRecordablepublic void setSynchronizedWithFile()
IHeapRecordablesetSynchronizedWithFile in interface IHeapRecordablepublic void clear()
protected void checkLoaded()
throws HeapRecordableException
HeapRecordableExceptionpublic int compareTo(IHeapRecordable heapRecordable)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.