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 aTableMutationBuilder
instance used to build table mutations for this delegate.protected GeneratedValues
executeAndExtractReturning
(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 giveninsert
statement.prepareStatement
(String sql, SharedSessionContractImplementor session) Create aPreparedStatement
from the providedsql
based on the delegate needs.Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
performInsertReturning, performMutation, releaseStatement
Methods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:GeneratedValuesMutationDelegate
Create aTableMutationBuilder
instance used to build table mutations for this delegate. -
prepareIdentifierGeneratingInsert
Description copied from interface:InsertGeneratedIdentifierDelegate
Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsert
statement.- Returns:
- The processed
insert
statement string
-