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 ofPreparedStatementDetails
references related to multi-table entity mappings. The statements are keyed by each table-names.
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, GeneratedValuesMutationDelegate generatedValuesDelegate, List<PreparableMutationOperation> jdbcMutations, SharedSessionContractImplementor session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachStatement(BiConsumer<String,PreparedStatementDetails> action)
Visit the details for each table mutationint
getNumberOfActiveStatements()
int
getNumberOfStatements()
The number of statements in this groupPreparedStatementDetails
getPreparedStatementDetails(String tableName)
Get the PreparedStatement in this group related to the given table-name.PreparedStatementDetails
getSingleStatementDetails()
Get the single statement details.boolean
hasMatching(Predicate<PreparedStatementDetails> filter)
void
release()
Release resources held by this group.PreparedStatementDetails
resolvePreparedStatementDetails(String tableName)
Get the PreparedStatement in this group related to the given table-name.
-
-
-
Constructor Detail
-
PreparedStatementGroupStandard
public PreparedStatementGroupStandard(MutationType mutationType, MutationTarget<?> mutationTarget, GeneratedValuesMutationDelegate generatedValuesDelegate, List<PreparableMutationOperation> jdbcMutations, SharedSessionContractImplementor session)
-
-
Method Detail
-
getNumberOfStatements
public int getNumberOfStatements()
Description copied from interface:PreparedStatementGroup
The number of statements in this group- Specified by:
getNumberOfStatements
in interfacePreparedStatementGroup
-
getNumberOfActiveStatements
public int getNumberOfActiveStatements()
- Specified by:
getNumberOfActiveStatements
in interfacePreparedStatementGroup
-
getSingleStatementDetails
public PreparedStatementDetails getSingleStatementDetails()
Description copied from interface:PreparedStatementGroup
Get the single statement details.- Specified by:
getSingleStatementDetails
in interfacePreparedStatementGroup
-
forEachStatement
public void forEachStatement(BiConsumer<String,PreparedStatementDetails> action)
Description copied from interface:PreparedStatementGroup
Visit the details for each table mutation- Specified by:
forEachStatement
in interfacePreparedStatementGroup
-
getPreparedStatementDetails
public PreparedStatementDetails getPreparedStatementDetails(String tableName)
Description copied from interface:PreparedStatementGroup
Get the PreparedStatement in this group related to the given table-name. Will return null if no descriptor (yet) exists- Specified by:
getPreparedStatementDetails
in interfacePreparedStatementGroup
-
resolvePreparedStatementDetails
public PreparedStatementDetails resolvePreparedStatementDetails(String tableName)
Description copied from interface:PreparedStatementGroup
Get 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:
resolvePreparedStatementDetails
in interfacePreparedStatementGroup
- See Also:
PreparedStatementGroup.getPreparedStatementDetails(java.lang.String)
-
hasMatching
public boolean hasMatching(Predicate<PreparedStatementDetails> filter)
- Specified by:
hasMatching
in interfacePreparedStatementGroup
-
release
public void release()
Description copied from interface:PreparedStatementGroup
Release resources held by this group.- Specified by:
release
in interfacePreparedStatementGroup
-
-