Class MutationExecutorPostInsert
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.MutationExecutorPostInsert
-
- All Implemented Interfaces:
JdbcValueBindingsImpl.JdbcValueDescriptorAccess,MutationExecutor
public class MutationExecutorPostInsert extends Object implements MutationExecutor, JdbcValueBindingsImpl.JdbcValueDescriptorAccess
Specialized executor for the case of more than one table operation, with the root table defining a post-insert id-generation strategy.
-
-
Field Summary
Fields Modifier and Type Field Description protected PreparedStatementDetailsidentityInsertStatementDetailsprotected MutationOperationGroupmutationOperationGroupprotected EntityMutationTargetmutationTargetprotected PreparedStatementGroupsecondaryTablesStatementGroupAny non-batched JDBC statementsprotected SharedSessionContractImplementorsessionprotected JdbcValueBindingsImplvalueBindings
-
Constructor Summary
Constructors Constructor Description MutationExecutorPostInsert(EntityMutationOperationGroup 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()JdbcValueDescriptorresolveValueDescriptor(String tableName, String columnName, ParameterUsage usage)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.jdbc.mutation.internal.JdbcValueBindingsImpl.JdbcValueDescriptorAccess
resolvePhysicalTableName
-
-
-
-
Field Detail
-
mutationTarget
protected final EntityMutationTarget mutationTarget
-
mutationOperationGroup
protected final MutationOperationGroup mutationOperationGroup
-
session
protected final SharedSessionContractImplementor session
-
identityInsertStatementDetails
protected final PreparedStatementDetails identityInsertStatementDetails
-
secondaryTablesStatementGroup
protected final PreparedStatementGroup secondaryTablesStatementGroup
Any non-batched JDBC statements
-
valueBindings
protected final JdbcValueBindingsImpl valueBindings
-
-
Constructor Detail
-
MutationExecutorPostInsert
public MutationExecutorPostInsert(EntityMutationOperationGroup 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
-
resolveValueDescriptor
public JdbcValueDescriptor resolveValueDescriptor(String tableName, String columnName, ParameterUsage usage)
- Specified by:
resolveValueDescriptorin interfaceJdbcValueBindingsImpl.JdbcValueDescriptorAccess
-
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
-
-