@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, wait
byteSize, marshall, unmarshall
protected final JoafipLogger logger
protected final HeapRecordableManager heapRecordableManager
IHeapRecordable
protected HelperBinaryConversion helperBinaryConversion
public AbstractHeapRecordable(HeapRecordableManager heapRecordableManager, HelperBinaryConversion helperBinaryConversion)
public DataRecordIdentifier getDataRecordIdentifier()
IHeapRecordable
getDataRecordIdentifier
in interface IHeapRecordable
public void setDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier, boolean existInFile) throws HeapRecordableException
IHeapRecordable
setDataRecordIdentifier
in interface IHeapRecordable
dataRecordIdentifier
- the data record identifier for this objectHeapRecordableException
public void setStateHaveChanged() throws HeapRecordableException
HeapRecordableManager
will save changeHeapRecordableException
public boolean isStateChanged()
isStateChanged
in interface IHeapRecordable
public void setSynchronizedWithFile()
IHeapRecordable
setSynchronizedWithFile
in interface IHeapRecordable
public void clear()
protected void checkLoaded() throws HeapRecordableException
HeapRecordableException
public int compareTo(IHeapRecordable heapRecordable)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.