类 Expectations.BasicExpectation
- java.lang.Object
-
- org.hibernate.jdbc.Expectations.BasicExpectation
-
- 所有已实现的接口:
Expectation
- 封闭类:
- Expectations
public static class Expectations.BasicExpectation extends Object implements Expectation
-
-
构造器概要
构造器 限定符 构造器 说明 protectedBasicExpectation(int expectedRowCount)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanBeBatched()Is it acceptable to combiner this expectation with statement batching?protected intdetermineRowCount(int reportedRowCount, PreparedStatement statement)intprepare(PreparedStatement statement)Perform any special statement preparation.voidverifyOutcome(int rowCount, PreparedStatement statement, int batchPosition)Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
-
-
-
方法详细资料
-
verifyOutcome
public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition)从接口复制的说明:ExpectationPerform verification of the outcome of the RDBMS operation based on the type of expectation defined.- 指定者:
verifyOutcome在接口中Expectation- 参数:
rowCount- The RDBMS reported "number of rows affected".statement- The statement representing the operationbatchPosition- The position in the batch (if batching)
-
prepare
public int prepare(PreparedStatement statement) throws SQLException, HibernateException
从接口复制的说明:ExpectationPerform any special statement preparation.- 指定者:
prepare在接口中Expectation- 参数:
statement- The statement to be prepared- 返回:
- The number of bind positions consumed (if any)
- 抛出:
SQLException- Exception from the JDBC driverHibernateException- Problem performing preparation.
-
canBeBatched
public boolean canBeBatched()
从接口复制的说明:ExpectationIs it acceptable to combiner this expectation with statement batching?- 指定者:
canBeBatched在接口中Expectation- 返回:
- True if batching can be combined with this expectation; false otherwise.
-
determineRowCount
protected int determineRowCount(int reportedRowCount, PreparedStatement statement)
-
-