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.
|
verifyOutcome
protected BasicParamExpectation(int expectedRowCount, int parameterPosition)
public int prepare(PreparedStatement statement) throws SQLException, HibernateException
Expectation
Perform any special statement preparation.
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
Is it acceptable to combiner this expectation with statement batching?
canBeBatched
in interface Expectation
canBeBatched
in class Expectations.BasicExpectation
protected int determineRowCount(int reportedRowCount, PreparedStatement statement)
determineRowCount
in class Expectations.BasicExpectation
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.