public abstract class AbstractSelectingDelegate extends Object implements InsertGeneratedIdentifierDelegate
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractSelectingDelegate(PostInsertIdentityPersister persister)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
bindParameters(SessionImplementor session,
              PreparedStatement ps,
              Object entity)
Bind any required parameter values into the SQL command  
getSelectSQL(). | 
protected abstract Serializable | 
getResult(SessionImplementor session,
         ResultSet rs,
         Object entity)
Extract the generated key value from the given result set. 
 | 
protected abstract String | 
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values. 
 | 
Serializable | 
performInsert(String insertSQL,
             SessionImplementor session,
             Binder binder)
Perform the indicated insert SQL statement and determine the identifier value
 generated. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareIdentifierGeneratingInsertprotected AbstractSelectingDelegate(PostInsertIdentityPersister persister)
public final Serializable performInsert(String insertSQL, SessionImplementor session, Binder binder)
InsertGeneratedIdentifierDelegateperformInsert in interface InsertGeneratedIdentifierDelegateinsertSQL - The INSERT statement stringsession - The session in which we are operatingbinder - The param binderprotected abstract String getSelectSQL()
protected void bindParameters(SessionImplementor session, PreparedStatement ps, Object entity) throws SQLException
getSelectSQL().session - The sessionps - The prepared SQL commandentity - The entity being saved.SQLExceptionprotected abstract Serializable getResult(SessionImplementor session, ResultSet rs, Object entity) throws SQLException
session - The sessionrs - The result set containing the generated primay key values.entity - The entity being saved.SQLExceptionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.