public static class IdentityGenerator.InsertSelectDelegate extends AbstractReturningDelegate implements InsertGeneratedIdentifierDelegate
| Constructor and Description |
|---|
InsertSelectDelegate(PostInsertIdentityPersister persister,
Dialect dialect) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
determineGeneratedIdentifier(SharedSessionContractImplementor session,
Object entity) |
Serializable |
executeAndExtract(PreparedStatement insert,
SharedSessionContractImplementor session) |
protected PreparedStatement |
prepare(String insertSQL,
SharedSessionContractImplementor session) |
IdentifierGeneratingInsert |
prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
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 InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect)
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
InsertGeneratedIdentifierDelegateInsert specific to the delegate's mode
of handling generated key values.prepareIdentifierGeneratingInsert in interface InsertGeneratedIdentifierDelegatecontext - A context to help generate SQL stringsprotected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
prepare in class AbstractReturningDelegateSQLExceptionpublic Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
executeAndExtract in class AbstractReturningDelegateSQLExceptionpublic Serializable determineGeneratedIdentifier(SharedSessionContractImplementor session, Object entity)
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.