org.codehaus.mojo.dbunit
Class OperationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.dbunit.AbstractDbUnitMojo
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
OperationMojo
public OperationMojo()
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.