net.sourceforge.sqlunit.handlers
Class BatchSqlHandler

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

public class BatchSqlHandler
extends java.lang.Object
implements IHandler

The BatchSqlHandler class processes the contents of a batchsql tag in the input XML file.

Version:
$Revision: 1.7 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
BatchSqlHandler()
           
 
Method Summary
 java.lang.Object process(org.jdom.Element elBatchSql)
          Runs the batch of SQL statements supplied as a batch and returns a BatchDatabaseResult object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchSqlHandler

public BatchSqlHandler()
Method Detail

process

public final java.lang.Object process(org.jdom.Element elBatchSql)
                               throws java.lang.Exception
Runs the batch of SQL statements supplied as a batch and returns a BatchDatabaseResult object.

Specified by:
process in interface IHandler
Parameters:
elBatchSql - the JDOM Element representing the batchsql tag.
Returns:
the DatabaseResult returned from executing the SQL.
Throws:
java.lang.Exception - if there was a problem running the SQL.