Package org.hibernate.id.insert
Class InsertReturningDelegate
java.lang.Object
org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
org.hibernate.id.insert.AbstractReturningDelegate
org.hibernate.id.insert.InsertReturningDelegate
- All Implemented Interfaces:
GeneratedValuesMutationDelegate,InsertGeneratedIdentifierDelegate
Delegate for dealing with generated values where the dialect supports
returning the generated column directly from the mutation statement.
-
Field Summary
Fields inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer, persister -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory) Create aTableMutationBuilderinstance used to build table mutations for this delegate.protected GeneratedValuesexecuteAndExtractReturning(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) prepareIdentifierGeneratingInsert(String insertSQL) Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsertstatement.prepareStatement(String sql, SharedSessionContractImplementor session) Create aPreparedStatementfrom the providedsqlbased on the delegate needs.Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
performInsertReturning, performMutation, releaseStatementMethods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.values.GeneratedValuesMutationDelegate
getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
Constructor Details
-
InsertReturningDelegate
-
-
Method Details
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory) Description copied from interface:GeneratedValuesMutationDelegateCreate aTableMutationBuilderinstance used to build table mutations for this delegate. -
prepareIdentifierGeneratingInsert
Description copied from interface:InsertGeneratedIdentifierDelegateAppend SQL specific to this delegate's mode of handling generated primary key values to the giveninsertstatement.- Returns:
- The processed
insertstatement string
-