public class Export extends AbstractStep
Export class is the step that facilitates exporting
the contents of the database and/or it's corresponding DTD to a file.
The export can be performed on a full dataset or a partial one if
specific table names are identified.DbUnitTaskStepFORMAT_CSV, FORMAT_DTD, FORMAT_FLAT, FORMAT_XLS, FORMAT_XML| Constructor and Description |
|---|
Export() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(Query query) |
void |
addQuerySet(QuerySet querySet) |
void |
addTable(Table table) |
void |
execute(IDatabaseConnection connection) |
File |
getDest() |
String |
getDoctype() |
String |
getEncoding()
Encoding for XML-Output
|
protected IDataSet |
getExportDataSet(IDatabaseConnection connection)
Creates the dataset that is finally used for the export
|
String |
getFormat() |
String |
getLogMessage() |
List |
getTables() |
void |
setDest(File dest) |
void |
setDoctype(String doctype) |
void |
setEncoding(String encoding) |
void |
setFormat(String format) |
String |
toString() |
checkDataFormat, getDatabaseDataSet, getInputSource, getSrcDataSet, isDataFormat, isOrdered, setOrderedpublic File getDest()
public String getFormat()
public List getTables()
public void setDest(File dest)
public void setFormat(String format)
public String getEncoding()
public void setEncoding(String encoding)
public void addTable(Table table)
public void addQuery(Query query)
public void addQuerySet(QuerySet querySet)
public String getDoctype()
public void setDoctype(String doctype)
public void execute(IDatabaseConnection connection) throws DatabaseUnitException
DatabaseUnitExceptionprotected IDataSet getExportDataSet(IDatabaseConnection connection) throws DatabaseUnitException, SQLException
connection - DatabaseUnitExceptionSQLExceptionpublic String getLogMessage()
public String toString()
toString in class AbstractStepCopyright © 2002-2017. All Rights Reserved.