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()
Build a
Insert specific to the delegate's mode
of handling generated key values. |
getPersister, performInsert, releaseStatement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
performInsert
public InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect)
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
InsertGeneratedIdentifierDelegate
Insert
specific to the delegate's mode
of handling generated key values.prepareIdentifierGeneratingInsert
in interface InsertGeneratedIdentifierDelegate
protected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
prepare
in class AbstractReturningDelegate
SQLException
public Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
executeAndExtract
in class AbstractReturningDelegate
SQLException
public Serializable determineGeneratedIdentifier(SharedSessionContractImplementor session, Object entity)
Copyright © 2019 JBoss by Red Hat. All rights reserved.