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
Expectationprepare in interface Expectationprepare in class Expectations.BasicExpectationstatement - The statement to be preparedSQLException - Exception from the JDBC driverHibernateException - Problem performing preparation.public boolean canBeBatched()
ExpectationcanBeBatched in interface ExpectationcanBeBatched in class Expectations.BasicExpectationprotected int determineRowCount(int reportedRowCount,
PreparedStatement statement)
determineRowCount in class Expectations.BasicExpectationCopyright © 2018 JBoss by Red Hat. All rights reserved.