|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.databene.benerator.maven.AbstractBeneratorMojo
org.databene.benerator.maven.DBSnapshotMojo
public class DBSnapshotMojo
Creates a database snapshot in DbUnit data file format.
Created: 09.07.2008 18:50:23
| Field Summary | |
|---|---|
protected java.lang.String |
dbDriver
The fully qualified name of the JDBC database driver. |
protected java.lang.String |
dbPassword
The database password. |
protected java.lang.String |
dbSchema
The database schema to use. |
protected java.lang.String |
dbUrl
The JDBC database url. |
protected java.lang.String |
dbUser
The database user name. |
protected java.lang.String |
snapshotDialect
The database dialect to use in a snapshot file of SQL format. |
protected java.lang.String |
snapshotFilename
The file name to use for the snapshot file. |
protected java.lang.String |
snapshotFormat
The file format to use in the export file. |
| Fields inherited from class org.databene.benerator.maven.AbstractBeneratorMojo |
|---|
encoding, runtimeClasspathElements, scope, testClasspathElements |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DBSnapshotMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
'Main' method of the Mojo which calls the DbSnapshotTool using the pom's benerator configuration. |
protected void |
setSystemProperties()
Maps all attributes to System properties of the same name. |
| Methods inherited from class org.databene.benerator.maven.AbstractBeneratorMojo |
|---|
getClasspathElements, getClasspathURLs, setSystemProperty, setupClasspath |
| 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 |
|---|
protected java.lang.String dbDriver
protected java.lang.String dbUrl
protected java.lang.String dbUser
protected java.lang.String dbPassword
protected java.lang.String dbSchema
protected java.lang.String snapshotFormat
protected java.lang.String snapshotDialect
protected java.lang.String snapshotFilename
| Constructor Detail |
|---|
public DBSnapshotMojo()
| Method Detail |
|---|
protected void setSystemProperties()
AbstractBeneratorMojo
setSystemProperties in class AbstractBeneratorMojopublic void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||