|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.dbunit.ant.DbUnitTask
public class DbUnitTask
DbUnitTask
is the task definition for an Ant
interface to DbUnit
. DbUnit is a JUnit extension
which sets your database to a known state before executing your
tasks.
Task
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
DbUnitTask()
|
Method Summary | |
---|---|
void |
addCompare(Compare compare)
Adds a Compare to the steps List. |
void |
addExport(Export export)
Adds an Export to the steps List. |
void |
addOperation(Operation operation)
Adds an Operation. |
org.apache.tools.ant.types.Path |
createClasspath()
Create the classpath for loading the driver. |
void |
execute()
Load the step and then execute it |
java.util.List |
getSteps()
Gets the Steps. |
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath for loading the driver. |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Set the classpath for loading the driver using the classpath reference. |
void |
setDatatypeFactory(java.lang.String datatypeFactory)
|
void |
setDatatypeWarning(boolean datatypeWarning)
|
void |
setDriver(java.lang.String driver)
Set the JDBC driver to be used. |
void |
setEscapePattern(java.lang.String escapePattern)
|
void |
setPassword(java.lang.String password)
Set the password for the DB connection. |
void |
setSchema(java.lang.String schema)
Set the schema for the DB connection. |
void |
setSupportBatchStatement(boolean supportBatchStatement)
Set the flag for supporting batch statements. |
void |
setUrl(java.lang.String url)
Set the DB connection url. |
void |
setUseQualifiedTableNames(boolean useQualifiedTableNames)
Set the flag for using the qualified table names. |
void |
setUserid(java.lang.String userId)
Set the user name for the DB connection. |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbUnitTask()
Method Detail |
---|
public void setDriver(java.lang.String driver)
public void setUrl(java.lang.String url)
public void setUserid(java.lang.String userId)
public void setPassword(java.lang.String password)
public void setSchema(java.lang.String schema)
public void setUseQualifiedTableNames(boolean useQualifiedTableNames)
public void setSupportBatchStatement(boolean supportBatchStatement)
public void setDatatypeWarning(boolean datatypeWarning)
public void setDatatypeFactory(java.lang.String datatypeFactory)
public void setEscapePattern(java.lang.String escapePattern)
public void setClasspath(org.apache.tools.ant.types.Path classpath)
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public java.util.List getSteps()
public void addOperation(Operation operation)
public void addCompare(Compare compare)
public void addExport(Export export)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |