net.sourceforge.mavenplugins.dbunit
Class DataSetTool

java.lang.Object
  extended by net.sourceforge.mavenplugins.dbunit.DbUnitTool
      extended by net.sourceforge.mavenplugins.dbunit.DataSetTool

public class DataSetTool
extends DbUnitTool


Constructor Summary
DataSetTool()
           
 
Method Summary
 java.lang.String getDataSetFormat()
           
 java.lang.String getExportTables()
           
 java.lang.String getOperation()
          The operation to perform on a dataset, e.g.
 void process()
          Process a dataset using a DbUnit operation
 void setDataSetFormat(java.lang.String name)
          TODO better document this Set the format of the dataset, e.g.
 void setExportTables(java.lang.String tables)
          set the list of tables to be exported
 void setOperation(java.lang.String name)
           
 
Methods inherited from class net.sourceforge.mavenplugins.dbunit.DbUnitTool
getConnection, getDataSetFromFile, getDriverClassName, getFileName, getPassword, getSchema, getUrl, getUser, setDriverClassName, setFileName, setPassword, setSchema, setUrl, setUser, writeDataSetToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetTool

public DataSetTool()
Method Detail

getDataSetFormat

public java.lang.String getDataSetFormat()
Returns:
the format of the data set.

setDataSetFormat

public void setDataSetFormat(java.lang.String name)
TODO better document this Set the format of the dataset, e.g. EXCEL

Parameters:
name - the dbunit dataset format

getOperation

public java.lang.String getOperation()
The operation to perform on a dataset, e.g. INSERT, CLEAN_INSERT, DELETE or EXPORT


setOperation

public void setOperation(java.lang.String name)
See Also:
getOperation()

getExportTables

public java.lang.String getExportTables()
Returns:
a comma separated list of table names

setExportTables

public void setExportTables(java.lang.String tables)
set the list of tables to be exported

Parameters:
tables - a comma separated list of table names

process

public void process()
             throws java.lang.ClassNotFoundException,
                    java.sql.SQLException,
                    java.io.IOException,
                    org.dbunit.dataset.DataSetException,
                    org.dbunit.DatabaseUnitException
Process a dataset using a DbUnit operation

Throws:
java.lang.ClassNotFoundException
java.sql.SQLException
java.io.IOException
org.dbunit.dataset.DataSetException
org.dbunit.DatabaseUnitException


Copyright © 2003-2009 SourceForge. All Rights Reserved.