org.apache.turbine.torque
Class TorqueDataSQLTask

org.apache.turbine.torque.TorqueDataSQLTask

public class TorqueDataSQLTask

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

Version:
$Id$
Author:
Jason van Zyl , John McNally , Fedor Karpelevitch

Field Summary
private  AppData app
          Application model.
private  java.lang.String databaseName
           
private  java.lang.String dataDTD
           
private  java.lang.String dataXmlFile
           
private  java.lang.String targetDatabase
          The target database(s) we are generating SQL for.
private  java.lang.String xmlFile
          XML that describes the database model, this is transformed into the application model object.
 
Constructor Summary
TorqueDataSQLTask()
           
 
Method Summary
 java.lang.String getDatabaseName()
          Gets the DatabaseName attribute of the TorqueDataSQLTask object
 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.
 java.lang.String getXmlFile()
          Get the xml schema describing the application model.
 org.apache.velocity.context.Context initControlContext()
          Set up the initialial context for generating the SQL from the XML schema.
 void setDatabaseName(java.lang.String v)
          Sets the DatabaseName attribute of the TorqueDataSQLTask object
 void setDataDTD(java.lang.String v)
          Sets the DataDTD attribute of the TorqueDataSQLTask object
 void setDataXmlFile(java.lang.String v)
          Sets the DataXmlFile attribute of the TorqueDataSQLTask object
 void setTargetDatabase(java.lang.String v)
          Set the current target database.
 void setXmlFile(java.lang.String v)
          Set the xml schema describing the application model.
 

Field Detail

app

private AppData app
Application model. In this case a database model.

xmlFile

private java.lang.String xmlFile
XML that describes the database model, this is transformed into the application model object.

dataXmlFile

private java.lang.String dataXmlFile

dataDTD

private java.lang.String dataDTD

targetDatabase

private java.lang.String targetDatabase
The target database(s) we are generating SQL for. Right now we can only deal with a single target, but we will support multiple targets soon.

databaseName

private java.lang.String databaseName
Constructor Detail

TorqueDataSQLTask

public TorqueDataSQLTask()
Method Detail

getXmlFile

public java.lang.String getXmlFile()
Get the xml schema describing the application model.
Returns:
String xml schema file.

setXmlFile

public void setXmlFile(java.lang.String v)
Set the xml schema describing the application model.
Parameters:
v - The new XmlFile value

setDataXmlFile

public void setDataXmlFile(java.lang.String v)
Sets the DataXmlFile attribute of the TorqueDataSQLTask object
Parameters:
v - 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.
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.
Parameters:
v - The new TargetDatabase value

getDatabaseName

public java.lang.String getDatabaseName()
Gets the DatabaseName attribute of the TorqueDataSQLTask object
Returns:
The DatabaseName value

setDatabaseName

public void setDatabaseName(java.lang.String v)
Sets the DatabaseName attribute of the TorqueDataSQLTask object
Parameters:
v - The new DatabaseName 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 v)
Sets the DataDTD attribute of the TorqueDataSQLTask object
Parameters:
v - The new DataDTD value

initControlContext

public org.apache.velocity.context.Context initControlContext()
Set up the initialial context for generating the SQL from the XML schema.
Returns:
Description of the Returned Value


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.