|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.texen.ant.TexenTask
org.apache.torque.task.TorqueDataModelTask
org.apache.torque.task.TorqueSQLTask
public class TorqueSQLTask
An extended Texen task used for generating SQL source from an XML schema describing a database structure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.torque.task.TorqueDataModelTask |
---|
TorqueDataModelTask.TorqueClasspathResourceLoader, TorqueDataModelTask.TorqueFileResourceLoader |
Field Summary |
---|
Fields inherited from class org.apache.torque.task.TorqueDataModelTask |
---|
context, databaseNames, dataModelDbMap, dataModels, filesets, sqldbmap, xmlFile |
Fields inherited from class org.apache.texen.ant.TexenTask |
---|
contextProperties, controlTemplate, inputEncoding, logFile, outputDirectory, outputEncoding, outputFile, resourceLoaderModificationCheckInterval, templatePath, useClasspath, useResourceLoaderCache |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
TorqueSQLTask()
|
Method Summary | |
---|---|
String |
getDatabase()
Returns the name of the database to generate sql for. |
String |
getIdTableXMLFile()
Gets the id-table xml schema file path. |
String |
getSuffix()
Returns the suffix of the generated sql files. |
org.apache.velocity.context.Context |
initControlContext()
Place our target database and target platform values into the context for use in the templates. |
void |
loadIdBrokerModel()
Create the database model necessary for the IDBroker tables. |
void |
setDatabase(String database)
Sets the name of the database to generate sql for. |
void |
setIdTableXMLFile(String idXmlFile)
Set the path to the xml schema file that defines the id-table, used by the idbroker method. |
void |
setSuffix(String suffix)
Sets the suffix of the generated sql files. |
Methods inherited from class org.apache.torque.task.TorqueDataModelTask |
---|
addFileset, execute, filter, getDataModelDbMap, getDataModels, getSqlDbMap, getTargetDatabase, getTargetPackage, getXmlFile, populateInitialContext, setContextProperties, setSqlDbMap, setTargetDatabase, setTargetPackage, setXmlFile |
Methods inherited from class org.apache.texen.ant.TexenTask |
---|
cleanup, getContextProperties, getControlTemplate, getLogFile, getOutputDirectory, getOutputFile, getTemplatePath, setControlTemplate, setInputEncoding, setLogFile, setOutputDirectory, setOutputEncoding, setOutputFile, setResourceLoaderModificationCheckInterval, setTemplatePath, setUseClasspath, setUseResourceLoaderCache |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TorqueSQLTask()
Method Detail |
---|
public void setDatabase(String database)
database
- the name of the database to generate sql for.public String getDatabase()
public void setSuffix(String suffix)
suffix
- the suffix of the generated sql files.public String getSuffix()
public void setIdTableXMLFile(String idXmlFile)
idXmlFile
- xml schema filepublic String getIdTableXMLFile()
public void loadIdBrokerModel() throws EngineException
EngineException
public org.apache.velocity.context.Context initControlContext() throws Exception
initControlContext
in class TorqueDataModelTask
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |