org.codehaus.mojo.dbunit
Class ExportMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.dbunit.AbstractDbUnitMojo
          extended by org.codehaus.mojo.dbunit.ExportMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class ExportMojo
extends AbstractDbUnitMojo

Execute DbUnit Export operation

Version:
$Id: ExportMojo.java 9171 2009-03-07 18:21:11Z david $
Author:
Dan Tran, Brian Topping, David J. M. Karlsen
Is defined by the goal name:
export

Field Summary
protected  File dest
          Location of exported DataSet file
protected  String doctype
          doctype
protected  String encoding
          Encoding of exported data.
protected  String format
          DataSet file format
protected  boolean ordered
          Set to true to order exported data according to integrity constraints defined in DB.
protected  org.dbunit.ant.Query[] queries
          List of DbUnit's Query.
protected  org.dbunit.ant.Table[] tables
          List of DbUnit's Table.
 
Fields inherited from class org.codehaus.mojo.dbunit.AbstractDbUnitMojo
dataTypeFactoryName, datatypeWarning, driver, escapePattern, password, schema, skip, skipOracleRecycleBinTables, supportBatchStatement, url, useQualifiedTableNames, username
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExportMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dest

protected File dest
Location of exported DataSet file

Is defined by:
expression:
${dest}
default-value:
${project.build.directory}/dbunit/export.xml

format

protected String format
DataSet file format

Is defined by:
expression:
${format}
default-value:
xml

doctype

protected String doctype
doctype

Is defined by:
expression:
${doctype}

tables

protected org.dbunit.ant.Table[] tables
List of DbUnit's Table. See DbUnit's JavaDoc for details

Is defined by:

queries

protected org.dbunit.ant.Query[] queries
List of DbUnit's Query. See DbUnit's JavaDoc for details

Is defined by:

ordered

protected boolean ordered
Set to true to order exported data according to integrity constraints defined in DB.

Is defined by:

encoding

protected String encoding
Encoding of exported data.

Is defined by:
expression:
${encoding}
default-value:
${project.build.sourceEncoding}
Constructor Detail

ExportMojo

public ExportMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Specified by:
execute in interface Mojo
Overrides:
execute in class AbstractDbUnitMojo
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2006-2009 Codehaus. All Rights Reserved.