|
|||||||||||
| 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.test.stringbean.JDBCStringTray
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 |
STRINGPROPKEY
|
| Fields inherited from interface net.walend.lyophil.Tray |
TRAY |
| Constructor Summary | |
JDBCStringTray()
|
|
| Method Summary | |
protected java.lang.Long |
castIdentifier(java.io.Serializable identifier)
|
boolean |
checkSetUp()
make sure the backing storage is set up correctly |
void |
delete(java.io.Serializable id)
Remove everything about this id from the Tray. |
void |
freeze(Freezable object)
Puts the Freezable in cold storage. |
Set |
getAllIdentifiersInTray()
Get a Set containing all the identifiers in this Tray. |
protected java.lang.String |
getDatabaseName()
|
protected java.lang.String |
getStringForID(java.io.Serializable id)
|
protected PropertySource |
getStringPropertySource()
|
protected JDBCTypableKeyTray |
getTypableKeyTray()
|
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 |
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 |
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 STRINGPROPKEY
| Constructor Detail |
public JDBCStringTray()
| Method Detail |
protected java.lang.String getDatabaseName()
protected PropertySource getStringPropertySource()
protected JDBCTypableKeyTray getTypableKeyTray()
protected java.lang.Long castIdentifier(java.io.Serializable identifier)
public boolean isPresent(java.io.Serializable ident)
Tray
isPresent in interface Traypublic boolean isAbsent(java.io.Serializable id)
Tray
isAbsent in interface Traypublic void insertNew(Freezable object)
Tray
insertNew in interface Traypublic void updateOld(Freezable object)
Tray
updateOld in interface Traypublic void delete(java.io.Serializable id)
TrayA recursive method.
delete in interface Tray
public void validate(java.io.Serializable id,
InvalidFrozenMap ifm)
Tray
validate in interface Tray
public void validateAll(InvalidFrozenMap ifm,
Caster caster)
Tray
validateAll in interface Traypublic Set getAllIdentifiersInTray()
Tray
getAllIdentifiersInTray in interface Traypublic void freeze(Freezable object)
ConcreteTray
freeze in interface ConcreteTray
public Freezable thaw(java.io.Serializable id)
throws NotInFreezerException
ConcreteTray
thaw in interface ConcreteTray
public void throwOut(java.io.Serializable id)
throws NotInFreezerException
ConcreteTray
throwOut in interface ConcreteTrayprotected java.lang.String getStringForID(java.io.Serializable id)
public boolean checkSetUp()
Tray
checkSetUp in interface Traypublic void setUp()
Tray
setUp in interface Traypublic 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 | ||||||||||