Interface PreparedStatementGroup
Grouping of
PreparedStatement references.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanRetry()Whether the statement group can be retried in case of an error if the call toExpectation.verifyOutcome(int, PreparedStatement, int, String)succeeds.voidVisit the details for each table mutationintintThe number of statements in this groupgetPreparedStatementDetails(String tableName) Get the PreparedStatement in this group related to the given table-name.Get the single statement details.booleanhasMatching(Predicate<PreparedStatementDetails> filter) voidrelease()Release resources held by this group.resolvePreparedStatementDetails(String tableName) Get the PreparedStatement in this group related to the given table-name.
-
Method Details
-
getNumberOfStatements
int getNumberOfStatements()The number of statements in this group -
getNumberOfActiveStatements
int getNumberOfActiveStatements() -
canRetry
boolean canRetry()Whether the statement group can be retried in case of an error if the call toExpectation.verifyOutcome(int, PreparedStatement, int, String)succeeds. -
getSingleStatementDetails
PreparedStatementDetails getSingleStatementDetails()Get the single statement details.- Throws:
IllegalStateException- if there is more than one statement associated with this group.
-
forEachStatement
Visit the details for each table mutation -
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.- See Also:
-
getPreparedStatementDetails
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
-