net.sourceforge.sqlunit.handlers
Class DynamicSqlHandler

java.lang.Object
  extended by net.sourceforge.sqlunit.handlers.SqlHandler
      extended by net.sourceforge.sqlunit.handlers.DynamicSqlHandler
All Implemented Interfaces:
IHandler

public class DynamicSqlHandler
extends SqlHandler

The DynamicSqlHandler class processes the contents of an dynamicSql tag in the input XML file.

Version:
$Revision: 1.6 $
Author:
Mario Laureti (mlaureti@users.sourceforge.net)

Constructor Summary
DynamicSqlHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elDynamicSql)
          Makes an entry for the given object in the Symbol table.
 
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

DynamicSqlHandler

public DynamicSqlHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elDynamicSql)
                               throws java.lang.Exception
Makes an entry for the given object in the Symbol table. The variable name is checked for correct formatting, ie ${varname}.

Specified by:
process in interface IHandler
Overrides:
process in class SqlHandler
Parameters:
elDynamicSql - the JDOM Element representing the set directive.
Returns:
an Object, null in this case.
Throws:
java.lang.Exception - if something went wrong with the set operation.