public static class Expectations.BasicParamExpectation extends Expectations.BasicExpectation
| Modifier | Constructor and Description |
|---|---|
protected |
BasicParamExpectation(int expectedRowCount,
int parameterPosition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeBatched()
Is it acceptable to combiner this expectation with statement batching?
|
protected int |
determineRowCount(int reportedRowCount,
PreparedStatement statement) |
int |
prepare(PreparedStatement statement)
Perform any special statement preparation.
|
verifyOutcomeprotected BasicParamExpectation(int expectedRowCount,
int parameterPosition)
public int prepare(PreparedStatement statement) throws SQLException, HibernateException
ExpectationPerform any special statement preparation.
prepare in interface Expectationprepare in class Expectations.BasicExpectationstatement - The statement to be preparedSQLException - Exception from the JDBC driverHibernateException - Problem performing preparation.public boolean canBeBatched()
ExpectationIs it acceptable to combiner this expectation with statement batching?
canBeBatched in interface ExpectationcanBeBatched in class Expectations.BasicExpectationprotected int determineRowCount(int reportedRowCount,
PreparedStatement statement)
determineRowCount in class Expectations.BasicExpectationCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.