站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

Expectations.BasicExpectation (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.jdbc
Class Expectations.BasicExpectation

java.lang.Object
  extended byorg.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)