net.sourceforge.mavenplugins.dbunit
Class DataSetTool
java.lang.Object
net.sourceforge.mavenplugins.dbunit.DbUnitTool
net.sourceforge.mavenplugins.dbunit.DataSetTool
- public class DataSetTool
- extends DbUnitTool
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 |
DataSetTool
public DataSetTool()
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)
- Returns:
- the operation to perform on a dataset
- 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-2007 SourceForge. All Rights Reserved.