| Package | Description |
|---|---|
| com.mockrunner.jdbc | |
| com.mockrunner.mock.jdbc |
| Modifier and Type | Method and Description |
|---|---|
MockParameterMap |
AbstractOutParameterResultSetHandler.getGlobalOutParameter()
Returns the global out parameter
Map. |
MockParameterMap |
AbstractOutParameterResultSetHandler.getOutParameter(String sql)
Returns the first out parameter
Map that matches
the specified SQL string. |
MockParameterMap |
AbstractOutParameterResultSetHandler.getOutParameter(String sql,
MockParameterMap parameters)
Returns the first out parameter
Map that matches
the specified SQL string and the specified parameters. |
MockParameterMap |
ParameterWrapper.getParameters() |
MockParameterMap |
ParameterSets.getParameterSet(int indexOfParameterSet)
Gets a parameter set for a specified index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractParameterResultSetHandler.addParameterMapForExecutedStatement(String sql,
MockParameterMap parameters)
Collects all SQL strings that were executed.
|
void |
ParameterSets.addParameterSet(MockParameterMap parameterSet)
Adds a parameter set.
|
MockResultSet |
AbstractParameterResultSetHandler.getGeneratedKeys(String sql,
MockParameterMap parameters)
Returns the first generated keys
ResultSet that
matches the specified SQL string. |
protected MockResultSet |
AbstractResultSetHandler.getGeneratedKeys(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected <T> ParameterWrapper<T> |
AbstractResultSetHandler.getMatchingParameterWrapper(String sql,
MockParameterMap parameters,
Map<PatternMatcher,List<ParameterWrapper<T>>> statementMap,
boolean exactMatchParameter) |
MockParameterMap |
AbstractOutParameterResultSetHandler.getOutParameter(String sql,
MockParameterMap parameters)
Returns the first out parameter
Map that matches
the specified SQL string and the specified parameters. |
MockResultSet |
AbstractParameterResultSetHandler.getResultSet(String sql,
MockParameterMap parameters)
Returns the first
ResultSet that matches the
specified SQL string and the specified parameters. |
protected MockResultSet |
AbstractResultSetHandler.getResultSet(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
MockResultSet[] |
AbstractParameterResultSetHandler.getResultSets(String sql,
MockParameterMap parameters)
Returns the first
ResultSet[] that matches the
specified SQL string and the specified parameters. |
protected MockResultSet[] |
AbstractResultSetHandler.getResultSets(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
SQLException |
AbstractParameterResultSetHandler.getSQLException(String sql,
MockParameterMap parameters)
Returns the
SQLException the specified SQL string
should throw. |
protected SQLException |
AbstractResultSetHandler.getSQLException(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
boolean |
AbstractParameterResultSetHandler.getThrowsSQLException(String sql,
MockParameterMap parameters)
Returns if the specified SQL string with the specified parameters
should raise an exception.
|
Integer |
AbstractParameterResultSetHandler.getUpdateCount(String sql,
MockParameterMap parameters)
Returns the first update count that matches the
specified SQL string and the specified parameters.
|
protected Integer |
AbstractResultSetHandler.getUpdateCount(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
Integer[] |
AbstractParameterResultSetHandler.getUpdateCounts(String sql,
MockParameterMap parameters)
Returns the first update count array that matches the
specified SQL string and the specified parameters.
|
Integer[] |
AbstractResultSetHandler.getUpdateCounts(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
boolean |
AbstractParameterResultSetHandler.hasMultipleResultSets(String sql,
MockParameterMap parameters)
Returns the if the specified SQL string with the specified parameters
returns multiple result sets.
|
protected boolean |
AbstractResultSetHandler.hasMultipleResultSets(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
boolean |
AbstractParameterResultSetHandler.hasMultipleUpdateCounts(String sql,
MockParameterMap parameters)
Returns the if the specified SQL string with the specified parameters
returns multiple update counts.
|
protected boolean |
AbstractResultSetHandler.hasMultipleUpdateCounts(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
AbstractParameterResultSetHandler.prepareGeneratedKeys(String sql,
MockResultSet generatedKeysResult,
MockParameterMap parameters)
Prepare the generated keys
ResultSet
for a specified SQL string. |
protected void |
AbstractResultSetHandler.prepareGeneratedKeys(String sql,
MockResultSet generatedKeysResult,
MockParameterMap parameters) |
void |
AbstractOutParameterResultSetHandler.prepareGlobalOutParameter(MockParameterMap outParameters)
Prepares the global out parameter
Map. |
void |
AbstractOutParameterResultSetHandler.prepareOutParameter(String sql,
MockParameterMap outParameters)
Prepare an out parameter
Map for a specified
SQL string. |
void |
AbstractOutParameterResultSetHandler.prepareOutParameter(String sql,
MockParameterMap outParameters,
List<Object> parameters)
Prepare an out parameter
Map for a specified SQL string and
the specified parameters. |
void |
AbstractOutParameterResultSetHandler.prepareOutParameter(String sql,
MockParameterMap outParameters,
MockParameterMap parameters)
Prepare an out parameter
Map for a specified SQL string
and the specified parameters. |
void |
AbstractOutParameterResultSetHandler.prepareOutParameter(String sql,
MockParameterMap outParameters,
Object[] parameters)
Prepare an out parameter
Map for a specified SQL string and
the specified parameters. |
void |
AbstractParameterResultSetHandler.prepareResultSet(String sql,
MockResultSet resultSet,
MockParameterMap parameters)
Prepare a
ResultSet for a specified SQL string and
the specified parameters. |
protected void |
AbstractResultSetHandler.prepareResultSet(String sql,
MockResultSet resultSet,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.prepareResultSets(String sql,
MockResultSet[] resultSets,
MockParameterMap parameters)
Prepare an array of
ResultSet objects for a specified SQL string and
the specified parameters. |
protected void |
AbstractResultSetHandler.prepareResultSets(String sql,
MockResultSet[] resultSets,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.prepareThrowsSQLException(String sql,
MockParameterMap parameters)
Prepare that the specified SQL string with the specified parameters
should raise an exception.
|
protected void |
AbstractResultSetHandler.prepareThrowsSQLException(String sql,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.prepareThrowsSQLException(String sql,
SQLException exc,
MockParameterMap parameters)
Prepare that the specified SQL string with the specified parameters
should raise an exception.
|
protected void |
AbstractResultSetHandler.prepareThrowsSQLException(String sql,
SQLException exc,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.prepareUpdateCount(String sql,
int updateCount,
MockParameterMap parameters)
Prepare the update count for execute update calls for a specified SQL string
and the specified parameters.
|
protected void |
AbstractResultSetHandler.prepareUpdateCount(String sql,
int updateCount,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.prepareUpdateCounts(String sql,
Integer[] updateCounts,
MockParameterMap parameters)
Prepare an array update count values for execute update calls for a specified SQL string
and the specified parameters.
|
void |
AbstractResultSetHandler.prepareUpdateCounts(String sql,
Integer[] updateCounts,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.removeGeneratedKeys(String sql,
MockParameterMap parameters)
Remove the generated keys mock for the specified SQL string.
|
protected void |
AbstractResultSetHandler.removeGeneratedKeys(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected <S,T> ParameterWrapper<T> |
AbstractResultSetHandler.removeMatchingParameterWrapper(S sql,
MockParameterMap parameters,
Map<S,List<ParameterWrapper<T>>> map,
boolean exactMatchParameter) |
void |
AbstractOutParameterResultSetHandler.removeOutParameter(String sql,
MockParameterMap parameters) |
void |
AbstractParameterResultSetHandler.removeResultSet(String sql,
MockParameterMap parameters)
Given a SQL string, remove the associated entry from the resultSetsForStatement TreeMap
|
protected void |
AbstractResultSetHandler.removeResultSet(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
AbstractParameterResultSetHandler.removeThrowsSqlException(String sql,
MockParameterMap parameters)
Remove the throws mock for the specified SQL string.
|
protected void |
AbstractResultSetHandler.removeThrowsSqlException(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
AbstractParameterResultSetHandler.removeUpdateCount(String sql,
MockParameterMap parameters)
Remove the update count mock for the specified SQL string.
|
protected void |
AbstractResultSetHandler.removeUpdateCount(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
JDBCTestModule.verifySQLStatementParameter(String sql,
int indexOfParameterSet,
MockParameterMap parameterMap)
Verifies the parameters for the specified SQL statement.
|
protected void |
BasicJDBCTestCaseAdapter.verifySQLStatementParameter(String sql,
int indexOfParameterSet,
MockParameterMap parameterMap)
Delegates to
|
| Constructor and Description |
|---|
ParameterWrapper(T wrappedObject,
MockParameterMap parameters) |
| Modifier and Type | Class and Description |
|---|---|
class |
MockUnmodifiableParameterMap |
| Modifier and Type | Field and Description |
|---|---|
protected MockParameterMap |
MockPreparedStatement.paramObjects |
| Modifier and Type | Method and Description |
|---|---|
MockParameterMap |
MockPreparedStatement.getIndexedParameterMap() |
MockParameterMap |
MockCallableStatement.getNamedParameterMap() |
MockParameterMap |
MockCallableStatement.getParameterMap() |
MockParameterMap |
MockPreparedStatement.getParameterMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MockParameterMap.doParameterMatch(MockParameterMap actualParameters,
boolean exactMatchParameter) |
MockResultSet |
EvaluableResultSet.evaluate(String sql,
MockParameterMap parameters) |
MockResultSet |
MockResultSet.evaluate(String sql,
MockParameterMap parameters)
This method returns instance with contents evaluated using given SQL query and parameters.
|
Object |
EvaluableResultSet.Evaluable.evaluate(String sql,
MockParameterMap parameters,
String columnName,
int row) |
protected ResultSet |
MockPreparedStatement.executeQuery(MockParameterMap params) |
protected int |
MockPreparedStatement.executeUpdate(MockParameterMap params) |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
MockPreparedStatement.executeBatch(List<MockParameterMap> batchParams) |
| Constructor and Description |
|---|
MockParameterMap(MockParameterMap other) |
MockUnmodifiableParameterMap(MockParameterMap other) |
Copyright © 2003–2023. All rights reserved.