pl.edu.pjwstk.yaod.store.defaultstore.persistentstore
Class PersistentRecordID

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.store.defaultstore.persistentstore.PersistentRecordID
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PersistentAtomID

public class PersistentRecordID
extends java.lang.Object
implements java.io.Serializable

Klasa reprezentuje identyfikator rekordu w trwalym skladzie obiektow.

Author:
M. Lentner, raist@ertel.com.pl
See Also:
Serialized Form

Constructor Summary
PersistentRecordID(AbstractBlockID blockID, short slot)
          Tworzy nowy identyfikator rekordu.
PersistentRecordID(byte[] rawPtr)
          Tworzy nowy identyfikator rekordu na bazie jego zserializowanej wersji.
 
Method Summary
 AbstractBlockID getBlockID()
          Zwraca identyfikator bloku.
 short getSlotID()
          Zwraca numer slotu.
 void setBlockID(AbstractBlockID block)
          Ustala identyfikator bloku.
 void setSlotID(short id)
          Ustala numer slotu.
 byte[] toByteArray()
          Serializuje identyfikator rekordu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentRecordID

public PersistentRecordID(AbstractBlockID blockID,
                          short slot)
Tworzy nowy identyfikator rekordu.
Parameters:
blockID - identyfikator bloku.
slot - numer slotu w bloku.

PersistentRecordID

public PersistentRecordID(byte[] rawPtr)
Tworzy nowy identyfikator rekordu na bazie jego zserializowanej wersji.
Parameters:
rawPtr - zserializowany identyfikator rekordu.
Method Detail

getSlotID

public short getSlotID()
Zwraca numer slotu.
Returns:
numer slotu.

setSlotID

public void setSlotID(short id)
Ustala numer slotu.
Parameters:
id - numer slotu.

getBlockID

public AbstractBlockID getBlockID()
Zwraca identyfikator bloku.
Returns:
identyfikator bloku.

setBlockID

public void setBlockID(AbstractBlockID block)
Ustala identyfikator bloku.
Parameters:
block - identyfikator bloku.

toByteArray

public byte[] toByteArray()
Serializuje identyfikator rekordu.
Returns:
zserializowany identyfikator rekordu.