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 IFileStorable
public long getPreviousRecordPositionInFile() throws HeapException
getPreviousRecordPositionInFile
in interface IFileStorable
HeapException
public void writeToFile() throws HeapException
IFileStorable
writeToFile
in interface IFileStorable
HeapException
public byte[] writeToFileGetWrited() throws HeapException
writeToFileGetWrited
in interface IFileStorable
HeapException
public void readFromFile() throws HeapException
IFileStorable
readFromFile
in interface IFileStorable
HeapException
public void clear()
IFileStorable
clear
in interface IFileStorable
public void setValueIsChangedValueToSave() throws HeapException
IFileStorable
setValueIsChangedValueToSave
in interface IFileStorable
HeapException
public void setValueIsNotChanged()
setValueIsNotChanged
in interface IFileStorable
public boolean isValueChangedToSave()
IFileStorable
isValueChangedToSave
in interface IFileStorable
public boolean isJustCreated()
isJustCreated
in interface IFileStorable
public int getRecordSize() throws HeapException
IFileStorable
getRecordSize
in interface IFileStorable
HeapException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.