|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.lyophil.jdbc.JDBCTypableKeyTray
A simple backing for strings that uses the jdbc kit. A jdbc-based Freezer or a Frozen EJB for StringBeans should use this class for database access.
Field Summary | |
static java.lang.String |
JDBCTYPABLEKEYTRAY
|
Fields inherited from interface net.walend.lyophil.Tray |
TRAY |
Constructor Summary | |
JDBCTypableKeyTray()
|
Method Summary | |
protected java.lang.Long |
castIdentifier(java.io.Serializable identifier)
|
boolean |
checkSetUp()
make sure the backing storage is set up correctly |
boolean |
containsTypableKey(java.lang.String key)
|
void |
delete(java.io.Serializable id)
Remove everything about this id from the Tray. |
java.io.Serializable |
findByTypableKey(java.lang.String key)
|
Set |
getAllIdentifiersInTray()
Get a Set containing all the identifiers in this Tray. |
protected java.lang.String |
getDatabaseName()
|
protected PropertySource |
getTrayPropertySource()
|
java.lang.String |
getTypableKeyForFreezable(java.io.Serializable identifier)
|
void |
insertNew(Freezable object)
Stick a new Freezable into the database. |
boolean |
isAbsent(java.io.Serializable id)
For this tray only, is the id not represented by data? In most cases, this is simply !isPresent(id). |
boolean |
isPresent(java.io.Serializable ident)
For this tray only, is the tray ready for data about this id? |
void |
setUp()
Set up the backing storage |
void |
tearDown()
clean up the backing storage |
void |
updateOld(Freezable object)
Update an old Freezable in the database. |
void |
validate(java.io.Serializable id,
InvalidFrozenMap ifm)
Validates identifier. |
void |
validateAll(InvalidFrozenMap ifm,
Caster caster)
Validates all the identifiers in the Caster. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JDBCTYPABLEKEYTRAY
Constructor Detail |
public JDBCTypableKeyTray()
Method Detail |
protected java.lang.String getDatabaseName()
protected PropertySource getTrayPropertySource()
protected java.lang.Long castIdentifier(java.io.Serializable identifier)
public java.io.Serializable findByTypableKey(java.lang.String key) throws NotInFreezerException
public boolean containsTypableKey(java.lang.String key)
public boolean isPresent(java.io.Serializable ident)
Tray
isPresent
in interface Tray
public boolean isAbsent(java.io.Serializable id)
Tray
isAbsent
in interface Tray
public void insertNew(Freezable object)
insertNew
in interface Tray
public void updateOld(Freezable object)
updateOld
in interface Tray
public void delete(java.io.Serializable id)
Tray
A recursive method.
delete
in interface Tray
public java.lang.String getTypableKeyForFreezable(java.io.Serializable identifier)
public void validate(java.io.Serializable id, InvalidFrozenMap ifm)
validate
in interface Tray
public void validateAll(InvalidFrozenMap ifm, Caster caster)
Tray
validateAll
in interface Tray
public Set getAllIdentifiersInTray()
Tray
getAllIdentifiersInTray
in interface Tray
public boolean checkSetUp()
Tray
checkSetUp
in interface Tray
public void setUp()
Tray
setUp
in interface Tray
public void tearDown()
Tray
tearDown
in interface Tray
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |