|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.torque.mojo.BaseMojo org.apache.torque.mojo.AntTaskMojo org.apache.torque.mojo.ExportMojo
public abstract class ExportMojo
Base Mojo for export related functionality
Field Summary | |
---|---|
private boolean |
antCompatibilityMode
If true, files will be exported in a format that the Ant impex tasks can understand |
private String |
artifactId
The Maven artifactId. |
private String |
comment
Additional comment that gets placed into the generated XML document. |
private String |
driver
Database driver classname. |
private String |
excludes
Comma separated list of regular expressions for tables to exclude from the export |
private String |
includes
Comma separated list of regular expressions for tables to include in the export |
private boolean |
includeVersionInComment
By default the version of the maven plugin being used during the build will be included as part of a comment in the XML. |
private String |
password
The password for the database user. |
private String |
schema
The schema to export. |
private String |
targetDatabase
The type of database we are targeting (eg oracle, mysql). |
private String |
url
The connect URL of the database. |
private String |
username
The user name to connect to the database. |
Fields inherited from class org.apache.torque.mojo.BaseMojo |
---|
FS, SKIP_PACKAGING_TYPE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
ExportMojo()
|
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Ant task which is wrapped by this mojo. |
String |
getArtifactId()
|
String |
getComment()
|
String |
getDriver()
Returns the fully qualified class name of the database driver. |
String |
getExcludes()
|
String |
getIncludes()
|
String |
getPassword()
Returns the password of the database user. |
String |
getSchema()
|
String |
getTargetDatabase()
|
protected String |
getUpdatedComment()
|
String |
getUrl()
Returns the connect URL to the database. |
String |
getUsername()
|
boolean |
isAntCompatibilityMode()
|
boolean |
isIncludeVersionInComment()
|
void |
setAntCompatibilityMode(boolean antCompatibilityMode)
|
void |
setArtifactId(String artifactId)
|
void |
setComment(String comment)
|
void |
setDriver(String driver)
Sets the fully qualified class name of the database driver. |
void |
setExcludes(String excludePatterns)
|
void |
setIncludes(String includePatterns)
|
void |
setIncludeVersionInComment(boolean includeVersionInComment)
|
void |
setPassword(String password)
Sets the password of the database user. |
void |
setSchema(String schema)
|
void |
setTargetDatabase(String targetDatabase)
|
void |
setUrl(String url)
Sets the connect URL to the database. |
void |
setUsername(String username)
|
Methods inherited from class org.apache.torque.mojo.AntTaskMojo |
---|
executeMojo, getAntProject, getAntTask, getIniatializedAntProject, setAntProject, setAntTask |
Methods inherited from class org.apache.torque.mojo.BaseMojo |
---|
afterExecution, beforeExecution, execute, getEncoding, getMavenSession, getProject, getSettings, isForceMojoExecution, isSkip, isStartMavenLogger, setEncoding, setForceMojoExecution, setMavenSession, setProject, setSettings, setSkip, setStartMavenLogger, skipMojo |
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 |
---|
private boolean antCompatibilityMode
private String artifactId
BeanUtils.copyProperties()
to copy properties between Mojo's and Ant tasks
private boolean includeVersionInComment
private String comment
private String includes
private String excludes
private String targetDatabase
url
is supplied as the
database type will be automatically detected based on the url
. If targetDatabase is explicitly
supplied it will override the type selected by the automatic detection logic.
private String schema
schema
is supplied, the
supplied value will be used instead of the value derived from the artifactId
private String driver
url
in almost all cases (works for Oracle, MySQL, Derby, PostGresSQL, DB2, H2, HSQL, SQL Server). If
a driver is explicitly supplied, it will be used in place of the JDBC driver the automatic detection logic would
have chosen.
private String url
private String username
private String password
Constructor Detail |
---|
public ExportMojo()
Method Detail |
---|
public String getDriver()
public void setDriver(String driver)
driver
- the fully qualified class name of the database driver.public String getPassword()
public void setPassword(String password)
password
- the password of the database user.public String getUrl()
public void setUrl(String url)
url
- the connect URL to the database.public String getUsername()
public void setUsername(String username)
public String getSchema()
public void setSchema(String schema)
public String getTargetDatabase()
public void setTargetDatabase(String targetDatabase)
public String getIncludes()
public void setIncludes(String includePatterns)
public String getExcludes()
public void setExcludes(String excludePatterns)
public String getComment()
public void setComment(String comment)
protected String getUpdatedComment()
protected void configureTask() throws org.apache.maven.plugin.MojoExecutionException
AntTaskMojo
configureTask
in class AntTaskMojo
org.apache.maven.plugin.MojoExecutionException
public String getArtifactId()
public void setArtifactId(String artifactId)
public boolean isAntCompatibilityMode()
public void setAntCompatibilityMode(boolean antCompatibilityMode)
public boolean isIncludeVersionInComment()
public void setIncludeVersionInComment(boolean includeVersionInComment)
includeVersionInComment
- the includeVersionInComment to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |