public final class NullFileStorable extends Object implements IFileStorable
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
initial state:no value to save since not read and not write
|
boolean |
equals(Object obj) |
static NullFileStorable |
getInstance() |
long |
getPositionInFile() |
long |
getPreviousRecordPositionInFile() |
int |
getRecordSize()
get the record size
|
int |
hashCode() |
boolean |
isJustCreated() |
boolean |
isValueChangedToSave()
to know if the value state change
|
void |
readFromFile()
read this file storable from file
|
void |
setValueIsChangedValueToSave()
set this record have value changed, so to save
|
void |
setValueIsNotChanged() |
void |
writeToFile()
write this file storable to file
|
byte[] |
writeToFileGetWrited() |
public static NullFileStorable getInstance()
public long getPositionInFile()
getPositionInFile in interface IFileStorablepublic long getPreviousRecordPositionInFile()
throws HeapException
getPreviousRecordPositionInFile in interface IFileStorableHeapExceptionpublic void writeToFile()
throws HeapException
IFileStorablewriteToFile in interface IFileStorableHeapExceptionpublic byte[] writeToFileGetWrited()
throws HeapException
writeToFileGetWrited in interface IFileStorableHeapExceptionpublic void readFromFile()
throws HeapException
IFileStorablereadFromFile in interface IFileStorableHeapExceptionpublic void clear()
IFileStorableclear in interface IFileStorablepublic void setValueIsChangedValueToSave()
throws HeapException
IFileStorablesetValueIsChangedValueToSave in interface IFileStorableHeapExceptionpublic void setValueIsNotChanged()
setValueIsNotChanged in interface IFileStorablepublic boolean isValueChangedToSave()
IFileStorableisValueChangedToSave in interface IFileStorablepublic boolean isJustCreated()
isJustCreated in interface IFileStorablepublic int getRecordSize()
throws HeapException
IFileStorablegetRecordSize in interface IFileStorableHeapExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.