org.apache.torque.task
Class TorqueDataSQLTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.velocity.texen.ant.TexenTask
              extended byorg.apache.torque.task.TorqueDataModelTask
                  extended byorg.apache.torque.task.TorqueDataSQLTask
All Implemented Interfaces:
java.lang.Cloneable

public class TorqueDataSQLTask
extends TorqueDataModelTask

An extended Texen task used for generating SQL source from an XML data file

Version:
$Id: TorqueDataSQLTask.java,v 1.5.2.2 2004/05/20 04:35:14 seade Exp $
Author:
Jason van Zyl , John McNally , Fedor Karpelevitch , Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.torque.task.TorqueDataModelTask
context, databaseNames, dataModelDbMap, dataModels, filesets, sqldbmap, xmlFile
 
Fields inherited from class org.apache.velocity.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
TorqueDataSQLTask()
           
 
Method Summary
 java.lang.String getDataDTD()
          Gets the DataDTD attribute of the TorqueDataSQLTask object
 java.lang.String getDataXmlFile()
          Gets the DataXmlFile attribute of the TorqueDataSQLTask object
 java.lang.String getTargetDatabase()
          Get the current target database.
 org.apache.velocity.context.Context initControlContext()
          Set up the initial context for generating the SQL from the XML schema.
 void setDataDTD(java.lang.String dataDTD)
          Sets the DataDTD attribute of the TorqueDataSQLTask object
 void setDataXmlFile(java.lang.String dataXmlFile)
          Sets the DataXmlFile attribute of the TorqueDataSQLTask object
 void setTargetDatabase(java.lang.String v)
          Set the current target database.
 
Methods inherited from class org.apache.torque.task.TorqueDataModelTask
addFileset, getBasePathToDbProps, getDataModelDbMap, getDataModels, getSqlDbMap, getTargetPackage, getXmlFile, setBasePathToDbProps, setContextProperties, setSqlDbMap, setTargetPackage, setXmlFile
 
Methods inherited from class org.apache.velocity.texen.ant.TexenTask
cleanup, execute, getContextProperties, getControlTemplate, getLogFile, getOutputDirectory, getOutputFile, getTemplatePath, populateInitialContext, 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

TorqueDataSQLTask

public TorqueDataSQLTask()
Method Detail

setDataXmlFile

public void setDataXmlFile(java.lang.String dataXmlFile)
Sets the DataXmlFile attribute of the TorqueDataSQLTask object

Parameters:
dataXmlFile - The new DataXmlFile value

getDataXmlFile

public java.lang.String getDataXmlFile()
Gets the DataXmlFile attribute of the TorqueDataSQLTask object

Returns:
The DataXmlFile value

getTargetDatabase

public java.lang.String getTargetDatabase()
Get the current target database.

Overrides:
getTargetDatabase in class TorqueDataModelTask
Returns:
String target database(s)

setTargetDatabase

public void setTargetDatabase(java.lang.String v)
Set the current target database. This is where generated java classes will live.

Overrides:
setTargetDatabase in class TorqueDataModelTask
Parameters:
v - The new TargetDatabase value

getDataDTD

public java.lang.String getDataDTD()
Gets the DataDTD attribute of the TorqueDataSQLTask object

Returns:
The DataDTD value

setDataDTD

public void setDataDTD(java.lang.String dataDTD)
Sets the DataDTD attribute of the TorqueDataSQLTask object

Parameters:
dataDTD - The new DataDTD value

initControlContext

public org.apache.velocity.context.Context initControlContext()
                                                       throws java.lang.Exception
Set up the initial context for generating the SQL from the XML schema.

Overrides:
initControlContext in class TorqueDataModelTask
Returns:
the context
Throws:
java.lang.Exception - If there is an error parsing the data xml.


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.