@NotStorableClass public class PageRecord extends AbstractPageRecord implements IPageRecord
heapElementManager
fileForStorable, justCreated, logger, numberOfByteReadWrote, positionInFile, valueChangedToSave
Constructor and Description |
---|
PageRecord(IHeapElementManager heapElementManager,
long pageNumber)
creation for reading
|
PageRecord(IHeapElementManager heapElementManager,
Long previousRecordPositionInFile,
IPageRecordable pageRecordable,
long pageNumber) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfPage() |
long |
getPageNumber() |
IPageRecordable |
getPageRecordable() |
long |
getPreviousRecordPositionInFile() |
int |
getRecordSize()
get the record size
|
EnumRecordType |
getRecordType() |
protected void |
marshallImpl()
marshaling implementation for write
#crc32 is set to zero |
void |
setPageRecordable(IPageRecordable pageRecordable) |
void |
setPreviousRecordPositionInFile(long previousRecordPositionInFile) |
protected int |
toMarshallSize() |
String |
toString() |
protected void |
unmarshallImpl()
Unmarshalling implementation for read
#crc32 is set to zero |
protected void |
valueChangedAction() |
readKey, readRecordType, writeByteRecordType, writeKey
clear, equals, getPositionInFile, hashCode, isJustCreated, isValueChangedToSave, readAndCheckCrc32, readBoolean, readByte, readBytes, readBytes, readFileAppendToIoBuffer, readFileToIoBuffer, readFromFile, readInteger, readLong, setValueIsChangedValueToSave, setValueIsNotChanged, writeBoolean, writeByte, writeBytes, writeCrc32, writeInteger, writeLong, writeToFile, writeToFileGetWrited
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPositionInFile, isValueChangedToSave, setValueIsChangedValueToSave, setValueIsNotChanged
clear, isJustCreated, readFromFile, writeToFile, writeToFileGetWrited
public PageRecord(IHeapElementManager heapElementManager, long pageNumber)
heapElementManager
- pageNumber
- public PageRecord(IHeapElementManager heapElementManager, Long previousRecordPositionInFile, IPageRecordable pageRecordable, long pageNumber)
public void setPageRecordable(IPageRecordable pageRecordable) throws HeapException
setPageRecordable
in interface IPageRecord
HeapException
protected void valueChangedAction() throws HeapException
valueChangedAction
in class AbstractFileStorable
HeapException
public EnumRecordType getRecordType()
public long getPageNumber()
getPageNumber
in interface IPageRecord
public IPageRecordable getPageRecordable()
public int getNumberOfPage()
getNumberOfPage
in interface IPageRecord
public long getPreviousRecordPositionInFile() throws HeapException
getPreviousRecordPositionInFile
in interface IFileStorable
HeapException
public void setPreviousRecordPositionInFile(long previousRecordPositionInFile) throws HeapException
HeapException
public int getRecordSize() throws HeapException
IFileStorable
getRecordSize
in interface IFileStorable
HeapException
protected int toMarshallSize() throws HeapException
toMarshallSize
in class AbstractFileStorable
HeapException
protected void marshallImpl() throws HeapException
AbstractFileStorable
#crc32
is set to zeromarshallImpl
in class AbstractFileStorable
HeapException
protected void unmarshallImpl() throws HeapException
AbstractFileStorable
#crc32
is set to zerounmarshallImpl
in class AbstractFileStorable
HeapException
public String toString()
toString
in class AbstractFileStorable
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.