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

public Class PreparedStatementGroupStandard

extends Object
implements PreparedStatementGroup
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup
Imports
java.sql.PreparedStatement, java.util.Comparator, .List, .Locale, .Map, .SortedMap, .TreeMap, java.util.function.BiConsumer, .Predicate, .Supplier, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails, .PreparedStatementGroup, org.hibernate.engine.jdbc.spi.JdbcCoordinator, .MutationStatementPreparer, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.persister.entity.mutation.EntityMutationTarget, org.hibernate.sql.model.MutationTarget, .MutationType, .PreparableMutationOperation, .TableMapping

A group of PreparedStatementDetails references related to multi-table entity mappings. The statements are keyed by each table-names.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<PreparableMutationOperation>
private final MutationTarget<?>
private final MutationType
private final SharedSessionContractImplementor
private final SortedMap<String, PreparedStatementDetails>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static PreparedStatementDetails
private SortedMap<String, PreparedStatementDetails>
public void
public int
public int
public PreparedStatementDetails
getPreparedStatementDetails(String tableName)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getPreparedStatementDetails.

Get the PreparedStatement in this group related to the given table-name.
public PreparedStatementDetails
public boolean
private TableMapping
public void
release()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.release.

Release resources held by this group.
public PreparedStatementDetails
resolvePreparedStatementDetails(String tableName)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.resolvePreparedStatementDetails.

Get the PreparedStatement in this group related to the given table-name.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jdbcMutationsback to summary
private final List<PreparableMutationOperation> jdbcMutations
mutationTargetback to summary
private final MutationTarget<?> mutationTarget
mutationTypeback to summary
private final MutationType mutationType
sessionback to summary
private final SharedSessionContractImplementor session
statementMapback to summary
private final SortedMap<String, PreparedStatementDetails> statementMap

Constructor Detail

PreparedStatementGroupStandardback to summary
public PreparedStatementGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, List<PreparableMutationOperation> jdbcMutations, SharedSessionContractImplementor session)

Method Detail

createPreparedStatementDetailsback to summary
private static PreparedStatementDetails createPreparedStatementDetails(PreparableMutationOperation jdbcMutation, MutationType mutationType, MutationTarget<?> mutationTarget, SharedSessionContractImplementor session)
createStatementDetailsMapback to summary
private SortedMap<String, PreparedStatementDetails> createStatementDetailsMap(List<PreparableMutationOperation> jdbcMutations, MutationType mutationType, MutationTarget<?> mutationTarget, SharedSessionContractImplementor session)
forEachStatementback to summary
public void forEachStatement(BiConsumer<String, PreparedStatementDetails> action)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.forEachStatement.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.forEachStatement.

Visit the details for each table mutation

Annotations
@Override
getNumberOfActiveStatementsback to summary
public int getNumberOfActiveStatements()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getNumberOfActiveStatements.

Annotations
@Override
getNumberOfStatementsback to summary
public int getNumberOfStatements()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getNumberOfStatements.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getNumberOfStatements.

The number of statements in this group

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

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getPreparedStatementDetails.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getPreparedStatementDetails.

Get the PreparedStatement in this group related to the given table-name. Will return null if no descriptor (yet) exists

Annotations
@Override
getSingleStatementDetailsback to summary
public PreparedStatementDetails getSingleStatementDetails()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getSingleStatementDetails.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.getSingleStatementDetails.

Get the single statement details.

Annotations
@Override
hasMatchingback to summary
public boolean hasMatching(Predicate<PreparedStatementDetails> filter)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.hasMatching.

Annotations
@Override
locateTableMappingback to summary
private TableMapping locateTableMapping(String name)
releaseback to summary
public void release()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.release.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.release.

Release resources held by this group.

Annotations
@Override
resolvePreparedStatementDetailsback to summary
public PreparedStatementDetails resolvePreparedStatementDetails(String tableName)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.resolvePreparedStatementDetails.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementGroup.resolvePreparedStatementDetails.

Get the PreparedStatement in this group related to the given table-name. If the descriptor does not already exist, this method will create it.

Annotations
@Override