|
|||||||||||
| 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
|
+--net.walend.lyophil.jdbc.test.stringbean.JDBCColorStringTray
A simple backing for ColorStrings that uses the jdbc kit. A jdbc-based Freezer or a Frozen EJB for ColorStringBeans should use this class for database access.
| Field Summary | |
static java.lang.String |
COLORPROPKEY
|
| Fields inherited from class net.walend.lyophil.jdbc.test.stringbean.JDBCStringTray |
STRINGPROPKEY |
| Fields inherited from interface net.walend.lyophil.Tray |
TRAY |
| Constructor Summary | |
JDBCColorStringTray()
|
|
| Method Summary | |
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. |
Set |
getAllIdentifiersInTray()
Get a Set containing all the identifiers in this Tray. |
java.lang.String |
getColorForID(java.io.Serializable identifier)
|
protected PropertySource |
getColorStringPropertySource()
|
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 |
updateOld(Freezable object)
Update an old Freezable in the database. |
void |
validate(java.io.Serializable id,
InvalidFrozenMap ifm)
Validates identifier. |
| Methods inherited from class net.walend.lyophil.jdbc.test.stringbean.JDBCStringTray |
castIdentifier, freeze, getDatabaseName, getStringForID, getStringPropertySource, getTypableKeyTray, throwOut, validateAll |
| 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 COLORPROPKEY
| Constructor Detail |
public JDBCColorStringTray()
| Method Detail |
protected PropertySource getColorStringPropertySource()
public boolean isPresent(java.io.Serializable ident)
Tray
isPresent in interface TrayisPresent in class JDBCStringTraypublic boolean isAbsent(java.io.Serializable id)
Tray
isAbsent in interface TrayisAbsent in class JDBCStringTraypublic void insertNew(Freezable object)
Tray
insertNew in interface TrayinsertNew in class JDBCStringTraypublic void updateOld(Freezable object)
Tray
updateOld in interface TrayupdateOld in class JDBCStringTraypublic void delete(java.io.Serializable id)
TrayA recursive method.
delete in interface Traydelete in class JDBCStringTray
public void validate(java.io.Serializable id,
InvalidFrozenMap ifm)
Tray
validate in interface Trayvalidate in class JDBCStringTraypublic Set getAllIdentifiersInTray()
Tray
getAllIdentifiersInTray in interface TraygetAllIdentifiersInTray in class JDBCStringTray
public Freezable thaw(java.io.Serializable id)
throws NotInFreezerException
ConcreteTray
thaw in interface ConcreteTraythaw in class JDBCStringTraypublic java.lang.String getColorForID(java.io.Serializable identifier)
public boolean checkSetUp()
Tray
checkSetUp in interface TraycheckSetUp in class JDBCStringTraypublic void setUp()
Tray
setUp in interface TraysetUp in class JDBCStringTraypublic void tearDown()
Tray
tearDown in interface TraytearDown in class JDBCStringTray
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||