Class MutationExecutorPostInsert
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.MutationExecutorPostInsert
-
- All Implemented Interfaces:
MutationExecutor
public class MutationExecutorPostInsert extends Object implements MutationExecutor
Specialized executor for the case of more than one table operation, with the root table defining a post-insert id-generation strategy.
-
-
Constructor Summary
Constructors Constructor Description MutationExecutorPostInsert(MutationOperationGroup mutationOperationGroup, SharedSessionContractImplementor session)
-
Method Summary
All Methods Instance Methods Concrete 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()StringtoString()
-
-
-
Constructor Detail
-
MutationExecutorPostInsert
public MutationExecutorPostInsert(MutationOperationGroup mutationOperationGroup, SharedSessionContractImplementor session)
-
-
Method Detail
-
getJdbcValueBindings
public JdbcValueBindings getJdbcValueBindings()
Description copied from interface:MutationExecutorGet the delegate to be used to coordinate JDBC parameter binding.- Specified by:
getJdbcValueBindingsin interfaceMutationExecutor
-
getPreparedStatementDetails
public PreparedStatementDetails getPreparedStatementDetails(String tableName)
Description copied from interface:MutationExecutorDetails about thePreparedStatementfor mutating the given table.- Specified by:
getPreparedStatementDetailsin interfaceMutationExecutor
-
execute
public Object execute(Object modelReference, ValuesAnalysis valuesAnalysis, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
Description copied from interface:MutationExecutorPerform the execution, returning any generated value.- Specified by:
executein interfaceMutationExecutorinclusionChecker- 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
public void release()
- Specified by:
releasein interfaceMutationExecutor
-
-