net.walend.lyophil
Interface TypableKeyDigger

All Superinterfaces:
Digger
All Known Implementing Classes:
JDBCTypableKeyDigger, MemTypableKeyDigger

public interface TypableKeyDigger
extends Digger

This optional interface returns classes by typable key.

Since:
20010405
Author:
David Walend

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean containsTypableKey(java.lang.String key)
          Returns true if the typable key is in use already.
 HasTypableKey findByTypableKey(java.lang.String key)
          Returns the Freezable that has the typable key
 java.io.Serializable findIDForTypableKey(java.lang.String key)
          Returns the id of the Freezable that has the typable key
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

findByTypableKey

public HasTypableKey findByTypableKey(java.lang.String key)
                               throws NotInFreezerException
Returns the Freezable that has the typable key

Throws:
PersistenceFailureException
NotInFreezerException

containsTypableKey

public boolean containsTypableKey(java.lang.String key)
Returns true if the typable key is in use already.

Throws:
PersistenceFailureException

findIDForTypableKey

public java.io.Serializable findIDForTypableKey(java.lang.String key)
                                         throws NotInFreezerException
Returns the id of the Freezable that has the typable key

Throws:
PersistenceFailureException
NotInFreezerException


Copyright (c) 2000, 2001, David Walend