pl.edu.pjwstk.yaod.store.defaultstore.transientstore
Class TransientStoreWrapper

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.store.defaultstore.transientstore.TransientStoreWrapper
All Implemented Interfaces:
Wrappable

public class TransientStoreWrapper
extends java.lang.Object
implements Wrappable

Author:
M. Lentner, raist@ertel.com.pl

Constructor Summary
TransientStoreWrapper(TransientStore store)
           
 
Method Summary
 void createAtom(Atom atm)
          Tworzy nowy atom w skladzie.
 void deleteAtom(AtomID ptr)
          Kasuje atom wskazany podanym identyfikatorem.
 AtomID getEntry()
          Zwraca identyfikator atomu wejsciowego do skladu.
 Atom retrieveAtom(AtomID ptr)
          Zwraca atom wkazany za pomoca jego identyfikatora.
 void updateAtom(Atom atm)
          Aktualizuje atom zapisany wczesniej w skladzie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientStoreWrapper

public TransientStoreWrapper(TransientStore store)
Method Detail

getEntry

public AtomID getEntry()
Description copied from interface: Wrappable
Zwraca identyfikator atomu wejsciowego do skladu.
Specified by:
getEntry in interface Wrappable
Following copied from interface: pl.edu.pjwstk.yaod.store.Wrappable
Returns:
identyfikator atomu wejsciowego.

retrieveAtom

public Atom retrieveAtom(AtomID ptr)
                  throws NoSuchAtomException
Description copied from interface: Wrappable
Zwraca atom wkazany za pomoca jego identyfikatora.
Specified by:
retrieveAtom in interface Wrappable
Following copied from interface: pl.edu.pjwstk.yaod.store.Wrappable
Parameters:
ptr - identyfikator atomu.
Returns:
odczytany atom.
Throws:
NoSuchAtomException - brak takiego atomu w skladzie.

deleteAtom

public void deleteAtom(AtomID ptr)
                throws NoSuchAtomException
Description copied from interface: Wrappable
Kasuje atom wskazany podanym identyfikatorem.
Specified by:
deleteAtom in interface Wrappable
Following copied from interface: pl.edu.pjwstk.yaod.store.Wrappable
Parameters:
ptr - identyfikator kasowanego atomu.
Throws:
NoSuchAtomException - brak takiego atomu w skladzie.

updateAtom

public void updateAtom(Atom atm)
                throws BlockFreeSpaceException
Description copied from interface: Wrappable
Aktualizuje atom zapisany wczesniej w skladzie.
Specified by:
updateAtom in interface Wrappable
Following copied from interface: pl.edu.pjwstk.yaod.store.Wrappable
Parameters:
atm - atom do zaktualizowania.
Throws:
BlockFreeSpaceException - zbyt malo wolnej przestrzeni.

createAtom

public void createAtom(Atom atm)
                throws BlockFreeSpaceException
Description copied from interface: Wrappable
Tworzy nowy atom w skladzie.
Specified by:
createAtom in interface Wrappable
Following copied from interface: pl.edu.pjwstk.yaod.store.Wrappable
Parameters:
atm - atom ktory ma zostac zapisany w skladzie.
Throws:
BlockFreeSpaceException - zbyt malo wolnej przestrzeni.