public class ParameterSets extends Object
MockPreparedStatement or
MockCallableStatement.
If the prepared statement is executed multiple times, this
class contains multiple maps with the corresponding parameters.
Each execute call creates a parameter set.
A parameter set is a map, the index or the name of the
parameter maps to the value.| Constructor and Description |
|---|
ParameterSets(String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterSet(Map parameterSet)
Adds a parameter set.
|
int |
getNumberParameterSets()
Get the current number of parameter sets.
|
Map |
getParameterSet(int indexOfParameterSet)
Gets a parameter set for a specified index.
|
String |
getSQLStatement()
Get the SQL string.
|
public ParameterSets(String sql)
public String getSQLStatement()
public void addParameterSet(Map parameterSet)
parameterSet - the parameter set.public int getNumberParameterSets()
public Map getParameterSet(int indexOfParameterSet)
indexOfParameterSet - the indexCopyright © 2003-2014. All Rights Reserved.