Interface MutationExecutor
-
- All Known Implementing Classes:
AbstractMutationExecutor,AbstractSingleMutationExecutor,MutationExecutorPostInsert,MutationExecutorPostInsertSingleTable,MutationExecutorSingleBatched,MutationExecutorSingleNonBatched,MutationExecutorSingleSelfExecuting,MutationExecutorStandard
@Incubating public interface MutationExecutor
Main contract for performing the mutation. Accounts for various moving parts such as:- Should the statements be batched or not?
- Should we "logically" group logging of the parameter bindings?
- ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectexecute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)Perform the execution, returning any generated value.JdbcValueBindingsgetJdbcValueBindings()Get the delegate to be used to coordinate JDBC parameter binding.PreparedStatementDetailsgetPreparedStatementDetails(String tableName)Details about thePreparedStatementfor mutating the given table.voidrelease()
-
-
-
Method Detail
-
getJdbcValueBindings
JdbcValueBindings getJdbcValueBindings()
Get the delegate to be used to coordinate JDBC parameter binding.
-
getPreparedStatementDetails
PreparedStatementDetails getPreparedStatementDetails(String tableName)
Details about thePreparedStatementfor mutating the given table.
-
execute
Object execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
Perform the execution, returning any generated value.- Parameters:
inclusionChecker- The ability to skip the execution for a specific table; passingnullindicates no filteringresultChecker- Custom result checking; passnullto perform the standard check using the statement's expectation
-
release
void release()
-
-