|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.torque.mojo.TexenTaskMojo
org.apache.torque.mojo.DataModelTaskMojo
public abstract class DataModelTaskMojo
The base class for all mojos wrapping DataModelTasks.
Field Summary | |
---|---|
static java.lang.String |
TARGET_DATABASE_CONTEXT_PROPERTY
The context property for the database. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Texen task which is wrapped by this mojo. |
void |
execute()
Runs the generation for the database layout defined in the schema.xml files. |
protected abstract java.lang.String |
getControlTemplate()
Returns the path to the control template. |
java.lang.String |
getReportFile()
Gets the path to the report file. |
java.lang.String |
getSchemaDir()
Returns the directory where the schema files are located. |
java.lang.String |
getSchemaExcludes()
Returns the schema files which are excluded from generation. |
java.lang.String |
getSchemaIncludes()
Returns the schema files which are included in generation. |
java.lang.String |
getSqlDbMap()
Returns the path to the mapping SQL Files -> database. |
java.lang.String |
getTargetDatabase()
Returns the target database (e.g. |
java.lang.String |
getTargetPackage()
Returns the target package for the generated classes. |
boolean |
isRunOnlyOnSchemaChange()
Returns whether this mojo should be executed only if the schema has changed. |
protected boolean |
schemaChanged()
Returns whether the schema has changed. |
void |
setReportFile(java.lang.String reportFile)
Sets the path to the report file. |
void |
setRunOnlyOnSchemaChange(boolean runOnlyOnSchemaChange)
Sets whether this mojo should be executed only if the schema has changed. |
void |
setSchemaDir(java.lang.String schemaDir)
Sets the the directory where the schema files are located. |
void |
setSchemaExcludes(java.lang.String schemaExcludes)
Sets the schema files which are excluded from generation. |
void |
setSchemaIncludes(java.lang.String schemaIncludes)
Sets the schema files which are included in generation. |
void |
setSqlDbMap(java.lang.String sqlDbMap)
Sets the path to the mapping SQL Files -> database. |
void |
setTargetDatabase(java.lang.String targetDatabase)
Sets the target database (e.g. |
void |
setTargetPackage(java.lang.String targetPackage)
Sets the target package for the generated classes. |
Methods inherited from class org.apache.torque.mojo.TexenTaskMojo |
---|
generateContextProperties, getAntProject, getContextPropertiesPath, getGeneratorTask, getMojoContextProperties, 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 java.lang.String TARGET_DATABASE_CONTEXT_PROPERTY
Method Detail |
---|
protected void configureTask() throws org.apache.maven.plugin.MojoExecutionException
configureTask
in class TexenTaskMojo
org.apache.maven.plugin.MojoExecutionException
- if an error occurs when setting the Tasks
properties.TexenTaskMojo.configureTask()
protected boolean schemaChanged()
public java.lang.String getSchemaDir()
public void setSchemaDir(java.lang.String schemaDir)
schemaDir
- the directory where the schema files are located.public java.lang.String getTargetDatabase()
public void setTargetDatabase(java.lang.String targetDatabase)
targetDatabase
- the target database for the generated files.public java.lang.String getTargetPackage()
public void setTargetPackage(java.lang.String targetPackage)
public java.lang.String getReportFile()
outputDir
.
public void setReportFile(java.lang.String reportFile)
outputDir
.
reportFile
- the path to the report file.public boolean isRunOnlyOnSchemaChange()
public void setRunOnlyOnSchemaChange(boolean runOnlyOnSchemaChange)
runOnlyOnSchemaChange
- whether the mojo only should run
if the schema has changed.public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class TexenTaskMojo
org.apache.maven.plugin.MojoExecutionException
- If an error occurs during generation.TexenTaskMojo.execute()
,
Mojo.execute()
public java.lang.String getSchemaExcludes()
public void setSchemaExcludes(java.lang.String schemaExcludes)
schemaExcludes
- the pattern for the excluded files.public java.lang.String getSchemaIncludes()
public void setSchemaIncludes(java.lang.String schemaIncludes)
schemaIncludes
- the pattern for the included files.public java.lang.String getSqlDbMap()
public void setSqlDbMap(java.lang.String sqlDbMap)
sqlDbMap
- the absolute path to the mapping SQL Files -> database.protected abstract java.lang.String getControlTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |