Class PreparedStatementGroupStandard
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupStandard
-
- All Implemented Interfaces:
PreparedStatementGroup
public class PreparedStatementGroupStandard extends Object implements PreparedStatementGroup
A group ofPreparedStatementDetailsreferences related to multi-table entity mappings. The statements are keyed by each table-names.
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, List<PreparableMutationOperation> jdbcMutations, SharedSessionContractImplementor session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEachStatement(BiConsumer<String,PreparedStatementDetails> action)Visit the details for each table mutationintgetNumberOfActiveStatements()intgetNumberOfStatements()The number of statements in this groupPreparedStatementDetailsgetPreparedStatementDetails(String tableName)Get the PreparedStatement in this group related to the given table-name.PreparedStatementDetailsgetSingleStatementDetails()Get the single statement details.booleanhasMatching(Predicate<PreparedStatementDetails> filter)voidrelease()Release resources held by this group.PreparedStatementDetailsresolvePreparedStatementDetails(String tableName)Get the PreparedStatement in this group related to the given table-name.
-
-
-
Constructor Detail
-
PreparedStatementGroupStandard
public PreparedStatementGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, List<PreparableMutationOperation> jdbcMutations, SharedSessionContractImplementor session)
-
-
Method Detail
-
getNumberOfStatements
public int getNumberOfStatements()
Description copied from interface:PreparedStatementGroupThe number of statements in this group- Specified by:
getNumberOfStatementsin interfacePreparedStatementGroup
-
getNumberOfActiveStatements
public int getNumberOfActiveStatements()
- Specified by:
getNumberOfActiveStatementsin interfacePreparedStatementGroup
-
getSingleStatementDetails
public PreparedStatementDetails getSingleStatementDetails()
Description copied from interface:PreparedStatementGroupGet the single statement details.- Specified by:
getSingleStatementDetailsin interfacePreparedStatementGroup
-
forEachStatement
public void forEachStatement(BiConsumer<String,PreparedStatementDetails> action)
Description copied from interface:PreparedStatementGroupVisit the details for each table mutation- Specified by:
forEachStatementin interfacePreparedStatementGroup
-
getPreparedStatementDetails
public PreparedStatementDetails getPreparedStatementDetails(String tableName)
Description copied from interface:PreparedStatementGroupGet the PreparedStatement in this group related to the given table-name. Will return null if no descriptor (yet) exists- Specified by:
getPreparedStatementDetailsin interfacePreparedStatementGroup
-
resolvePreparedStatementDetails
public PreparedStatementDetails resolvePreparedStatementDetails(String tableName)
Description copied from interface:PreparedStatementGroupGet the PreparedStatement in this group related to the given table-name. If the descriptor does not already exist, this method will create it.- Specified by:
resolvePreparedStatementDetailsin interfacePreparedStatementGroup- See Also:
PreparedStatementGroup.getPreparedStatementDetails(java.lang.String)
-
hasMatching
public boolean hasMatching(Predicate<PreparedStatementDetails> filter)
- Specified by:
hasMatchingin interfacePreparedStatementGroup
-
release
public void release()
Description copied from interface:PreparedStatementGroupRelease resources held by this group.- Specified by:
releasein interfacePreparedStatementGroup
-
-