public abstract class AbstractResultSetHandler extends Object
ResultSet handlers.
Used to coordinate ResultSet objects for a
statement. You can use this class to prepare ResultSet
objects and update count values that are returned by the
execute method of a statement, if the current
SQL string matches.
Furthermore it can be used to create ResultSet objects.
Please note that the ResultSet objects you create and
prepare with this handler are cloned when executing statements.
So you cannot rely on object identity. You have to use the id
of the ResultSet to identify it.
The ResultSet objects returned by getReturnedResultSets()
are actually the instances the executed statements returned.| Constructor and Description |
|---|
AbstractResultSetHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecutedStatement(String sql)
Collects all SQL strings that were executed.
|
void |
addReturnedResultSet(MockResultSet resultSet)
Collects all
ResultSet objects that were returned by
a Statement, PreparedStatement or
CallableStatement. |
void |
addReturnedResultSets(MockResultSet[] resultSets)
Collects all
ResultSet[] objects that were returned by
a Statement, PreparedStatement or
CallableStatement. |
void |
clearGeneratedKeys()
Clears the list of statements that return generated keys.
|
void |
clearGlobalGeneratedKeys()
Clears the prepared global generated keys
ResultSet. |
void |
clearGlobalResultSet()
Clears the prepared global
ResultSet. |
void |
clearGlobalUpdateCount()
Clears the prepared global update count.
|
void |
clearResultSets()
Clears all prepared
ResultSet objects. |
void |
clearReturnsResultSet()
Clears the definitions if statements return
ResultSet objects or update counts. |
void |
clearThrowsSQLException()
Clears the list of statements that should throw an exception.
|
void |
clearUpdateCounts()
Clears all prepared update counts.
|
MockResultSet |
createResultSet()
Creates a new
ResultSet with a
random id. |
MockResultSet |
createResultSet(ResultSetFactory factory)
Returns a new
ResultSet created by the specified factory. |
MockResultSet |
createResultSet(String id)
Creates a new
ResultSet with the specified id. |
MockResultSet |
createResultSet(String id,
ResultSetFactory factory)
Returns a new
ResultSet created by the specified factory. |
protected boolean |
getCaseSensitive()
Returns if specified SQL strings should be handled case sensitive.
|
boolean |
getContinueProcessingOnBatchFailure()
Returns if batch processing should be continued if one of
the commands in the batch fails.
|
protected boolean |
getExactMatch()
Returns if specified SQL statements must match exactly.
|
List<String> |
getExecutedStatements()
Returns the
List of all executed SQL strings. |
MockResultSet |
getGeneratedKeys(String sql)
Returns the first generated keys
ResultSet that
matches the specified SQL string. |
protected MockResultSet |
getGeneratedKeys(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
MockResultSet |
getGlobalGeneratedKeys()
Returns the global generated keys
ResultSet. |
MockResultSet |
getGlobalResultSet()
Returns the global
ResultSet. |
MockResultSet[] |
getGlobalResultSets()
Returns the global
ResultSet[]. |
int |
getGlobalUpdateCount()
Returns the global update count for
executeUpdate calls. |
Integer[] |
getGlobalUpdateCounts()
Returns the array of global update counts.
|
protected <S,T> List<T> |
getListFromMapForSQLStatement(S sql,
Map<S,List<T>> map) |
protected <T> List<T> |
getMatchingObjects(Map<PatternMatcher,? extends T> dataMap,
String query) |
protected <T> ParameterWrapper<T> |
getMatchingParameterWrapper(String sql,
MockParameterMap parameters,
Map<PatternMatcher,List<ParameterWrapper<T>>> statementMap,
boolean exactMatchParameter) |
PatternMatcher.Factory |
getPatternMatcherFactory() |
MockResultSet |
getResultSet(String sql)
Returns the first
ResultSet that matches the
specified SQL string. |
protected MockResultSet |
getResultSet(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
ResultSetFactory |
getResultSetFactory() |
MockResultSet[] |
getResultSets(String sql)
Returns the first
ResultSet[] that matches the
specified SQL string. |
protected MockResultSet[] |
getResultSets(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
List<MockResultSet[]> |
getReturnedResultSets()
Returns the
List of all returned ResultSet
or ResultSet[] objects. |
Boolean |
getReturnsResultSet(String sql)
Returns if the specified SQL string is a select that returns
a
ResultSet. |
SQLException |
getSQLException(String sql)
Returns the
SQLException the specified SQL string
should throw. |
protected SQLException |
getSQLException(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
boolean |
getThrowsSQLException(String sql)
Returns if the specified SQL string should raise an exception.
|
Integer |
getUpdateCount(String sql)
Returns the first update count that matches the
specified SQL string.
|
protected Integer |
getUpdateCount(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
Integer[] |
getUpdateCounts(String sql)
Returns the first update count array that matches the
specified SQL string.
|
Integer[] |
getUpdateCounts(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected boolean |
getUseRegularExpressions()
Returns if regular expression matching is enabled
|
boolean |
hasMultipleGlobalResultSets()
Returns if multiple global result sets have been prepared, i.e.
|
boolean |
hasMultipleGlobalUpdateCounts()
Returns if multiple global update counts have been prepared, i.e.
|
boolean |
hasMultipleResultSets(String sql)
Returns the if the specified SQL string returns multiple result sets.
|
protected boolean |
hasMultipleResultSets(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
boolean |
hasMultipleUpdateCounts(String sql)
Returns the if the specified SQL string returns multiple update counts.
|
protected boolean |
hasMultipleUpdateCounts(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected void |
onPatternMatcherFactoryChanged() |
void |
prepareGeneratedKeys(String sql,
MockResultSet generatedKeysResult)
Prepare the generated keys
ResultSet
for a specified SQL string. |
protected void |
prepareGeneratedKeys(String sql,
MockResultSet generatedKeysResult,
MockParameterMap parameters) |
void |
prepareGlobalGeneratedKeys(MockResultSet generatedKeysResult)
Prepare the global generated keys
ResultSet. |
void |
prepareGlobalResultSet(MockResultSet resultSet)
Prepare the global
ResultSet. |
void |
prepareGlobalResultSets(MockResultSet[] resultSets)
Prepare an array of global
ResultSet objects. |
void |
prepareGlobalUpdateCount(int updateCount)
Prepare the global update count for
executeUpdate calls. |
void |
prepareGlobalUpdateCounts(Integer[] updateCounts)
Prepare an array of global update count values for
executeUpdate calls. |
void |
prepareResultSet(String sql,
MockResultSet resultSet)
Prepare a
ResultSet for a specified SQL string. |
protected void |
prepareResultSet(String sql,
MockResultSet resultSet,
MockParameterMap parameters) |
void |
prepareResultSets(String sql,
MockResultSet[] resultSets)
Prepare an array of
ResultSet objects for a specified SQL string. |
protected void |
prepareResultSets(String sql,
MockResultSet[] resultSets,
MockParameterMap parameters) |
void |
prepareReturnsResultSet(String sql,
boolean returnsResultSet)
Prepare if the specified SQL string is a select that returns
a
ResultSet. |
void |
prepareThrowsSQLException(String sql)
Prepare that the specified SQL string should raise an exception.
|
protected void |
prepareThrowsSQLException(String sql,
MockParameterMap parameters) |
void |
prepareThrowsSQLException(String sql,
SQLException exc)
Prepare that the specified SQL string should raise an exception.
|
protected void |
prepareThrowsSQLException(String sql,
SQLException exc,
MockParameterMap parameters) |
void |
prepareUpdateCount(String sql,
int updateCount)
Prepare the update count for
executeUpdate calls
for a specified SQL string. |
protected void |
prepareUpdateCount(String sql,
int updateCount,
MockParameterMap parameters) |
void |
prepareUpdateCounts(String sql,
Integer[] updateCounts)
Prepare an array update count values for
executeUpdate calls
for a specified SQL string. |
void |
prepareUpdateCounts(String sql,
Integer[] updateCounts,
MockParameterMap parameters) |
protected <T> void |
recompile(Map<String,T> source,
Map<PatternMatcher,T> compiled) |
void |
removeAllGeneratedKeys(String sql)
Remove the generated keys mock for the specified SQL string.
|
void |
removeAllResultSet(String sql)
Given a SQL string, remove the associated entry from the resultSetsForStatement TreeMap
|
void |
removeAllThrowsSqlException(String sql)
Remove the throws mock for the specified SQL string.
|
void |
removeAllUpdateCount(String sql)
Remove the update count mock for the specified SQL string.
|
void |
removeGeneratedKeys(String sql)
Remove the generated keys mock for the specified SQL string.
|
protected void |
removeGeneratedKeys(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected <S,T> ParameterWrapper<T> |
removeMatchingParameterWrapper(S sql,
MockParameterMap parameters,
Map<S,List<ParameterWrapper<T>>> map,
boolean exactMatchParameter) |
void |
removeResultSet(String sql)
Given a SQL string, remove the associated entry from the resultSetsForStatement TreeMap
|
protected void |
removeResultSet(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
removeThrowsSqlException(String sql)
Remove the throws mock for the specified SQL string.
|
protected void |
removeThrowsSqlException(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
void |
removeUpdateCount(String sql)
Remove the update count mock for the specified SQL string.
|
protected void |
removeUpdateCount(String sql,
MockParameterMap parameters,
boolean exactMatchParameter) |
protected void |
resetPatternMatcherFactory() |
void |
setCaseSensitive(boolean caseSensitive)
Set if specified SQL strings should be handled case sensitive.
|
void |
setContinueProcessingOnBatchFailure(boolean continueProcessingOnBatchFailure)
Set if batch processing should be continued if one of the commands
in the batch fails.
|
void |
setExactMatch(boolean exactMatch)
Set if specified SQL statements must match exactly.
|
void |
setPatternMatcherFactory(PatternMatcher.Factory factory)
Sets custom factory for patterns for matching SQL statements.
|
void |
setResultSetFactory(ResultSetFactory resultSetFactory)
Set factory used for
createResultSet() and createResultSet(String) |
void |
setUseRegularExpressions(boolean useRegularExpressions)
Set if regular expressions should be used when matching
SQL statements.
|
public MockResultSet createResultSet()
ResultSet with a
random id.ResultSetpublic MockResultSet createResultSet(String id)
ResultSet with the specified id.id - the idResultSetpublic MockResultSet createResultSet(ResultSetFactory factory)
ResultSet created by the specified factory.
Creates a random id.factory - the ResultSetFactoryResultSetpublic MockResultSet createResultSet(String id, ResultSetFactory factory)
ResultSet created by the specified factory.id - the idfactory - the ResultSetFactoryResultSetpublic ResultSetFactory getResultSetFactory()
createResultSet() and createResultSet(String)public void setResultSetFactory(ResultSetFactory resultSetFactory)
createResultSet() and createResultSet(String)resultSetFactory - public void setCaseSensitive(boolean caseSensitive)
false, i.e. INSERT is the same
as insert.
Please note that this method controls SQL statement
matching for prepared results and update counts, i.e. what
statements the tested application has to execute to receive
a specified result. Unlike JDBCTestModule.setCaseSensitive(boolean)
it does not control the statement matching of JDBCTestModule
methods.caseSensitive - enable or disable case sensitivitypublic void setExactMatch(boolean exactMatch)
false, i.e. the SQL string
does not need to match exactly. If the original statement
is insert into mytable values(?, ?, ?)
the string insert into mytable will match this statement.
Usually false is the best choice, so
prepared ResultSet objects do not have
to match exactly the current statements SQL string.
The current SQL string just has to contain the SQL string
for the prepared prepared ResultSet.
Please note that this method controls SQL statement
matching for prepared results and update counts, i.e. what
statements the tested application has to execute to receive
a specified result. Unlike JDBCTestModule.setExactMatch(boolean)
it does not control the statement matching of JDBCTestModule
methods.exactMatch - enable or disable exact matchingpublic void setUseRegularExpressions(boolean useRegularExpressions)
exactMatch is
true. Default is false, i.e. you
cannot use regular expressions and matching is based
on string comparison.
Please note that this method controls SQL statement
matching for prepared results and update counts, i.e. what
statements the tested application has to execute to receive
a specified result. Unlike JDBCTestModule.setUseRegularExpressions(boolean)
it does not control the statement matching of JDBCTestModule
methods.useRegularExpressions - should regular expressions be usedpublic void setPatternMatcherFactory(PatternMatcher.Factory factory)
caseSensitive, exactMatch,
useRegularExpressions are ignored. When one of these parameters
is set, the custom factory is discarded.factory - The factory that provides pattern interprets.public PatternMatcher.Factory getPatternMatcherFactory()
protected void resetPatternMatcherFactory()
protected void onPatternMatcherFactoryChanged()
public void setContinueProcessingOnBatchFailure(boolean continueProcessingOnBatchFailure)
false, i.e. if a command fails with an exception,
batch processing will not continue and the remaining commands
will not be executed.continueProcessingOnBatchFailure - should batch processing be continuedpublic void addExecutedStatement(String sql)
sql - the SQL stringpublic void addReturnedResultSet(MockResultSet resultSet)
ResultSet objects that were returned by
a Statement, PreparedStatement or
CallableStatement.resultSet - the ResultSetpublic void addReturnedResultSets(MockResultSet[] resultSets)
ResultSet[] objects that were returned by
a Statement, PreparedStatement or
CallableStatement. Called if a statement returns
multiple result sets.resultSets - the ResultSet[]public List<String> getExecutedStatements()
List of all executed SQL strings.List of executed SQL stringspublic List<MockResultSet[]> getReturnedResultSets()
List of all returned ResultSet
or ResultSet[] objects. The List contains
arrays of result sets, if a query returned multiple result sets.
If a query returned multiple result sets, the list will always contain
the full array of ResultSet objects that were prepared, even
if MockStatement.getMoreResults() was
not called for all the result sets.List of returned ResultSet or ResultSet[] objectspublic void clearResultSets()
ResultSet objects.public void clearUpdateCounts()
public void clearReturnsResultSet()
ResultSet objects or update counts.public void clearThrowsSQLException()
public void clearGeneratedKeys()
public void clearGlobalResultSet()
ResultSet.public void clearGlobalGeneratedKeys()
ResultSet.public void clearGlobalUpdateCount()
public MockResultSet getResultSet(String sql)
ResultSet that matches the
specified SQL string. If the specified SQL string was
prepared to return multiple result sets, the first one will
be returned.
Please note that you can modify the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringMockResultSetprotected MockResultSet getResultSet(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public MockResultSet[] getResultSets(String sql)
ResultSet[] that matches the
specified SQL string. If the specified SQL string was
prepared to return one single result set, this ResultSet
will be wrapped in an array with one element.
Please note that you can modify the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringMockResultSet[]protected MockResultSet[] getResultSets(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public boolean hasMultipleResultSets(String sql)
setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringtrue if the query returns multiple result sets,
false otherwiseprotected boolean hasMultipleResultSets(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public MockResultSet getGlobalResultSet()
ResultSet.
If an array of global result sets was prepared, the first one will
be returned.MockResultSetpublic MockResultSet[] getGlobalResultSets()
ResultSet[].
If one single ResultSet was prepared, this ResultSet
will be wrapped in an array with one element.MockResultSet[]public boolean hasMultipleGlobalResultSets()
true if an array of global result sets was prepared,
false otherwisepublic Integer getUpdateCount(String sql)
setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringprotected Integer getUpdateCount(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public Integer[] getUpdateCounts(String sql)
setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringpublic boolean hasMultipleUpdateCounts(String sql)
setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringtrue if the SQL string returns multiple update counts,
false otherwiseprotected boolean hasMultipleUpdateCounts(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public Integer[] getUpdateCounts(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public int getGlobalUpdateCount()
executeUpdate calls.
If an array of global update counts was prepared, the first one will
be returned.public Integer[] getGlobalUpdateCounts()
public boolean hasMultipleGlobalUpdateCounts()
true if an array of global update counts was prepared,
false otherwisepublic MockResultSet getGeneratedKeys(String sql)
ResultSet that
matches the specified SQL string. Please note that you can modify
the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringMockResultSetprotected MockResultSet getGeneratedKeys(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public MockResultSet getGlobalGeneratedKeys()
ResultSet.MockResultSetpublic Boolean getReturnsResultSet(String sql)
ResultSet.
Usually you do not have to specify this.
It is assumed that an SQL string returns a ResultSet
if it contains the string select (case insensitive).
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringtrue if the SQL string returns a ResultSetpublic boolean getThrowsSQLException(String sql)
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringtrue if the specified SQL string should raise an exception,
false otherwisepublic SQLException getSQLException(String sql)
SQLException the specified SQL string
should throw. Returns null if the specified SQL string
should not throw an exception.
This can be used to simulate database exceptions.
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringSQLException or nullprotected SQLException getSQLException(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public void prepareResultSet(String sql, MockResultSet resultSet)
ResultSet for a specified SQL string.
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringresultSet - the corresponding MockResultSetprotected void prepareResultSet(String sql, MockResultSet resultSet, MockParameterMap parameters)
public void prepareResultSets(String sql, MockResultSet[] resultSets)
ResultSet objects for a specified SQL string.
This method can be used for queries that return multiple result sets.
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringresultSets - the corresponding MockResultSet[]protected void prepareResultSets(String sql, MockResultSet[] resultSets, MockParameterMap parameters)
public void prepareGlobalResultSet(MockResultSet resultSet)
ResultSet.resultSet - the MockResultSetpublic void prepareGlobalResultSets(MockResultSet[] resultSets)
ResultSet objects.resultSets - the corresponding MockResultSet[]public void prepareUpdateCount(String sql, int updateCount)
executeUpdate calls
for a specified SQL string. Please note that you can modify
the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringupdateCount - the update countprotected void prepareUpdateCount(String sql, int updateCount, MockParameterMap parameters)
public void prepareUpdateCounts(String sql, Integer[] updateCounts)
executeUpdate calls
for a specified SQL string. This method can be used if multiple update counts
are returned.
Please note that you can modify the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringupdateCounts - the update count arraypublic void prepareUpdateCounts(String sql, Integer[] updateCounts, MockParameterMap parameters)
public void prepareGlobalUpdateCount(int updateCount)
executeUpdate calls.updateCount - the update countpublic void prepareGlobalUpdateCounts(Integer[] updateCounts)
executeUpdate calls.updateCounts - the update count arraypublic void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult)
ResultSet
for a specified SQL string. Please note that you can modify
the match parameters with setCaseSensitive(boolean),
setExactMatch(boolean) and setUseRegularExpressions(boolean).sql - the SQL stringgeneratedKeysResult - the generated keys MockResultSetprotected void prepareGeneratedKeys(String sql, MockResultSet generatedKeysResult, MockParameterMap parameters)
public void prepareGlobalGeneratedKeys(MockResultSet generatedKeysResult)
ResultSet.generatedKeysResult - the generated keys MockResultSetpublic void prepareReturnsResultSet(String sql, boolean returnsResultSet)
ResultSet. Usually you do not have to specify this.
It is assumed that an SQL string returns a ResultSet
if it contains the string select (case insensitive).
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringreturnsResultSet - specify if the SQL string returns a ResultSetpublic void prepareThrowsSQLException(String sql)
SQLException and will throw this exception.
With prepareThrowsSQLException(String, SQLException) you
can specify the exception.
Please note that you can modify the match parameters with
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringprotected void prepareThrowsSQLException(String sql, MockParameterMap parameters)
public void prepareThrowsSQLException(String sql, SQLException exc)
setCaseSensitive(boolean), setExactMatch(boolean) and
setUseRegularExpressions(boolean).sql - the SQL stringexc - the SQLException that should be thrownprotected void prepareThrowsSQLException(String sql, SQLException exc, MockParameterMap parameters)
protected boolean getCaseSensitive()
protected boolean getExactMatch()
protected boolean getUseRegularExpressions()
public boolean getContinueProcessingOnBatchFailure()
public void removeAllResultSet(String sql)
sql - The SQL string associated with the resultsetpublic void removeAllThrowsSqlException(String sql)
sql - The SQL string which identifies the conditions under which to throw a SQLExceptionpublic void removeAllUpdateCount(String sql)
sql - The SQL string which identifies the conditions under which to return the specified update countpublic void removeAllGeneratedKeys(String sql)
sql - The SQL string which identifies the conditions under which the generated keys result would be returned.public void removeResultSet(String sql)
sql - The SQL string associated with the resultsetprotected void removeResultSet(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public void removeThrowsSqlException(String sql)
sql - The SQL string which identifies the conditions under which to throw a SQLExceptionprotected void removeThrowsSqlException(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public void removeUpdateCount(String sql)
sql - The SQL string which identifies the conditions under which to return the specified update countprotected void removeUpdateCount(String sql, MockParameterMap parameters, boolean exactMatchParameter)
public void removeGeneratedKeys(String sql)
sql - The SQL string which identifies the conditions under which the generated keys result would be returned.protected void removeGeneratedKeys(String sql, MockParameterMap parameters, boolean exactMatchParameter)
protected <T> List<T> getMatchingObjects(Map<PatternMatcher,? extends T> dataMap, String query)
protected <T> ParameterWrapper<T> getMatchingParameterWrapper(String sql, MockParameterMap parameters, Map<PatternMatcher,List<ParameterWrapper<T>>> statementMap, boolean exactMatchParameter)
protected <S,T> ParameterWrapper<T> removeMatchingParameterWrapper(S sql, MockParameterMap parameters, Map<S,List<ParameterWrapper<T>>> map, boolean exactMatchParameter)
protected <S,T> List<T> getListFromMapForSQLStatement(S sql, Map<S,List<T>> map)
protected <T> void recompile(Map<String,T> source, Map<PatternMatcher,T> compiled)
Copyright © 2003–2023. All rights reserved.