| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if batching can be combined with this expectation; false otherwise.Is it acceptable to combine this expectation with statement batching? |
| public default int | |
| public int | Returns: The number of bind positions consumed (if any)The statement to be prepared statement)Perform any special statement preparation. |
| public void | verifyOutcome(int
The RDBMS reported "number of rows affected". rowCount, PreparedStatement The statement representing the operation statement, int The position in the batch (if batching) batchPosition, String The SQL backing the prepared statement, for logging purposes statementSQL)Perform verification of the outcome of the RDBMS operation based on the type of expectation defined. |
| canBeBatched | back to summary |
|---|---|
| public boolean canBeBatched() Is it acceptable to combine this expectation with statement batching?
| |
| getNumberOfParametersUsed | back to summary |
|---|---|
| public default int getNumberOfParametersUsed() The number of parameters this expectation implies. E.g.,
| |
| prepare | back to summary |
|---|---|
| public int prepare(PreparedStatement statement) throws SQLException, HibernateException Perform any special statement preparation.
| |
| verifyOutcome | back to summary |
|---|---|
| public void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) throws SQLException, HibernateException Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
| |