net.walend.lyophil
Interface ConcreteTray

All Superinterfaces:
Tray
All Known Implementing Classes:
JDBCAoNMutableSetTray, JDBCBackedMutableSetTray, JDBCStringTray

public interface ConcreteTray
extends Tray

An optional interface for back-end storage data access. ConcreteTrays should be stateless, and depend on the id argument in each method.

To implement these methods, call methods in Tray, and use super. for only methods in Tray. Do not call ConcreteTray methods using super.

Since:
20001219
Author:
David Walend

Field Summary
 
Fields inherited from interface net.walend.lyophil.Tray
TRAY
 
Method Summary
 void freeze(Freezable object)
          Puts the Freezable in cold storage.
 Freezable thaw(java.io.Serializable id)
          Gets a Freezable out of cold storage.
 void throwOut(java.io.Serializable id)
          Remove a frozen instance from cold storage
 
Methods inherited from interface net.walend.lyophil.Tray
checkSetUp, delete, getAllIdentifiersInTray, insertNew, isAbsent, isPresent, setUp, tearDown, updateOld, validate, validateAll
 

Method Detail

freeze

public void freeze(Freezable object)
Puts the Freezable in cold storage.

Throws:
CannotFreezeException

thaw

public Freezable thaw(java.io.Serializable id)
               throws NotInFreezerException
Gets a Freezable out of cold storage. Normally, this should be a new instance of a previously frozen Freezable.

Throws:
CannotThawException
NotInFreezerException

throwOut

public void throwOut(java.io.Serializable id)
              throws NotInFreezerException
Remove a frozen instance from cold storage

Throws:
CannotThrowOutException
NotInFreezerException


Copyright (c) 2000, 2001, David Walend