Package org.hibernate.id.insert
Class GetGeneratedKeysDelegate
java.lang.Object
org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
org.hibernate.id.insert.AbstractReturningDelegate
org.hibernate.id.insert.GetGeneratedKeysDelegate
- All Implemented Interfaces:
GeneratedValuesMutationDelegate,InsertGeneratedIdentifierDelegate
- Direct Known Subclasses:
SybaseJConnGetGeneratedKeysDelegate
Delegate for dealing with generated values using the JDBC3 method
Statement.getGeneratedKeys().
-
Field Summary
Fields inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer, persister -
Constructor Summary
ConstructorsConstructorDescriptionGetGeneratedKeysDelegate(EntityPersister persister, boolean inferredKeys, EventType timing) -
Method Summary
Modifier and TypeMethodDescriptioncreateTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory) Create aTableMutationBuilderinstance used to build table mutations for this delegate.executeAndExtractReturning(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session) performMutation(PreparedStatementDetails statementDetails, JdbcValueBindings jdbcValueBindings, Object entity, SharedSessionContractImplementor session) Perform themutationand extract the database-generated values.prepareStatement(String sql, SharedSessionContractImplementor session) Create aPreparedStatementfrom the providedsqlbased on the delegate needs.Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
performInsertReturning, 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, supportsRowIdMethods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepareIdentifierGeneratingInsert
-
Constructor Details
-
GetGeneratedKeysDelegate
-
-
Method Details
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor factory) Description copied from interface:GeneratedValuesMutationDelegateCreate aTableMutationBuilderinstance used to build table mutations for this delegate.
-