|
||||||||||
| 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.BaseMojo
org.apache.torque.mojo.AntTaskMojo
org.apache.torque.mojo.TexenTaskMojo
org.apache.torque.mojo.DataModelTaskMojo
public abstract class DataModelTaskMojo
The base class for mojos that wrap DataModelTasks
| Field Summary | |
|---|---|
static String |
TARGET_DATABASE_CONTEXT_PROPERTY
The Velocity context property for the target 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 | |
|---|---|
DataModelTaskMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addTargetDatabaseToOutputDir()
|
protected void |
addTargetDatabaseToReportFile()
|
protected void |
configureTask()
Configures the Texen task wrapped by this mojo |
protected org.apache.tools.ant.types.FileSet |
getAntFileSet(File baseDir,
String includes,
String excludes)
|
protected File |
getCanonicalReportFile()
|
protected abstract String |
getControlTemplate()
Returns the path to the control template. |
protected String |
getInvalidTargetDatabaseMessage()
|
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. |
protected List<File> |
getSchemaFiles()
|
String |
getSchemaIncludes()
Returns the schema files which are included in generation. |
String |
getSqlDbMap()
Returns the path to the mapping SQL Files -> database. |
String |
getSuffix()
|
String |
getTargetDatabase()
Returns the target database (e.g. |
String |
getTargetPackage()
Returns the target package for the generated classes. |
String |
getUrl()
|
boolean |
isRunOnlyOnSchemaChange()
Returns whether this mojo should be executed only if 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 |
setSuffix(String suffix)
|
void |
setTargetDatabase(String targetDatabase)
Sets the target database (e.g. |
void |
setTargetPackage(String targetPackage)
Sets the target package for the generated classes. |
void |
setUrl(String url)
|
protected void |
updateConfiguration()
Validate that some essential configuration items are present |
protected void |
validateConfiguration()
Validate that some essential configuration items are present |
| Methods inherited from class org.apache.torque.mojo.TexenTaskMojo |
|---|
executeMojo, generateContextProperties, getContextPropertiesPath, getGeneratorTask, getMojoContextProperties, getOutputDir, getTemplatePath, getUseClasspath, getUserContextProperties, setContextPropertiesPath, setOutputDir, setTemplatePath, setUseClasspath, setUserContextProperties |
| Methods inherited from class org.apache.torque.mojo.AntTaskMojo |
|---|
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 |
|---|
public static final String TARGET_DATABASE_CONTEXT_PROPERTY
| Constructor Detail |
|---|
public DataModelTaskMojo()
| Method Detail |
|---|
protected File getCanonicalReportFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.tools.ant.types.FileSet getAntFileSet(File baseDir,
String includes,
String excludes)
protected void updateConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getInvalidTargetDatabaseMessage()
protected void validateConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract String getControlTemplate()
protected void addTargetDatabaseToOutputDir()
protected void addTargetDatabaseToReportFile()
protected void configureTask()
throws org.apache.maven.plugin.MojoExecutionException
configureTask in class TexenTaskMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected List<File> getSchemaFiles()
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 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.public String getUrl()
public void setUrl(String url)
public String getSuffix()
public void setSuffix(String suffix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||