@NotStorableClass public class HeapRecordableManager extends Object
Constructor and Description |
---|
HeapRecordableManager(IHeapDataManager dataManager) |
Modifier and Type | Method and Description |
---|---|
DataRecordIdentifier |
attach(IHeapRecordable heapRecordable)
attach a
IHeapRecordable to a data record in heap |
void |
clear() |
void |
delete(DataRecordIdentifier dataRecordIdentifier)
delete a data record in the heap
|
void |
doNotSave(boolean clear) |
IHeapRecordable |
getHeapRecordable(DataRecordIdentifier dataRecordIdentifier)
look for
IHeapRecordable for a data record identifier |
String |
getReadAndSetStateStatus() |
boolean |
readAndSetState(IHeapRecordable heapRecordable)
read data record for
IHeapRecordable and set the state |
void |
save() |
void |
stateHaveChanged(AbstractHeapRecordable heapRecordable)
record
IHeapRecordable state changed to save |
public HeapRecordableManager(IHeapDataManager dataManager)
dataManager
- the heap data manager to use for read and writepublic void stateHaveChanged(AbstractHeapRecordable heapRecordable) throws HeapRecordableException
IHeapRecordable
state changed to saveheapRecordable
- which have state changedHeapRecordableException
public void save() throws HeapRecordableException
HeapRecordableException
public void doNotSave(boolean clear)
@Fortest public void clear()
public IHeapRecordable getHeapRecordable(DataRecordIdentifier dataRecordIdentifier)
IHeapRecordable
for a data record identifierdataRecordIdentifier
- the data record identifier for which IHeapRecordable
is look forIHeapRecordable
for data identifier, null if nonepublic boolean readAndSetState(IHeapRecordable heapRecordable) throws HeapRecordableException
IHeapRecordable
and set the stateheapRecordable
- to set state readHeapRecordableException
public String getReadAndSetStateStatus()
public DataRecordIdentifier attach(IHeapRecordable heapRecordable) throws HeapRecordableException
IHeapRecordable
to a data record in heapheapRecordable
- the IHeapRecordable
to attach to a data record in heapHeapRecordableException
public void delete(DataRecordIdentifier dataRecordIdentifier) throws HeapRecordableException
dataRecordIdentifier
- identifier of data record to removeHeapRecordableException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.