public class GetGeneratedKeysDelegate extends AbstractReturningDelegate implements InsertGeneratedIdentifierDelegate
| Constructor and Description |
|---|
GetGeneratedKeysDelegate(PostInsertIdentityPersister persister,
Dialect dialect) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
executeAndExtract(java.sql.PreparedStatement insert,
SharedSessionContractImplementor session) |
protected java.sql.PreparedStatement |
prepare(java.lang.String insertSQL,
SharedSessionContractImplementor session) |
IdentifierGeneratingInsert |
prepareIdentifierGeneratingInsert()
Build a
Insert specific to the delegate's mode
of handling generated key values. |
getPersister, performInsert, releaseStatementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperformInsertpublic GetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
InsertGeneratedIdentifierDelegateInsert specific to the delegate's mode
of handling generated key values.prepareIdentifierGeneratingInsert in interface InsertGeneratedIdentifierDelegateprotected java.sql.PreparedStatement prepare(java.lang.String insertSQL,
SharedSessionContractImplementor session)
throws java.sql.SQLException
prepare in class AbstractReturningDelegatejava.sql.SQLExceptionpublic java.io.Serializable executeAndExtract(java.sql.PreparedStatement insert,
SharedSessionContractImplementor session)
throws java.sql.SQLException
executeAndExtract in class AbstractReturningDelegatejava.sql.SQLExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.