|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides some simple methods for working with metainformation. These should generally be used by Freezers and Trays.
Field Summary | |
static java.lang.String |
CASTER
|
Method Summary | |
boolean |
checkSetUp()
make sure the backing storage is set up correctly |
int |
count()
count the Freezables in the freezer. |
int |
countByClass(java.lang.Class interf)
Count the number of freezables that implement this interf. |
Set |
findByClass(java.lang.Class interf)
Returns the Set of Freezables in the Freezer that can be cast to interf. |
java.lang.Class |
findInterfaceForFreezable(Freezable id)
Returns the working interface for the freezable. |
java.lang.Class |
findInterfaceForIdentifier(java.io.Serializable id)
Returns the working interface for the object pointed at by identifier. |
void |
freeze(Freezable freezable)
Add a freezable to the Caster's collection if it isn't already there. |
Set |
getAllIdentifiers()
Get a Set containing all the identifiers in the Freezer. |
boolean |
isAbsent(java.io.Serializable identifier)
Return true if identifier is available in the frozen medium. |
boolean |
isPresent(java.io.Serializable identifier)
Return true if identifier is available in the frozen medium. |
void |
setUp()
set up the backing storage |
void |
tearDown()
clean up the backing storage |
Freezable |
thaw(java.io.Serializable id)
Thaw out a freezable. |
void |
throwOut(java.io.Serializable id)
Remove a freezable from the Caster's collection |
void |
validate(java.io.Serializable identifier,
InvalidFrozenMap ife)
Validates identifier. |
void |
validateAll(InvalidFrozenMap ife)
Validates all the identifiers in the Caster. |
Field Detail |
public static final java.lang.String CASTER
Method Detail |
public java.lang.Class findInterfaceForIdentifier(java.io.Serializable id) throws NotInFreezerException
NotInFreezerException
PersistenceFailureException
public java.lang.Class findInterfaceForFreezable(Freezable id)
ClassForRoleNotFoundException
PersistenceFailureException
public void freeze(Freezable freezable)
CannotFreezeException
public Freezable thaw(java.io.Serializable id) throws NotInFreezerException
public void throwOut(java.io.Serializable id) throws NotInFreezerException
CannotThrowOutException
NotInFreezerException
public boolean isPresent(java.io.Serializable identifier)
PersistenceFailureException
public boolean isAbsent(java.io.Serializable identifier)
PersistenceFailureException
public void validate(java.io.Serializable identifier, InvalidFrozenMap ife)
public void validateAll(InvalidFrozenMap ife)
public Set getAllIdentifiers()
public int count()
public int countByClass(java.lang.Class interf)
public Set findByClass(java.lang.Class interf)
PersistenceFailureException
public boolean checkSetUp()
PersistenceFailureException
public void setUp()
PersistenceFailureException
public void tearDown()
PersistenceFailureException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |