|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.id.insert.AbstractSelectingDelegate org.hibernate.id.SelectGenerator.SelectGeneratorDelegate
The delegate for the select generation strategy.
Method Summary | |
protected void |
bindParameters(SessionImplementor session,
PreparedStatement ps,
Object entity)
Bind any required parameter values into the SQL command getSelectSQL() . |
protected Serializable |
getResult(SessionImplementor session,
ResultSet rs,
Object entity)
Extract the generated key value from the given result set. |
protected String |
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values. |
IdentifierGeneratingInsert |
prepareIdentifierGeneratingInsert()
Build a Insert specific to the delegate's mode
of handling generated key values. |
Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate |
performInsert |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate |
performInsert |
Method Detail |
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
InsertGeneratedIdentifierDelegate
Insert
specific to the delegate's mode
of handling generated key values.
prepareIdentifierGeneratingInsert
in interface InsertGeneratedIdentifierDelegate
protected String getSelectSQL()
AbstractSelectingDelegate
getSelectSQL
in class AbstractSelectingDelegate
protected void bindParameters(SessionImplementor session, PreparedStatement ps, Object entity) throws SQLException
AbstractSelectingDelegate
AbstractSelectingDelegate.getSelectSQL()
.
bindParameters
in class AbstractSelectingDelegate
session
- The sessionps
- The prepared SQL
commandentity
- The entity being saved.
SQLException
protected Serializable getResult(SessionImplementor session, ResultSet rs, Object entity) throws SQLException
AbstractSelectingDelegate
getResult
in class AbstractSelectingDelegate
session
- The sessionrs
- The result set containing the generated primay key values.entity
- The entity being saved.
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |