@NotStorableClass public class PageRecord extends AbstractPageRecord implements IPageRecord
heapElementManagerfileForStorable, 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, writeKeyclear, equals, getPositionInFile, hashCode, isJustCreated, isValueChangedToSave, readAndCheckCrc32, readBoolean, readByte, readBytes, readBytes, readFileAppendToIoBuffer, readFileToIoBuffer, readFromFile, readInteger, readLong, setValueIsChangedValueToSave, setValueIsNotChanged, writeBoolean, writeByte, writeBytes, writeCrc32, writeInteger, writeLong, writeToFile, writeToFileGetWritedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPositionInFile, isValueChangedToSave, setValueIsChangedValueToSave, setValueIsNotChangedclear, isJustCreated, readFromFile, writeToFile, writeToFileGetWritedpublic 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 IPageRecordHeapExceptionprotected void valueChangedAction()
throws HeapException
valueChangedAction in class AbstractFileStorableHeapExceptionpublic EnumRecordType getRecordType()
public long getPageNumber()
getPageNumber in interface IPageRecordpublic IPageRecordable getPageRecordable()
public int getNumberOfPage()
getNumberOfPage in interface IPageRecordpublic long getPreviousRecordPositionInFile()
throws HeapException
getPreviousRecordPositionInFile in interface IFileStorableHeapExceptionpublic void setPreviousRecordPositionInFile(long previousRecordPositionInFile)
throws HeapException
HeapExceptionpublic int getRecordSize()
throws HeapException
IFileStorablegetRecordSize in interface IFileStorableHeapExceptionprotected int toMarshallSize()
throws HeapException
toMarshallSize in class AbstractFileStorableHeapExceptionprotected void marshallImpl()
throws HeapException
AbstractFileStorable#crc32 is set to zeromarshallImpl in class AbstractFileStorableHeapExceptionprotected void unmarshallImpl()
throws HeapException
AbstractFileStorable#crc32 is set to zerounmarshallImpl in class AbstractFileStorableHeapExceptionpublic String toString()
toString in class AbstractFileStorableCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.