torque:datadump

Full name:

org.apache.torque:torque-maven-plugin:3.3.1-SNAPSHOT:datadump

Description:

Reads the content of tables from thh database and stores the data in XML files.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
driver String - The fully qualified class name of the database driver.
schemaDir String - The path to the directory where the schema files are located in.
schemaIncludes String - The schema files which should be included in generation (in ant-style notation).
targetDatabase String - The database type (e.g. mysql, oracle, ...) for the generated persistence classes,
url String - The connect URL of the database.
user String - The user name to connect to the database.
xmlFile String - The name of the xml file to process. Only one xml file can be processed at a time. Overrides the settings schemaIncludes and schemaExcludes

Optional Parameters

Name Type Since Description
outputDir String - The directory in which the data files will be created.
reportFile String - The location where the report file will be generated.
contextPropertiesPath String - The location where the context property file for velocity will be generated.
schemaExcludes String - The schema files which should be excluded in generation (in ant-style notation).
password String - The password for the database user.
projectName String - The name of the project, used as a prefix of the names of the generated files and the name of the datadtd.
runOnlyOnSchemaChange boolean - Determines if this task should run only if the schema has changed.
sqlDbMap String - The path to the properties file containing the mapping sql file -> target database.
targetPackage String - The target package for the generated classes.
templatePath String - The base path where the templates are read from, if they are not read from the classpath.
useClasspath boolean - Whether the templates should be loaded from the classpath.
userContextProperties Map - A map where all user-defined context properties can be set. Overrides all other mojo configuration settings which are mapped to context properties.

Parameter Details

driver:

The fully qualified class name of the database driver.
  • Type: java.lang.String
  • Required: Yes

outputDir:

The directory in which the data files will be created.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.directory}/data/torque

reportFile:

The location where the report file will be generated.
  • Type: java.lang.String
  • Required: No
  • Expression: ../../torque/report.${project.artifact.artifactId}.data.generation

contextPropertiesPath:

The location where the context property file for velocity will be generated.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.directory}/torque/context.data.properties

schemaExcludes:

The schema files which should be excluded in generation (in ant-style notation).
  • Type: java.lang.String
  • Required: No
  • Expression: id-table-schema.xml

password:

The password for the database user.
  • Type: java.lang.String
  • Required: No

projectName:

The name of the project, used as a prefix of the names of the generated files and the name of the datadtd.
  • Type: java.lang.String
  • Required: No
  • Expression: torque

runOnlyOnSchemaChange:

Determines if this task should run only if the schema has changed.
  • Type: boolean
  • Required: No
  • Expression: true

schemaDir:

The path to the directory where the schema files are located in.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${basedir}/src/main/torque/schema

schemaIncludes:

The schema files which should be included in generation (in ant-style notation).
  • Type: java.lang.String
  • Required: Yes
  • Expression: *schema.xml

sqlDbMap:

The path to the properties file containing the mapping sql file -> target database.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.directory}/torque/sqldbmap.properties

targetDatabase:

The database type (e.g. mysql, oracle, ...) for the generated persistence classes,
  • Type: java.lang.String
  • Required: Yes

targetPackage:

The target package for the generated classes.
  • Type: java.lang.String
  • Required: No
  • Expression: torque.generated

templatePath:

The base path where the templates are read from, if they are not read from the classpath.
  • Type: java.lang.String
  • Required: No
  • Expression: ${basedir}/src/main/torque/templates

url:

The connect URL of the database.
  • Type: java.lang.String
  • Required: Yes

useClasspath:

Whether the templates should be loaded from the classpath.
  • Type: boolean
  • Required: No
  • Expression: true

user:

The user name to connect to the database.
  • Type: java.lang.String
  • Required: Yes

userContextProperties:

A map where all user-defined context properties can be set. Overrides all other mojo configuration settings which are mapped to context properties.
  • Type: java.util.Map
  • Required: No

xmlFile:

The name of the xml file to process. Only one xml file can be processed at a time. Overrides the settings schemaIncludes and schemaExcludes
  • Type: java.lang.String
  • Required: Yes