public static class Expectations.BasicParamExpectation extends Expectations.BasicExpectation
Modifier | Constructor and Description |
---|---|
protected |
Expectations.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.
|
verifyOutcome
protected Expectations.BasicParamExpectation(int expectedRowCount, int parameterPosition)
public int prepare(PreparedStatement statement) throws SQLException, HibernateException
Expectation
prepare
in interface Expectation
prepare
in class Expectations.BasicExpectation
statement
- The statement to be preparedSQLException
- Exception from the JDBC driverHibernateException
- Problem performing preparation.public boolean canBeBatched()
Expectation
canBeBatched
in interface Expectation
canBeBatched
in class Expectations.BasicExpectation
protected int determineRowCount(int reportedRowCount, PreparedStatement statement)
determineRowCount
in class Expectations.BasicExpectation
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.