org.apache.torque.mojo
Class SqlMojoBase

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.torque.mojo.BaseMojo
          extended by org.apache.torque.mojo.AntTaskMojo
              extended by org.apache.torque.mojo.TexenTaskMojo
                  extended by org.apache.torque.mojo.DataModelTaskMojo
                      extended by org.apache.torque.mojo.SqlMojoBase
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
SchemaSqlMojo

public abstract class SqlMojoBase
extends DataModelTaskMojo

Generates SQL from schema.xml files


Field Summary
 
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
SqlMojoBase()
          Creates a new SQLMojo object.
 
Method Summary
protected  void configureTask()
          Configures the Texen task wrapped by this mojo
protected  String getControlTemplate()
          Returns the path to the control template.
protected  org.apache.commons.configuration.PropertiesConfiguration getMojoContextProperties()
          Returns the context properties for the Texen task.
 
Methods inherited from class org.apache.torque.mojo.DataModelTaskMojo
addTargetDatabaseToOutputDir, addTargetDatabaseToReportFile, getAntFileSet, getCanonicalReportFile, getInvalidTargetDatabaseMessage, getReportFile, getSchemaDir, getSchemaExcludes, getSchemaFiles, getSchemaIncludes, getSqlDbMap, getSuffix, getTargetDatabase, getTargetPackage, getUrl, isRunOnlyOnSchemaChange, setReportFile, setRunOnlyOnSchemaChange, setSchemaDir, setSchemaExcludes, setSchemaIncludes, setSqlDbMap, setSuffix, setTargetDatabase, setTargetPackage, setUrl, updateConfiguration, validateConfiguration
 
Methods inherited from class org.apache.torque.mojo.TexenTaskMojo
executeMojo, 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
 

Constructor Detail

SqlMojoBase

public SqlMojoBase()
Creates a new SQLMojo object.

Method Detail

getMojoContextProperties

protected org.apache.commons.configuration.PropertiesConfiguration getMojoContextProperties()
Returns the context properties for the Texen task.

Specified by:
getMojoContextProperties in class TexenTaskMojo
Returns:
The PropertiesConfiguration containing all context properties, not null.

getControlTemplate

protected String getControlTemplate()
Returns the path to the control template.

Specified by:
getControlTemplate in class DataModelTaskMojo
Returns:
"sql/base/Control.vm"

configureTask

protected void configureTask()
                      throws org.apache.maven.plugin.MojoExecutionException
Configures the Texen task wrapped by this mojo

Overrides:
configureTask in class DataModelTaskMojo
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.