|
|||||||||
| 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 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 String |
getControlTemplate()
Returns the path to the control template. |
String |
getReportFile()
Gets the path to the report file. |
String |
getSchemaDir()
Returns the directory where the schema files are located. |
String |
getSchemaExcludes()
Returns the schema files which are excluded from generation. |
String |
getSchemaIncludes()
Returns the schema files which are included in generation. |
String |
getSqlDbMap()
Returns the path to the mapping SQL Files -> database. |
String |
getTargetDatabase()
Returns the target database (e.g. mysql, oracle, ... ) for the generated files. |
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(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(String schemaDir)
Sets the the directory where the schema files are located. |
void |
setSchemaExcludes(String schemaExcludes)
Sets the schema files which are excluded from generation. |
void |
setSchemaIncludes(String schemaIncludes)
Sets the schema files which are included in generation. |
void |
setSqlDbMap(String sqlDbMap)
Sets the path to the mapping SQL Files -> database. |
void |
setTargetDatabase(String targetDatabase)
Sets the target database (e.g. mysql, oracle, ... ) for the generated files. |
void |
setTargetPackage(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 String TARGET_DATABASE_CONTEXT_PROPERTY
| Method Detail |
|---|
protected void configureTask()
throws org.apache.maven.plugin.MojoExecutionException
configureTask in class TexenTaskMojoorg.apache.maven.plugin.MojoExecutionException - if an error occurs when setting the Tasks
properties.TexenTaskMojo.configureTask()protected boolean schemaChanged()
public String getSchemaDir()
public void setSchemaDir(String schemaDir)
schemaDir - the directory where the schema files are located.public String getTargetDatabase()
public void setTargetDatabase(String targetDatabase)
targetDatabase - the target database for the generated files.public String getTargetPackage()
public void setTargetPackage(String targetPackage)
public String getReportFile()
outputDir.
public void setReportFile(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.Mojoexecute in class TexenTaskMojoorg.apache.maven.plugin.MojoExecutionException - If an error occurs during generation.TexenTaskMojo.execute(),
Mojo.execute()public String getSchemaExcludes()
public void setSchemaExcludes(String schemaExcludes)
schemaExcludes - the pattern for the excluded files.public String getSchemaIncludes()
public void setSchemaIncludes(String schemaIncludes)
schemaIncludes - the pattern for the included files.public String getSqlDbMap()
public void setSqlDbMap(String sqlDbMap)
sqlDbMap - the absolute path to the mapping SQL Files -> database.protected abstract String getControlTemplate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||