org.codehaus.mojo.dbunit
Class AbstractDbUnitMojo

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

public abstract class AbstractDbUnitMojo
extends AbstractMojo

Common configurations for all DBUnit operations

Version:
$Id: AbstractDbUnitMojo.java 10099 2009-07-11 15:24:24Z david $
Author:
Dan Tran, Brian Topping
Requires the dependencies in this specified scope:
compile

Field Summary
protected  String dataTypeFactoryName
          Set the DataType factory to add support for non-standard database vendor data types.
protected  boolean datatypeWarning
          Enable or disable the warning message displayed when DbUnit encounter an unsupported data type.
protected  String driver
          The class name of the JDBC driver to be used.
protected  String escapePattern
          escapePattern
protected  String metadataHandlerName
          Class name of metadata handler.
protected  String password
          Database password.
protected  String schema
          The schema name that tables can be found under.
protected  boolean skip
          Skip the execution when true, very handy when using together with maven.test.skip.
protected  boolean skipOracleRecycleBinTables
          skipOracleRecycleBinTables
protected  boolean supportBatchStatement
          Enable or disable usage of JDBC batched statement by DbUnit
protected  String url
          The JDBC URL for the database to access, e.g. jdbc:db2:SAMPLE.
protected  boolean useQualifiedTableNames
          Enable or disable multiple schemas support by prefixing table names with the schema name.
protected  String username
          Database username.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractDbUnitMojo()
           
 
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

driver

protected String driver
The class name of the JDBC driver to be used.

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

username

protected String username
Database username. If not given, it will be looked up through settings.xml's server with ${settingsKey} as key

Is defined by:
expression:
${username}

password

protected String password
Database password. If not given, it will be looked up through settings.xml's server with ${settingsKey} as key

Is defined by:
expression:
${password}

url

protected String url
The JDBC URL for the database to access, e.g. jdbc:db2:SAMPLE.

Is defined by:
Is required.

schema

protected String schema
The schema name that tables can be found under.

Is defined by:
expression:
${schema}

dataTypeFactoryName

protected String dataTypeFactoryName
Set the DataType factory to add support for non-standard database vendor data types.

Is defined by:
expression:
${dataTypeFactoryName}
default-value:
org.dbunit.dataset.datatype.DefaultDataTypeFactory

supportBatchStatement

protected boolean supportBatchStatement
Enable or disable usage of JDBC batched statement by DbUnit

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

useQualifiedTableNames

protected boolean useQualifiedTableNames
Enable or disable multiple schemas support by prefixing table names with the schema name.

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

datatypeWarning

protected boolean datatypeWarning
Enable or disable the warning message displayed when DbUnit encounter an unsupported data type.

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

escapePattern

protected String escapePattern
escapePattern

Is defined by:
expression:
${escapePattern}

skipOracleRecycleBinTables

protected boolean skipOracleRecycleBinTables
skipOracleRecycleBinTables

Since:
1.0-beta-2
Is defined by:
expression:
${escapePattern}
default-value:
false

skip

protected boolean skip
Skip the execution when true, very handy when using together with maven.test.skip.

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

metadataHandlerName

protected String metadataHandlerName
Class name of metadata handler.

Since:
1.0-beta-3
Is defined by:
expression:
${metadataHandlerName}
default-value:
org.dbunit.database.DefaultMetadataHandler
Constructor Detail

AbstractDbUnitMojo

public AbstractDbUnitMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2006-2009 Codehaus. All Rights Reserved.