org.dbunit.ant
Class Operation

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

public class Operation
extends AbstractStep

The Operation class is the step that defines which operation will be performed in the execution of the DbUnitTask task.

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

Field Summary
protected  java.lang.String _type
           
 
Fields inherited from class org.dbunit.ant.AbstractStep
FORMAT_CSV, FORMAT_DTD, FORMAT_FLAT, FORMAT_XML
 
Constructor Summary
Operation()
           
 
Method Summary
 void execute(IDatabaseConnection connection)
           
 DatabaseOperation getDbOperation()
           
 java.lang.String getFormat()
           
 java.lang.String getLogMessage()
           
 java.io.File getSrc()
           
 java.lang.String getType()
           
 boolean isTransaction()
           
 void setFormat(java.lang.String format)
           
 void setSrc(java.io.File src)
           
 void setTransaction(boolean transaction)
           
 void setType(java.lang.String type)
           
 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
 

Field Detail

_type

protected java.lang.String _type
Constructor Detail

Operation

public Operation()
Method Detail

getType

public java.lang.String getType()

getSrc

public java.io.File getSrc()

getDbOperation

public DatabaseOperation getDbOperation()

getFormat

public java.lang.String getFormat()

isTransaction

public boolean isTransaction()

setType

public void setType(java.lang.String type)

setSrc

public void setSrc(java.io.File src)

setFormat

public void setFormat(java.lang.String format)

setTransaction

public void setTransaction(boolean transaction)

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.