|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.handlers.SqlHandler
net.sourceforge.sqlunit.handlers.FuncHandler
public class FuncHandler
The FuncHandler looks up the named definition from the symbol table and runs it after resolving the query, then returns a result. It is used to populate the SQLUnit SymbolTable with values for later test runs. It cannot be used directly as inputs for a test. It is similar to the set tag with an embedded query but more compact. Unlike the set tag, which can be called within the setup tag or a per-test prepare tag, the func tag is called standalone before a test to populate a variable in the scope.
| Constructor Summary | |
|---|---|
FuncHandler()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
process(org.jdom.Element elFunc)
Looks up the SQL string for the corresponding FuncDef, replaces with parameters if defined, runs it, and returns a single result. |
| Methods inherited from class net.sourceforge.sqlunit.handlers.SqlHandler |
|---|
acquireConnection, acquireStatementObject, clrOutputParameters, executeQuery, executeSQL, initDatabaseResult, isMoreResultsAvailable, setOutputParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FuncHandler()
| Method Detail |
|---|
public final java.lang.Object process(org.jdom.Element elFunc)
throws java.lang.Exception
process in interface IHandlerprocess in class SqlHandlerelFunc - the JDOM Element representing the func element.
java.lang.Exception - if something went wrong with the func operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||