public static class SelectGenerator.SelectGeneratorDelegate extends AbstractSelectingDelegate implements InsertGeneratedIdentifierDelegate
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindParameters(SessionImplementor session,
java.sql.PreparedStatement ps,
java.lang.Object entity)
Bind any required parameter values into the SQL command
AbstractSelectingDelegate.getSelectSQL(). |
protected java.io.Serializable |
getResult(SessionImplementor session,
java.sql.ResultSet rs,
java.lang.Object entity)
Extract the generated key value from the given result set.
|
protected java.lang.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. |
performInsertclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperformInsertpublic IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
InsertGeneratedIdentifierDelegateInsert specific to the delegate's mode
of handling generated key values.prepareIdentifierGeneratingInsert in interface InsertGeneratedIdentifierDelegateprotected java.lang.String getSelectSQL()
AbstractSelectingDelegategetSelectSQL in class AbstractSelectingDelegateprotected void bindParameters(SessionImplementor session, java.sql.PreparedStatement ps, java.lang.Object entity) throws java.sql.SQLException
AbstractSelectingDelegateAbstractSelectingDelegate.getSelectSQL().bindParameters in class AbstractSelectingDelegatesession - The sessionps - The prepared SQL commandentity - The entity being saved.java.sql.SQLExceptionprotected java.io.Serializable getResult(SessionImplementor session, java.sql.ResultSet rs, java.lang.Object entity) throws java.sql.SQLException
AbstractSelectingDelegategetResult in class AbstractSelectingDelegatesession - The sessionrs - The result set containing the generated primay key values.entity - The entity being saved.java.sql.SQLExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.