Method Summary |
|
public static void | dump() Dumps the contents of the symbol table for inspection. |
public static String | getCurrentResultKey() Returns the current result key as a String. |
public static synchronized Object | getObject(String param) Returns an object keyed by the param string from the symbol table.
Parameters: param - the key into the symbol table. |
public static synchronized Iterator | getSymbols() Returns an Iterator containing all the symbols in the Symbol table. |
public static synchronized String | getValue(String param) Returns the value of the named variable. |
public static boolean | isVariableName(String str) By definition, a string which matches the pattern ${var} is
considered to be a variable name in SQLUnit.
Parameters: str - the String to check if it is a symbol. |
public static synchronized String | removeSymbol(String param) Removes a symbol from the symbol table.
Parameters: param - the variable name to remove. |
public static void | removeUserVariables() Removes the references to the user variables set in a test after
all tests are completed. |
public static synchronized String | replaceVariables(String text) Replaces all variables in a string from the symbol table.
Parameters: text - the text with replaceable variables. |
public static void | setCurrentCol(String colId) Sets the current col for the test. |
public static void | setCurrentResultSet(String resultSetId) Sets the current resultset for the test. |
public static void | setCurrentRow(String rowId) Sets the current row for the test. |
public static synchronized void | setObject(String param, Object obj) Sets an object keyed by the param string into the symbol table. |
public static synchronized void | setSymbols(DatabaseResult target, DatabaseResult source, String namespace) Updates the symbol table with variables from a target resultset that
are populated by a SQL or stored procedure call. |
public static synchronized void | setValue(String param, String value) Updates the symbol table with the symbol's value if it exists or
creates a new entry in tha table with the given value if it does not. |
public static synchronized void | update(DatabaseResult target, DatabaseResult source) Scans the source DatabaseResult and the symbol table and updates
the target DatabaseResult object in place. |