|
|||||||||||
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 Tray
isPresent
in class JDBCStringTray
public boolean isAbsent(java.io.Serializable id)
Tray
isAbsent
in interface Tray
isAbsent
in class JDBCStringTray
public void insertNew(Freezable object)
Tray
insertNew
in interface Tray
insertNew
in class JDBCStringTray
public void updateOld(Freezable object)
Tray
updateOld
in interface Tray
updateOld
in class JDBCStringTray
public void delete(java.io.Serializable id)
Tray
A recursive method.
delete
in interface Tray
delete
in class JDBCStringTray
public void validate(java.io.Serializable id, InvalidFrozenMap ifm)
Tray
validate
in interface Tray
validate
in class JDBCStringTray
public Set getAllIdentifiersInTray()
Tray
getAllIdentifiersInTray
in interface Tray
getAllIdentifiersInTray
in class JDBCStringTray
public Freezable thaw(java.io.Serializable id) throws NotInFreezerException
ConcreteTray
thaw
in interface ConcreteTray
thaw
in class JDBCStringTray
public java.lang.String getColorForID(java.io.Serializable identifier)
public boolean checkSetUp()
Tray
checkSetUp
in interface Tray
checkSetUp
in class JDBCStringTray
public void setUp()
Tray
setUp
in interface Tray
setUp
in class JDBCStringTray
public void tearDown()
Tray
tearDown
in interface Tray
tearDown
in class JDBCStringTray
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |