net.walend.lyophil.ejb.ejbbeans
Interface FreezerEJB

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface FreezerEJB
extends javax.ejb.EJBObject

Since:
20010905
Author:
David Walend

Method Summary
 int count()
          Returns the number of elements in this collection.
 void freeze(Freezable victem)
          Take the Thawed victem and put it in cold storage.
 SetOfFreezables getAll()
          Returns a lyophilizer.collection.Set of Freezables.
 boolean isAvailable(java.io.Serializable identifier)
          Return true if identifier is available in the freezer
 boolean isEmpty()
          Returns true if this collection contains no elements.
 Freezable thaw(java.io.Serializable identifier)
          For the identifier, return a Freezable object containing the data.
 void throwOut(java.io.Serializable identifier)
          Remote the Freezable identified by identifier from the persistent storage
 void throwOutAll()
          Throw out everything in the Freezer.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

freeze

public void freeze(Freezable victem)
            throws java.rmi.RemoteException
Take the Thawed victem and put it in cold storage.

Throws:
CannotFreezeException
java.rmi.RemoteException

thaw

public Freezable thaw(java.io.Serializable identifier)
               throws NotInFreezerException,
                      java.rmi.RemoteException
For the identifier, return a Freezable object containing the data.

Throws:
CannotThawException
NotInFreezerException
java.rmi.RemoteException

throwOut

public void throwOut(java.io.Serializable identifier)
              throws NotInFreezerException,
                     java.rmi.RemoteException
Remote the Freezable identified by identifier from the persistent storage

Throws:
CannotThrowOutException
NotInFreezerException
java.rmi.RemoteException

isAvailable

public boolean isAvailable(java.io.Serializable identifier)
                    throws java.rmi.RemoteException
Return true if identifier is available in the freezer

Throws:
PersistenceFailureException
java.rmi.RemoteException

throwOutAll

public void throwOutAll()
                 throws java.rmi.RemoteException
Throw out everything in the Freezer.


getAll

public SetOfFreezables getAll()
                       throws java.rmi.RemoteException
Returns a lyophilizer.collection.Set of Freezables.

Throws:
PersistenceFailureException
java.rmi.RemoteException

count

public int count()
          throws java.rmi.RemoteException
Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.


isEmpty

public boolean isEmpty()
                throws java.rmi.RemoteException
Returns true if this collection contains no elements.



Copyright (c) 2000, 2001, David Walend