Top Description Constructors Methods
org.hibernate.engine.jdbc.mutation.internal

public abstract Class AbstractMutationExecutor

extends Object
implements MutationExecutor
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.mutation.MutationExecutor
Known Direct Subclasses
org.hibernate.engine.jdbc.mutation.internal.AbstractSingleMutationExecutor, org.hibernate.engine.jdbc.mutation.internal.MutationExecutorSingleSelfExecuting, org.hibernate.engine.jdbc.mutation.internal.MutationExecutorStandard
Imports
java.sql.SQLException, org.hibernate.engine.jdbc.batch.spi.BatchKey, org.hibernate.engine.jdbc.mutation.JdbcValueBindings, .MutationExecutor, .OperationResultChecker, .TableInclusionChecker, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.sql.model.TableMapping, .ValuesAnalysis

Base support for MutationExecutor implementations
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final Object
execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker
The ability to skip the execution for a specific table; passing null indicates no filtering
inclusionChecker
,
OperationResultChecker
Custom result checking; pass null to perform the standard check using the statement's expectation
resultChecker
,
SharedSessionContractImplementor session)

Implements org.hibernate.engine.jdbc.mutation.MutationExecutor.execute.

Templated implementation of execution as
  1. performNonBatchedOperations
  2. performSelfExecutingOperations
  3. performBatchedOperations
protected void
protected void
performNonBatchedMutation(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)

Perform a non-batched mutation

protected void
protected void
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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractMutationExecutorback to summary
public AbstractMutationExecutor()

Method Detail

executeback to summary
public final Object execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)

Implements org.hibernate.engine.jdbc.mutation.MutationExecutor.execute.

Templated implementation of execution as

  1. performNonBatchedOperations
  2. performSelfExecutingOperations
  3. performBatchedOperations
Parameters
inclusionChecker:TableInclusionChecker

Doc from org.hibernate.engine.jdbc.mutation.MutationExecutor.execute.

The ability to skip the execution for a specific table; passing null indicates no filtering

resultChecker:OperationResultChecker

Doc from org.hibernate.engine.jdbc.mutation.MutationExecutor.execute.

Custom result checking; pass null to perform the standard check using the statement's expectation

Annotations
@Override
performBatchedOperationsback to summary
protected void performBatchedOperations(ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker)
performNonBatchedMutationback to summary
protected void performNonBatchedMutation(PreparedStatementDetails statementDetails, JdbcValueBindings valueBindings, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)

Perform a non-batched mutation

performNonBatchedOperationsback to summary
protected void performNonBatchedOperations(ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
performSelfExecutingOperationsback to summary
protected void performSelfExecutingOperations(ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, SharedSessionContractImplementor session)
prepareForNonBatchedWorkback to summary
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