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

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.store.defaultstore.persistentstore.PersistentRecordID
        |
        +--pl.edu.pjwstk.yaod.store.defaultstore.persistentstore.PersistentAtomID
All Implemented Interfaces:
AtomID, ObjectID, java.io.Serializable

public class PersistentAtomID
extends PersistentRecordID
implements AtomID, java.io.Serializable

Klasa reprezentuje identyfikator atomu pochodzacego ze skladu trwalych obiektow. Identyfikator taki ma postac .

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

Constructor Summary
PersistentAtomID(short store, short file, short block, short slot)
          Konstruktor tworzacy nowy identyfikator atomu.
 
Method Summary
 boolean equals(java.lang.Object par)
          Sprawdza czy dwa identyfikatory dotycza tego samego atomu.
 short getStoreID()
          Zwraca identyfikator skladu.
 int hashCode()
          Zwraca klucz haszowania dla tego identyfikatora (potrzebne do bufora atomow, ktory jest obiektem Hashtable).
 java.lang.String toString()
          Zapisuje identyfikator w formie umozliwijajacej wyswietlenie jej na ekranie.
 
Methods inherited from class pl.edu.pjwstk.yaod.store.defaultstore.persistentstore.PersistentRecordID
getBlockID, getSlotID, setBlockID, setSlotID, toByteArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentAtomID

public PersistentAtomID(short store,
                        short file,
                        short block,
                        short slot)
Konstruktor tworzacy nowy identyfikator atomu.
Parameters:
store - identyfikator skladu.
file - identyfikator pliku danych.
block - identyfikator bloku danych.
slot - identyfikator slotu
Method Detail

getStoreID

public short getStoreID()
Zwraca identyfikator skladu.
Specified by:
getStoreID in interface ObjectID
Returns:
id skladu.

hashCode

public int hashCode()
Zwraca klucz haszowania dla tego identyfikatora (potrzebne do bufora atomow, ktory jest obiektem Hashtable).
Specified by:
hashCode in interface AtomID
Overrides:
hashCode in class java.lang.Object
Returns:
klucz haszowania.

equals

public boolean equals(java.lang.Object par)
Sprawdza czy dwa identyfikatory dotycza tego samego atomu.
Specified by:
equals in interface ObjectID
Overrides:
equals in class java.lang.Object
Parameters:
par - porownywany obiekt.
Returns:
identyfikatory posiadaja te same wartosci (true) lub nie (false).

toString

public java.lang.String toString()
Zapisuje identyfikator w formie umozliwijajacej wyswietlenie jej na ekranie.
Specified by:
toString in interface ObjectID
Overrides:
toString in class java.lang.Object
Returns:
identyfikator atomu jako ciag znakow.