org.dbunit.ant
Class Export

java.lang.Object
  extended by org.dbunit.ant.AbstractStep
      extended by org.dbunit.ant.Export
All Implemented Interfaces:
DbUnitTaskStep

public class Export
extends AbstractStep

The 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.

Since:
Jun 10, 2002
Version:
$Revision: 629 $
Author:
Timothy Ruppert, Ben Cox
See Also:
DbUnitTaskStep

Field Summary
 
Fields inherited from class org.dbunit.ant.AbstractStep
FORMAT_CSV, FORMAT_DTD, FORMAT_FLAT, FORMAT_XML
 
Constructor Summary
Export()
           
 
Method Summary
 void addQuery(Query query)
           
 void addQuerySet(QuerySet querySet)
           
 void addTable(Table table)
           
 void execute(IDatabaseConnection connection)
           
 java.io.File getDest()
           
 java.lang.String getDoctype()
           
 java.lang.String getFormat()
           
 java.lang.String getLogMessage()
           
 java.util.List getTables()
           
 void setDest(java.io.File dest)
           
 void setDoctype(java.lang.String doctype)
           
 void setFormat(java.lang.String format)
           
 java.lang.String toString()
           
 
Methods inherited from class org.dbunit.ant.AbstractStep
getDatabaseDataSet, getParentTask, getSrcDataSet, log, setParentTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Export

public Export()
Method Detail

getDest

public java.io.File getDest()

getFormat

public java.lang.String getFormat()

getTables

public java.util.List getTables()

setDest

public void setDest(java.io.File dest)

setFormat

public void setFormat(java.lang.String format)

addTable

public void addTable(Table table)

addQuery

public void addQuery(Query query)

addQuerySet

public void addQuerySet(QuerySet querySet)

getDoctype

public java.lang.String getDoctype()

setDoctype

public void setDoctype(java.lang.String doctype)

execute

public void execute(IDatabaseConnection connection)
             throws DatabaseUnitException
Throws:
DatabaseUnitException

getLogMessage

public java.lang.String getLogMessage()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2008. All Rights Reserved.