|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sqlunit.handlers.SubHandler
public class SubHandler
The SubHandler is called from within the sub tag. It looks up the named subdef tag and overrides parameter values that are supplied in the sub tag. SQLUnit will rebuild the resolved Sub Element into either an Sql or Call Element and then delegate to the SqlHandler or CallHandler to build a DatabaseResult object.
Constructor Summary | |
---|---|
SubHandler()
|
Method Summary | |
---|---|
java.lang.Object |
process(org.jdom.Element elSub)
Looks up the SQL string for the corresponding SubDef, replaces with parameters if defined, runs it, and returns a single result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubHandler()
Method Detail |
---|
public final java.lang.Object process(org.jdom.Element elSub) throws java.lang.Exception
process
in interface IHandler
elSub
- 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 |