Class UpdateVersionSelectDelegate
java.lang.Object
org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
org.hibernate.id.insert.UpdateVersionSelectDelegate
- All Implemented Interfaces:
GeneratedValuesMutationDelegate
Resolves an application-generated version after a conditional update on dialects which do not
support update returning. The primary update is followed by a select of the version column
and any other generated columns, using the dialect's current-read semantics without
selecting an entity snapshot.
-
Field Summary
Fields inherited from class AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer, persister -
Constructor Summary
ConstructorsConstructorDescriptionUpdateVersionSelectDelegate(EntityPersister persister, List<? extends ModelPart> generatedProperties) -
Method Summary
Modifier and TypeMethodDescriptioncreateTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory) Create aTableMutationBuilderinstance used to build table mutations for this delegate.performGraphMutation(FlushOperation operation, Object entity, SharedSessionContractImplementor session) Perform themutationand extract the database-generated values.performMutation(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, 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 AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
Constructor Details
-
UpdateVersionSelectDelegate
public UpdateVersionSelectDelegate(EntityPersister persister, List<? extends ModelPart> generatedProperties)
-
-
Method Details
-
createTableMutationBuilder
public TableMutationBuilder<?> createTableMutationBuilder(Expectation expectation, SessionFactoryImplementor sessionFactory) Description copied from interface:GeneratedValuesMutationDelegateCreate aTableMutationBuilderinstance used to build table mutations for this delegate.
-