org.hibernate.jdbc
Class Expectations.BasicExpectation

java.lang.Object
  extended by org.hibernate.jdbc.Expectations.BasicExpectation
All Implemented Interfaces:
Expectation
Direct Known Subclasses:
Expectations.BasicParamExpectation
Enclosing class:
Expectations

public static class Expectations.BasicExpectation
extends Object
implements Expectation


Constructor Summary
protected Expectations.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expectations.BasicExpectation

protected Expectations.BasicExpectation(int expectedRowCount)
Method Detail

verifyOutcome

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

prepare

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

canBeBatched

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

determineRowCount

protected int determineRowCount(int reportedRowCount,
                                PreparedStatement statement)