org.hibernate.jdbc

Interface Expectation

Known Implementing Classes:
Expectations.BasicExpectation, Expectations.BasicParamExpectation

public interface Expectation

Defines an expected DML operation outcome.
Author:
Steve Ebersole

Method Summary

boolean
canBeBatched()
int
prepare(PreparedStatement statement)
void
verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition)

Method Details

canBeBatched

public boolean canBeBatched()

prepare

public int prepare(PreparedStatement statement)
            throws SQLException,
                   HibernateException

verifyOutcome

public void verifyOutcome(int rowCount,
                          PreparedStatement statement,
                          int batchPosition)
            throws SQLException,
                   HibernateException