Expectation definitions.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Expectation | |
| private static final CoreMessageLogger | |
| public static final Expectation | |
| public static final Expectation | |
| private static SqlExceptionHelper | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Expectation |
| BASIC | back to summary |
|---|---|
| public static final Expectation BASIC | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| NONE | back to summary |
|---|---|
| public static final Expectation NONE | |
| PARAM | back to summary |
|---|---|
| public static final Expectation PARAM | |
| sqlExceptionHelper | back to summary |
|---|---|
| private static SqlExceptionHelper sqlExceptionHelper | |
| USUAL_EXPECTED_COUNT | back to summary |
|---|---|
| public static final int USUAL_EXPECTED_COUNT | |
| USUAL_PARAM_POSITION | back to summary |
|---|---|
| public static final int USUAL_PARAM_POSITION | |
| Expectations | back to summary |
|---|---|
| private Expectations() | |
| appropriateExpectation | back to summary |
|---|---|
| public static Expectation appropriateExpectation(ExecuteUpdateResultCheckStyle style) | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canBeBatched()
Implements org. |
| private void | |
| private void | |
| protected int | |
| public int | prepare(PreparedStatement
The statement to be prepared statement)Implements org. |
| public final void | verifyOutcome(int
The RDBMS reported "number of rows affected". rowCount, PreparedStatement The statement representing the operation statement, int The position in the batch (if batching) batchPosition, String The SQL backing the prepared statement, for logging purposes statementSQL)Implements org. |
| expectedRowCount | back to summary |
|---|---|
| private final int expectedRowCount | |
| BasicExpectation | back to summary |
|---|---|
| protected BasicExpectation(int expectedRowCount) | |
| canBeBatched | back to summary |
|---|---|
| public boolean canBeBatched() Implements org. Doc from org. Is it acceptable to combiner this expectation with statement batching?
| |
| checkBatched | back to summary |
|---|---|
| private void checkBatched(int rowCount, int batchPosition, String statementSQL) | |
| checkNonBatched | back to summary |
|---|---|
| private void checkNonBatched(int rowCount, String statementSQL) | |
| determineRowCount | back to summary |
|---|---|
| protected int determineRowCount(int reportedRowCount, PreparedStatement statement) | |
| prepare | back to summary |
|---|---|
| public int prepare(PreparedStatement statement) throws SQLException, HibernateException Implements org. Doc from org. Perform any special statement preparation.
| |
| verifyOutcome | back to summary |
|---|---|
| public final void verifyOutcome(int rowCount, PreparedStatement statement, int batchPosition, String statementSQL) Implements org. Doc from org. Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canBeBatched()
Overrides org. Implements org. |
| protected int | determineRowCount(int reportedRowCount, PreparedStatement statement)
Overrides org. |
| public int | prepare(PreparedStatement
The statement to be prepared statement)Overrides org. Implements org. |
| private CallableStatement |
| parameterPosition | back to summary |
|---|---|
| private final int parameterPosition | |
| BasicParamExpectation | back to summary |
|---|---|
| protected BasicParamExpectation(int expectedRowCount, int parameterPosition) | |
| canBeBatched | back to summary |
|---|---|
| public boolean canBeBatched() Overrides org. Implements org. Doc from org. Is it acceptable to combiner this expectation with statement batching?
| |
| determineRowCount | back to summary |
|---|---|
| protected int determineRowCount(int reportedRowCount, PreparedStatement statement) Overrides org.
| |
| prepare | back to summary |
|---|---|
| public int prepare(PreparedStatement statement) throws SQLException, HibernateException Overrides org. Implements org. Doc from org. Perform any special statement preparation.
| |
| toCallableStatement | back to summary |
|---|---|
| private CallableStatement toCallableStatement(PreparedStatement statement) | |