|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.apache.turbine.torque.TorqueDataModelTask
A base torque task that uses either a single XML schema representing a data model, or a <fileset> of XML schemas. We are making the assumption that an XML schema representing a data model contains tables for a single database.
Field Summary | |
protected org.apache.velocity.context.Context |
context
Deprecated. Velocity context which exposes our objects in the templates. |
protected java.util.Hashtable |
databaseNames
Deprecated. Hashtable containing the names of all the databases in our collection of schemas. |
protected java.util.Hashtable |
dataModelDbMap
Deprecated. Map of data model name to database name. |
protected java.util.Vector |
dataModels
Deprecated. Data models that we collect. |
protected java.util.Vector |
filesets
Deprecated. Fileset of XML schemas which represent our data models. |
protected java.lang.String |
sqldbmap
Deprecated. Name of the properties file that maps an SQL file to a particular database. |
protected java.lang.String |
xmlFile
Deprecated. XML that describes the database model, this is transformed into the application model object. |
Constructor Summary | |
TorqueDataModelTask()
Deprecated. |
Method Summary | |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Deprecated. Adds a set of files (nested fileset attribute). |
java.util.Hashtable |
getDataModelDbMap()
Deprecated. Return the data model to database name map. |
java.util.Vector |
getDataModels()
Deprecated. Return the data models that have been processed. |
java.lang.String |
getSqlDbMap()
Deprecated. Get the sqldbmap. |
java.lang.String |
getXmlFile()
Deprecated. Get the xml schema describing the application model. |
private java.lang.String |
grokName(java.lang.String xmlFile)
Deprecated. Gets a name to use for the application's data model. |
org.apache.velocity.context.Context |
initControlContext()
Deprecated. Set up the initialial context for generating the SQL from the XML schema. |
void |
setSqlDbMap(java.lang.String sqldbmap)
Deprecated. Set the sqldbmap. |
void |
setXmlFile(java.lang.String xmlFile)
Deprecated. Set the xml schema describing the application model. |
Field Detail |
protected java.lang.String xmlFile
protected java.util.Vector filesets
protected java.util.Vector dataModels
protected org.apache.velocity.context.Context context
protected java.util.Hashtable dataModelDbMap
protected java.util.Hashtable databaseNames
protected java.lang.String sqldbmap
Constructor Detail |
public TorqueDataModelTask()
Method Detail |
public void setSqlDbMap(java.lang.String sqldbmap)
String
- sqldbmappublic java.lang.String getSqlDbMap()
public java.util.Vector getDataModels()
public java.util.Hashtable getDataModelDbMap()
public java.lang.String getXmlFile()
public void setXmlFile(java.lang.String xmlFile)
xmlFile
- The new XmlFile valuepublic void addFileset(org.apache.tools.ant.types.FileSet set)
public org.apache.velocity.context.Context initControlContext() throws java.lang.Exception
private java.lang.String grokName(java.lang.String xmlFile)
xmlFile
- The path to the XML file housing the data model.AppData
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |