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

public Class MutationExecutorPostInsert

extends Object
implements MutationExecutor, JdbcValueDescriptorAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.mutation.internal.JdbcValueBindingsImpl.JdbcValueDescriptorAccess, org.hibernate.engine.jdbc.mutation.MutationExecutor
Imports
java.sql.SQLException, java.util.ArrayList, .List, .Locale, org.hibernate.engine.jdbc.mutation.JdbcValueBindings, .MutationExecutor, .OperationResultChecker, .ParameterUsage, .TableInclusionChecker, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails, .PreparedStatementGroup, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.id.insert.InsertGeneratedIdentifierDelegate, org.hibernate.persister.entity.mutation.EntityMutationTarget, .EntityTableMapping, org.hibernate.sql.model.EntityMutationOperationGroup, .MutationOperation, .MutationOperationGroup, .MutationType, .PreparableMutationOperation, .SelfExecutingUpdateOperation, .ValuesAnalysis, org.hibernate.sql.model.jdbc.JdbcValueDescriptor

Specialized executor for the case of more than one table operation, with the root table defining a post-insert id-generation strategy.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final PreparedStatementDetails
protected final MutationOperationGroup
protected final EntityMutationTarget
protected final PreparedStatementGroup
secondaryTablesStatementGroup

Any non-batched JDBC statements

protected final JdbcValueBindingsImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public 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.

Perform the execution, returning any generated value.
private void
public JdbcValueBindings
getJdbcValueBindings()

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

Get the delegate to be used to coordinate JDBC parameter binding.
public PreparedStatementDetails
public void
public JdbcValueDescriptor
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

identityInsertStatementDetailsback to summary
protected final PreparedStatementDetails identityInsertStatementDetails
mutationOperationGroupback to summary
protected final MutationOperationGroup mutationOperationGroup
mutationTargetback to summary
protected final EntityMutationTarget mutationTarget
secondaryTablesStatementGroupback to summary
protected final PreparedStatementGroup secondaryTablesStatementGroup

Any non-batched JDBC statements

valueBindingsback to summary
protected final JdbcValueBindingsImpl valueBindings

Constructor Detail

MutationExecutorPostInsertback to summary
public MutationExecutorPostInsert(EntityMutationOperationGroup mutationOperationGroup, SharedSessionContractImplementor session)

Method Detail

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

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

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

Perform the execution, returning any generated value.

Parameters
inclusionChecker:TableInclusionChecker

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

resultChecker:OperationResultChecker

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

Annotations
@Override
executeWithIdback to summary
private void executeWithId(Object id, String tableName, PreparedStatementDetails statementDetails, TableInclusionChecker inclusionChecker, OperationResultChecker resultChecker, SharedSessionContractImplementor session)
getJdbcValueBindingsback to summary
public JdbcValueBindings getJdbcValueBindings()

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

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

Get the delegate to be used to coordinate JDBC parameter binding.

Annotations
@Override
getPreparedStatementDetailsback to summary
public PreparedStatementDetails getPreparedStatementDetails(String tableName)

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

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

Details about the java.sql.PreparedStatement for mutating the given table.

Annotations
@Override
releaseback to summary
public void release()

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

Annotations
@Override
resolveValueDescriptorback to summary
public JdbcValueDescriptor resolveValueDescriptor(String tableName, String columnName, ParameterUsage usage)

Implements org.hibernate.engine.jdbc.mutation.internal.JdbcValueBindingsImpl.JdbcValueDescriptorAccess.resolveValueDescriptor.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override