|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Persistable
This interface indicates that the implementing class can be persisted in permanent storage.
Method Summary | |
---|---|
Object[] |
getGeneratedKeys()
This method will return the automatically generated key for the insert if one was triggered, or 'null' otherwise. |
int |
persist(Connection aConn)
This method can be called to store the implemnted objects state to a persistent store for the first time (equivalent to SQL 'INSERT'). |
Method Detail |
---|
int persist(Connection aConn) throws SQLException
aConn
- The Connection on which to execute SQL statements.
It should be an open connection and the implementation
should refrain from closing it, so the caller can reuse it.
SQLException
- When the insert fails (e.g.: connection gone stale).Object[] getGeneratedKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |