public abstract class AbstractSelectingDelegate extends java.lang.Object implements InsertGeneratedIdentifierDelegate
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectingDelegate(PostInsertIdentityPersister persister) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindParameters(SharedSessionContractImplementor session,
java.sql.PreparedStatement ps,
java.lang.Object entity)
Bind any required parameter values into the SQL command
getSelectSQL(). |
protected abstract java.io.Serializable |
getResult(SharedSessionContractImplementor session,
java.sql.ResultSet rs,
java.lang.Object entity)
Extract the generated key value from the given result set.
|
protected abstract java.lang.String |
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values.
|
java.io.Serializable |
performInsert(java.lang.String insertSQL,
SharedSessionContractImplementor 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 java.io.Serializable performInsert(java.lang.String insertSQL,
SharedSessionContractImplementor session,
Binder binder)
InsertGeneratedIdentifierDelegateperformInsert in interface InsertGeneratedIdentifierDelegateinsertSQL - The INSERT statement stringsession - The session in which we are operatingbinder - The param binderprotected abstract java.lang.String getSelectSQL()
protected void bindParameters(SharedSessionContractImplementor session, java.sql.PreparedStatement ps, java.lang.Object entity) throws java.sql.SQLException
getSelectSQL().session - The sessionps - The prepared SQL commandentity - The entity being saved.java.sql.SQLExceptionprotected abstract java.io.Serializable getResult(SharedSessionContractImplementor session, java.sql.ResultSet rs, java.lang.Object entity) throws java.sql.SQLException
session - 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.