Package org.hibernate.jdbc
Class Expectations.BasicParamExpectation
java.lang.Object
org.hibernate.jdbc.Expectations.BasicExpectation
org.hibernate.jdbc.Expectations.BasicParamExpectation
- All Implemented Interfaces:
Expectation
- Enclosing class:
Expectations
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasicParamExpectation(int expectedRowCount, int parameterPosition) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs it acceptable to combiner this expectation with statement batching?protected intdetermineRowCount(int reportedRowCount, PreparedStatement statement) intprepare(PreparedStatement statement) Perform any special statement preparation.Methods inherited from class org.hibernate.jdbc.Expectations.BasicExpectation
verifyOutcome
-
Constructor Details
-
BasicParamExpectation
protected BasicParamExpectation(int expectedRowCount, int parameterPosition)
-
-
Method Details
-
prepare
Description copied from interface:ExpectationPerform any special statement preparation.- Specified by:
preparein interfaceExpectation- Overrides:
preparein classExpectations.BasicExpectation- Parameters:
statement- The statement to be prepared- Returns:
- The number of bind positions consumed (if any)
- Throws:
SQLException- Exception from the JDBC driverHibernateException- Problem performing preparation.
-
canBeBatched
public boolean canBeBatched()Description copied from interface:ExpectationIs it acceptable to combiner this expectation with statement batching?- Specified by:
canBeBatchedin interfaceExpectation- Overrides:
canBeBatchedin classExpectations.BasicExpectation- Returns:
- True if batching can be combined with this expectation; false otherwise.
-
determineRowCount
- Overrides:
determineRowCountin classExpectations.BasicExpectation
-