public static class SequenceIdentityGenerator.Delegate extends AbstractReturningDelegate
Constructor and Description |
---|
Delegate(PostInsertIdentityPersister persister,
QualifiedName physicalSequenceName) |
Modifier and Type | Method and Description |
---|---|
protected 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, releaseStatement
public Delegate(PostInsertIdentityPersister persister, QualifiedName physicalSequenceName)
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
InsertGeneratedIdentifierDelegate
Insert
specific to the delegate's mode
of handling generated key values.context
- A context to help generate SQL stringsprotected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
prepare
in class AbstractReturningDelegate
SQLException
protected Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
executeAndExtract
in class AbstractReturningDelegate
SQLException
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.