|
|||||||||
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.TexenTaskMojo org.apache.torque.mojo.DataModelTaskMojo org.apache.torque.mojo.DataDumpMojo
public class DataDumpMojo
Reads the content of tables from thh database and stores the data in XML files.
Field Summary | |
---|---|
static String |
PROJECT_CONTEXT_PROPERTY
The context property for the name of the project. |
Fields inherited from class org.apache.torque.mojo.DataModelTaskMojo |
---|
TARGET_DATABASE_CONTEXT_PROPERTY |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
DataDumpMojo()
Creates a new SQLMojo object. |
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Texen task which is wrapped by this mojo. |
protected String |
getControlTemplate()
Returns the path to the control template. |
String |
getDriver()
Returns the fully qualified class name of the database driver. |
protected org.apache.commons.configuration.PropertiesConfiguration |
getMojoContextProperties()
Returns the context properties for the Texen task. |
String |
getPassword()
Returns the password of the database user. |
String |
getProjectName()
Returns the name of the project, which is used as prefix for the generated table names and the name of the datadtd. |
String |
getUrl()
Returns the connect URL to the database. |
String |
getUser()
Returns the database user. |
String |
getXmlFile()
Returns the name of the xml file to process. |
void |
setDriver(String driver)
Sets the fully qualified class name of the database driver. |
void |
setPassword(String password)
Sets the password of the database user. |
void |
setProjectName(String projectName)
Sets the name of the project, which is used as prefix for the generated table names and the name of the datadtd. |
void |
setUrl(String url)
Sets the connect URL to the database. |
void |
setUser(String user)
Sets the database user. |
void |
setXmlFile(String xmlFile)
Sets the name of the xml file to process. |
Methods inherited from class org.apache.torque.mojo.DataModelTaskMojo |
---|
execute, getReportFile, getSchemaDir, getSchemaExcludes, getSchemaIncludes, getSqlDbMap, getTargetDatabase, getTargetPackage, isRunOnlyOnSchemaChange, schemaChanged, setReportFile, setRunOnlyOnSchemaChange, setSchemaDir, setSchemaExcludes, setSchemaIncludes, setSqlDbMap, setTargetDatabase, setTargetPackage |
Methods inherited from class org.apache.torque.mojo.TexenTaskMojo |
---|
generateContextProperties, getAntProject, getContextPropertiesPath, getGeneratorTask, getOutputDir, getProject, getTemplatePath, getUseClasspath, getUserContextProperties, setContextPropertiesPath, setGeneratorTask, setOutputDir, setProject, setTemplatePath, setUseClasspath, setUserContextProperties |
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 |
---|
public static final String PROJECT_CONTEXT_PROPERTY
Constructor Detail |
---|
public DataDumpMojo()
Method Detail |
---|
protected String getControlTemplate()
getControlTemplate
in class DataModelTaskMojo
protected org.apache.commons.configuration.PropertiesConfiguration getMojoContextProperties()
getMojoContextProperties
in class TexenTaskMojo
protected void configureTask() throws org.apache.maven.plugin.MojoExecutionException
configureTask
in class DataModelTaskMojo
org.apache.maven.plugin.MojoExecutionException
- if an error occurs when setting the Tasks
properties.TexenTaskMojo.configureTask()
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 getUser()
public void setUser(String user)
user
- the userId of the database user.public String getProjectName()
public void setProjectName(String projectName)
project
- the name of the project.public String getXmlFile()
public void setXmlFile(String xmlFile)
project
- the name of the xml file to process.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |