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 Object
execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
Perform the execution, returning any generated value.JdbcValueBindings
getJdbcValueBindings()
Get the delegate to be used to coordinate JDBC parameter binding.PreparedStatementDetails
getPreparedStatementDetails(String tableName)
Details about thePreparedStatement
for mutating the given table.void
release()
-
-
-
Method Detail
-
getJdbcValueBindings
JdbcValueBindings getJdbcValueBindings()
Get the delegate to be used to coordinate JDBC parameter binding.
-
getPreparedStatementDetails
PreparedStatementDetails getPreparedStatementDetails(String tableName)
Details about thePreparedStatement
for 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; passingnull
indicates no filteringresultChecker
- Custom result checking; passnull
to perform the standard check using the statement's expectation
-
release
void release()
-
-