org.dbunit.ant
Class Compare

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.dbunit.ant.AbstractStep
          extended by org.dbunit.ant.Compare
All Implemented Interfaces:
Cloneable, DbUnitTaskStep

public class Compare
extends AbstractStep

The Compare class is the step that compare the content of the database against the specified dataset.

Since:
Apr 3, 2004
Version:
$Revision: 838 $
Author:
Manuel Laflamme
See Also:
DbUnitTaskStep

Field Summary
 
Fields inherited from class org.dbunit.ant.AbstractStep
FORMAT_CSV, FORMAT_DTD, FORMAT_FLAT, FORMAT_XLS, FORMAT_XML
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Compare()
           
 
Method Summary
 void addQuery(Query query)
           
 void addTable(Table table)
           
 void execute(IDatabaseConnection connection)
           
 String getFormat()
           
 String getLogMessage()
           
 File getSrc()
           
 List getTables()
           
 void setFormat(String format)
           
 void setSort(boolean sort)
           
 void setSrc(File src)
           
 String toString()
           
 
Methods inherited from class org.dbunit.ant.AbstractStep
checkDataFormat, getDatabaseDataSet, getInputSource, getSrcDataSet, isDataFormat
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compare

public Compare()
Method Detail

getSrc

public File getSrc()

setSrc

public void setSrc(File src)

setSort

public void setSort(boolean sort)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getTables

public List getTables()

addTable

public void addTable(Table table)

addQuery

public void addQuery(Query query)

execute

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

getLogMessage

public String getLogMessage()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012. All Rights Reserved.