|
||||||||||
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.BaseMojo org.apache.torque.mojo.AntTaskMojo org.apache.torque.mojo.TexenTaskMojo org.apache.torque.mojo.DataModelTaskMojo org.apache.torque.mojo.DataSqlMojo
public class DataSqlMojo
Generates platform specific SQL from database agnostic XML files. Each SQL file created by this goal contains data
for a single table. The database platform to generate SQL for is determined by ${targetDatabase}. See also
impex:schemasql
Field Summary | |
---|---|
private File |
dataDTD
The DTD for the data XML files |
private File |
dataXMLDir
The directory containing data XML files |
private String |
dataXMLExcludes
The default set of files in that directory to exclude (ant style notation) |
private String |
dataXMLIncludes
The default set of files in that directory to include (ant style notation) |
private String |
dummy
The directory in which the SQL will be generated. |
private String |
dummy2
The location where the SQL file will be generated. |
private String |
dummy3
The location where the context property file for velocity will be generated. |
private boolean |
runOnlyOnChange
Only run this mojo if the data or schema has changed since the last run |
private File |
schemaXMLFile
The XML file describing the database schema |
Fields inherited from class org.apache.torque.mojo.DataModelTaskMojo |
---|
suffix, TARGET_DATABASE_CONTEXT_PROPERTY, url |
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 | |
---|---|
DataSqlMojo()
|
Method Summary | |
---|---|
protected void |
configureTask()
Configures the Texen task wrapped by this mojo |
void |
executeMojo()
Executes the wrapped Texen task. |
protected String |
getControlTemplate()
Returns the path to the control template. |
File |
getDataDTD()
|
protected List<File> |
getDataFiles()
|
File |
getDataXMLDir()
|
String |
getDataXMLExcludes()
|
String |
getDataXMLIncludes()
|
protected org.apache.commons.configuration.PropertiesConfiguration |
getMojoContextProperties()
Returns the context properties for the Texen task. |
File |
getSchemaXMLFile()
|
boolean |
isRunOnlyOnChange()
|
void |
setDataDTD(File dataDTD)
|
void |
setDataXMLDir(File dataXMLDir)
|
void |
setDataXMLExcludes(String dataXMLExcludes)
|
void |
setDataXMLIncludes(String dataXMLIncludes)
|
void |
setRunOnlyOnChange(boolean runOnlyOnDataChange)
|
void |
setSchemaXMLFile(File schemaXMLFile)
|
Methods inherited from class org.apache.torque.mojo.TexenTaskMojo |
---|
generateContextProperties, getContextPropertiesPath, getGeneratorTask, 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 |
---|
private String dummy
private String dummy2
private String dummy3
private boolean runOnlyOnChange
private File schemaXMLFile
private File dataXMLDir
private String dataXMLIncludes
private String dataXMLExcludes
private File dataDTD
Constructor Detail |
---|
public DataSqlMojo()
Method Detail |
---|
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException
TexenTaskMojo
executeMojo
in class TexenTaskMojo
org.apache.maven.plugin.MojoExecutionException
- if an error occurs during execution.Mojo.execute()
protected List<File> getDataFiles()
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
protected String getControlTemplate()
getControlTemplate
in class DataModelTaskMojo
public String getDataXMLIncludes()
public void setDataXMLIncludes(String dataXMLIncludes)
public String getDataXMLExcludes()
public void setDataXMLExcludes(String dataXMLExcludes)
public File getDataXMLDir()
public void setDataXMLDir(File dataXMLDir)
public File getSchemaXMLFile()
public void setSchemaXMLFile(File schemaXMLFile)
public boolean isRunOnlyOnChange()
public void setRunOnlyOnChange(boolean runOnlyOnDataChange)
public File getDataDTD()
public void setDataDTD(File dataDTD)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |