|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mockrunner.jdbc.ParameterSets
public class ParameterSets
Encapsulates the parameter sets for an executed
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 Summary | |
|---|---|
ParameterSets(java.lang.String sql)
|
|
| Method Summary | |
|---|---|
void |
addParameterSet(java.util.Map parameterSet)
Adds a parameter set. |
int |
getNumberParameterSets()
Get the current number of parameter sets. |
java.util.Map |
getParameterSet(int indexOfParameterSet)
Gets a parameter set for a specified index. |
java.lang.String |
getSQLStatement()
Get the SQL string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterSets(java.lang.String sql)
| Method Detail |
|---|
public java.lang.String getSQLStatement()
public void addParameterSet(java.util.Map parameterSet)
parameterSet - the parameter set.public int getNumberParameterSets()
public java.util.Map getParameterSet(int indexOfParameterSet)
indexOfParameterSet - the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||