Class AbstractMutationExecutor
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor
-
- All Implemented Interfaces:
MutationExecutor
- Direct Known Subclasses:
AbstractSingleMutationExecutor
,MutationExecutorSingleSelfExecuting
,MutationExecutorStandard
public abstract class AbstractMutationExecutor extends Object implements MutationExecutor
Base support for MutationExecutor implementations
-
-
Constructor Summary
Constructors Constructor Description AbstractMutationExecutor()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.jdbc.mutation.MutationExecutor
getJdbcValueBindings, getPreparedStatementDetails, release
-
-
-
-
Method Detail
-
prepareForNonBatchedWork
protected void prepareForNonBatchedWork(BatchKey batchKey, SharedSessionContractImplementor session)
Executors with non-batched operations should call this to clean up any "previous" batch before starting their work
-
execute
public final GeneratedValues execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
Templated implementation of execution asperformNonBatchedOperations(java.lang.Object, org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker, org.hibernate.engine.jdbc.mutation.OperationResultChecker, org.hibernate.engine.spi.SharedSessionContractImplementor)
performSelfExecutingOperations(org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker, org.hibernate.engine.spi.SharedSessionContractImplementor)
performBatchedOperations(org.hibernate.sql.model.ValuesAnalysis, org.hibernate.engine.jdbc.mutation.TableInclusionChecker)
- Specified by:
execute
in interfaceMutationExecutor
inclusionChecker
- The ability to skip the execution for a specific table; passingnull
indicates no filteringresultChecker
- Custom result checking; passnull
to perform the standard check using the statement's expectation
-
performNonBatchedOperations
protected GeneratedValues performNonBatchedOperations(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
-
performSelfExecutingOperations
protected void performSelfExecutingOperations(ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, SharedSessionContractImplementor session)
-
performBatchedOperations
protected void performBatchedOperations(ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker)
-
performNonBatchedMutation
protected void performNonBatchedMutation(PreparedStatementDetails statementDetails, Object id, JdbcValueBindings valueBindings, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
Perform a non-batched mutation
-
-