org.codehaus.mojo.dbunit
Class OperationMojo

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

public class OperationMojo
extends AbstractDbUnitMojo

Execute DbUnit's Database Operation with an external dataset file.

Version:
$Id: OperationMojo.java 9179 2009-03-08 23:21:28Z david $
Author:
Dan Tran, Brian Topping
Is defined by the goal name:
operation

Field Summary
protected  String format
          Dataset file format type.
protected  File src
          DataSet file
protected  boolean transaction
          When true, place the entired operation in one transaction
protected  String type
          Type of Database operation to perform.
 
Fields inherited from class org.codehaus.mojo.dbunit.AbstractDbUnitMojo
dataTypeFactoryName, datatypeWarning, driver, escapePattern, metadataHandlerName, password, schema, skip, skipOracleRecycleBinTables, supportBatchStatement, url, useQualifiedTableNames, username
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
OperationMojo()
           
 
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

type

protected String type
Type of Database operation to perform. Supported types are UPDATE, INSERT, DELETE, DELETE_ALL, REFRESH, CLEAN_INSERT, MSSQL_INSERT, MSSQL_REFRESH, MSSQL_CLEAN_INSERT

Is defined by:
expression:
${type}
Is required.

transaction

protected boolean transaction
When true, place the entired operation in one transaction

Is defined by:
expression:
${transaction}
default-value:
false

src

protected File src
DataSet file

Is defined by:
expression:
${src}
Is required.

format

protected String format
Dataset file format type. Valid types are: flat, xml, csv, and dtd

Is defined by:
expression:
${format}
default-value:
xml;
Is required.
Constructor Detail

OperationMojo

public OperationMojo()
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.