org.apache.turbine.torque
Class TorqueSQLTask

org.apache.turbine.torque.TorqueSQLTask

public class TorqueSQLTask

An extended Texen task used for generating SQL source from an XML schema describing a database structure.

Version:
$Id$
Author:
Jason van Zyl,
Field Summary
private  AppData app
          Application model.
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
TorqueSQLTask()
           
 
Method Summary
 java.lang.String getTargetDatabase()
          Get the current target package.
 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 setTargetDatabase(java.lang.String v)
          Set the current target package.
 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.

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.
Constructor Detail

TorqueSQLTask

public TorqueSQLTask()
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:
String - xml schema file.

getTargetDatabase

public java.lang.String getTargetDatabase()
Get the current target package.
Returns:
String target database(s)

setTargetDatabase

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

initControlContext

public org.apache.velocity.context.Context initControlContext()
Set up the initialial context for generating the SQL from the XML schema.


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