Class PreparedStatementGroupSingleTable
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupSingleTable
-
- All Implemented Interfaces:
PreparedStatementGroup
public class PreparedStatementGroupSingleTable extends Object implements PreparedStatementGroup
PreparedStatementGroup implementation for cases where we have just a single operation
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementGroupSingleTable(PreparableMutationOperation jdbcMutation, SharedSessionContractImplementor session)
PreparedStatementGroupSingleTable(PreparableMutationOperation jdbcMutation, GeneratedValuesMutationDelegate delegate, 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 mutationprotected TableMapping
getMutatingTableDetails()
int
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
-
PreparedStatementGroupSingleTable
public PreparedStatementGroupSingleTable(PreparableMutationOperation jdbcMutation, SharedSessionContractImplementor session)
-
PreparedStatementGroupSingleTable
public PreparedStatementGroupSingleTable(PreparableMutationOperation jdbcMutation, GeneratedValuesMutationDelegate delegate, SharedSessionContractImplementor session)
-
-
Method Detail
-
getMutatingTableDetails
protected TableMapping getMutatingTableDetails()
-
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
-
-