类 Expectations.BasicParamExpectation
- java.lang.Object
-
- org.hibernate.jdbc.Expectations.BasicExpectation
-
- org.hibernate.jdbc.Expectations.BasicParamExpectation
-
- 所有已实现的接口:
Expectation
- 封闭类:
- Expectations
public static class Expectations.BasicParamExpectation extends Expectations.BasicExpectation
-
-
构造器概要
构造器 限定符 构造器 说明 protectedBasicParamExpectation(int expectedRowCount, int parameterPosition)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.-
从类继承的方法 org.hibernate.jdbc.Expectations.BasicExpectation
verifyOutcome
-
-
-
-
方法详细资料
-
prepare
public int prepare(PreparedStatement statement) throws SQLException, HibernateException
从接口复制的说明:ExpectationPerform any special statement preparation.- 指定者:
prepare在接口中Expectation- 覆盖:
prepare在类中Expectations.BasicExpectation- 参数:
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- 覆盖:
canBeBatched在类中Expectations.BasicExpectation- 返回:
- True if batching can be combined with this expectation; false otherwise.
-
determineRowCount
protected int determineRowCount(int reportedRowCount, PreparedStatement statement)
-
-