org.hibernate.jdbc

Class Expectations.BasicExpectation

Enclosing Class:
Expectations
Implemented Interfaces:
Expectation
Known Direct Subclasses:
Expectations.BasicParamExpectation

public static class Expectations.BasicExpectation
extends java.lang.Object
implements Expectation

Constructor Summary

BasicExpectation(int expectedRowCount)

Method Summary

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

Constructor Details

BasicExpectation

protected BasicExpectation(int expectedRowCount)

Method Details

canBeBatched

public boolean canBeBatched()
Specified by:
canBeBatched in interface Expectation

determineRowCount

protected int determineRowCount(int reportedRowCount,
                                PreparedStatement statement)

prepare

public int prepare(PreparedStatement statement)
            throws SQLException,
                   HibernateException
Specified by:
prepare in interface Expectation

verifyOutcome

public final void verifyOutcome(int rowCount,
                                PreparedStatement statement,
                                int batchPosition)
Specified by:
verifyOutcome in interface Expectation