|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Expectation
Defines an expected DML operation outcome.
Method Summary | |
---|---|
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)
Perform verification of the outcome of the RDBMS operation based on the type of expectation defined. |
Method Detail |
---|
void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition) throws SQLException, HibernateException
rowCount
- The RDBMS reported "number of rows affected".statement
- The statement representing the operationbatchPosition
- The position in the batch (if batching)
SQLException
- Exception from the JDBC driver
HibernateException
- Problem processing the outcome.int prepare(PreparedStatement statement) throws SQLException, HibernateException
statement
- The statement to be prepared
SQLException
- Exception from the JDBC driver
HibernateException
- Problem performing preparation.boolean canBeBatched()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |