Interface PreparedStatementGroup
-
- All Known Implementing Classes:
PreparedStatementGroupNone
,PreparedStatementGroupSingleTable
,PreparedStatementGroupStandard
@Incubating public interface PreparedStatementGroup
Grouping ofPreparedStatement
references.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getNumberOfStatements
int getNumberOfStatements()
The number of statements in this group
-
getNumberOfActiveStatements
int getNumberOfActiveStatements()
-
getSingleStatementDetails
PreparedStatementDetails getSingleStatementDetails()
Get the single statement details.- Throws:
IllegalStateException
- if there is more than one statement associated with this group.
-
forEachStatement
void forEachStatement(BiConsumer<String,PreparedStatementDetails> action)
Visit the details for each table mutation
-
resolvePreparedStatementDetails
PreparedStatementDetails resolvePreparedStatementDetails(String tableName)
Get the PreparedStatement in this group related to the given table-name. If the descriptor does not already exist, this method will create it.
-
getPreparedStatementDetails
PreparedStatementDetails getPreparedStatementDetails(String tableName)
Get the PreparedStatement in this group related to the given table-name. Will return null if no descriptor (yet) exists
-
release
void release()
Release resources held by this group.
-
hasMatching
boolean hasMatching(Predicate<PreparedStatementDetails> filter)
-
-