org.hibernate.jdbc

Class Expectations.BasicParamExpectation

Enclosing Class:
Expectations
Implemented Interfaces:
Expectation

public static class Expectations.BasicParamExpectation
extends Expectations.BasicExpectation

Constructor Summary

BasicParamExpectation(int expectedRowCount, int parameterPosition)

Method Summary

boolean
canBeBatched()
protected int
determineRowCount(int reportedRowCount, PreparedStatement statement)
int
prepare(PreparedStatement statement)

Methods inherited from class org.hibernate.jdbc.Expectations.BasicExpectation

canBeBatched, determineRowCount, prepare, verifyOutcome

Constructor Details

BasicParamExpectation

protected BasicParamExpectation(int expectedRowCount,
                                int parameterPosition)

Method Details

canBeBatched

public boolean canBeBatched()
Specified by:
canBeBatched in interface Expectation
Overrides:
canBeBatched in interface Expectations.BasicExpectation

determineRowCount

protected int determineRowCount(int reportedRowCount,
                                PreparedStatement statement)
Overrides:
determineRowCount in interface Expectations.BasicExpectation

prepare

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