org.jboss.seam.mock
Class DBUnitSeamTest.DataSetOperation

java.lang.Object
  extended by org.jboss.seam.mock.DBUnitSeamTest.DataSetOperation
Enclosing class:
DBUnitSeamTest

protected static class DBUnitSeamTest.DataSetOperation
extends Object


Constructor Summary
protected DBUnitSeamTest.DataSetOperation()
           
  DBUnitSeamTest.DataSetOperation(String dataSetLocation)
          Defaults to DatabaseOperation.CLEAN_INSERT
  DBUnitSeamTest.DataSetOperation(String dataSetLocation, org.dbunit.operation.DatabaseOperation operation)
           
  DBUnitSeamTest.DataSetOperation(String dataSetLocation, String dtdLocation)
          Defaults to DatabaseOperation.CLEAN_INSERT
  DBUnitSeamTest.DataSetOperation(String dataSetLocation, String dtdLocation, org.dbunit.operation.DatabaseOperation operation)
           
 
Method Summary
 void execute(org.dbunit.database.IDatabaseConnection connection)
           
 org.dbunit.dataset.IDataSet getDataSet()
           
 org.dbunit.operation.DatabaseOperation getOperation()
           
 void prepare(DBUnitSeamTest test)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBUnitSeamTest.DataSetOperation

protected DBUnitSeamTest.DataSetOperation()

DBUnitSeamTest.DataSetOperation

public DBUnitSeamTest.DataSetOperation(String dataSetLocation)
Defaults to DatabaseOperation.CLEAN_INSERT

Parameters:
dataSetLocation - location of DBUnit dataset

DBUnitSeamTest.DataSetOperation

public DBUnitSeamTest.DataSetOperation(String dataSetLocation,
                                       String dtdLocation)
Defaults to DatabaseOperation.CLEAN_INSERT

Parameters:
dataSetLocation - location of DBUnit dataset
dtdLocation - optional (can be null) location of XML file DTD on classpath

DBUnitSeamTest.DataSetOperation

public DBUnitSeamTest.DataSetOperation(String dataSetLocation,
                                       org.dbunit.operation.DatabaseOperation operation)
Parameters:
dataSetLocation - location of DBUnit dataset
operation - operation to execute

DBUnitSeamTest.DataSetOperation

public DBUnitSeamTest.DataSetOperation(String dataSetLocation,
                                       String dtdLocation,
                                       org.dbunit.operation.DatabaseOperation operation)
Method Detail

getDataSet

public org.dbunit.dataset.IDataSet getDataSet()

getOperation

public org.dbunit.operation.DatabaseOperation getOperation()

prepare

public void prepare(DBUnitSeamTest test)

execute

public void execute(org.dbunit.database.IDatabaseConnection connection)

toString

public String toString()
Overrides:
toString in class Object