public interface Persistable
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getGeneratedKeys()
This method will return the automatically generated key for the insert if
one was triggered, or 'null' otherwise.
|
int |
persist(java.sql.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').
|
int persist(java.sql.Connection aConn) throws java.sql.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.java.sql.SQLException
- When the insert fails (e.g.: connection gone stale).java.lang.Object[] getGeneratedKeys()
Copyright © 2013. All Rights Reserved.