public interface Expectation
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeBatched()
Is it acceptable to combiner this expectation with statement batching?
|
int |
prepare(PreparedStatement statement)
Perform any special statement preparation.
|
void |
verifyOutcome(int rowCount,
PreparedStatement statement,
int batchPosition,
String statementSQL)
Perform verification of the outcome of the RDBMS operation based on
the type of expectation defined.
|
void verifyOutcome(int rowCount,
PreparedStatement statement,
int batchPosition,
String statementSQL)
throws SQLException,
HibernateException
rowCount - The RDBMS reported "number of rows affected".statement - The statement representing the operationbatchPosition - The position in the batch (if batching)statementSQL - The SQL backing the prepared statement, for logging purposesSQLException - Exception from the JDBC driverHibernateException - Problem processing the outcome.int prepare(PreparedStatement statement) throws SQLException, HibernateException
statement - The statement to be preparedSQLException - Exception from the JDBC driverHibernateException - Problem performing preparation.boolean canBeBatched()
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.