|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.velocity.texen.ant.TexenTask
org.asyrinx.joey.gen.task.DataModelTask
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.
フィールドの概要 | |
protected org.apache.velocity.context.Context |
context
Velocity context which exposes our objects in the templates. |
protected java.util.List |
filesets
Fileset of XML schemas which represent our data models. |
protected java.lang.String |
xmlFile
XML that describes the database model, this is transformed into the application model object. |
クラス org.apache.velocity.texen.ant.TexenTask から継承したフィールド |
contextProperties, controlTemplate, inputEncoding, outputDirectory, outputEncoding, outputFile, templatePath, useClasspath |
クラス org.apache.tools.ant.Task から継承したフィールド |
description, location, target, taskName, taskType, wrapper |
クラス org.apache.tools.ant.ProjectComponent から継承したフィールド |
project |
コンストラクタの概要 | |
DataModelTask()
|
メソッドの概要 | |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of xml schema files (nested fileset attribute). |
java.lang.String |
getBuilderClassName()
|
java.lang.String |
getXmlFile()
Get the xml schema describing the application model. |
org.apache.velocity.context.Context |
initControlContext()
Set up the initial context for generating the SQL from the XML schema. |
protected Databases |
loadModelXmlFile(java.lang.String filename)
|
protected Rdb2JavaBuilder |
newBuilder()
|
void |
setBuilderClassName(java.lang.String builderClassName)
|
void |
setContextProperties(java.lang.String file)
Override Texen's context properties to map the torque.xxx properties (including defaults set by the org/apache/torque/defaults.properties) to just xxx. |
void |
setXmlFile(java.lang.String xmlFile)
Set the xml schema describing the application model. |
クラス org.apache.velocity.texen.ant.TexenTask から継承したメソッド |
cleanup, execute, getContextProperties, getControlTemplate, getOutputDirectory, getOutputFile, getTemplatePath, populateInitialContext, setControlTemplate, setInputEncoding, setOutputDirectory, setOutputEncoding, setOutputFile, setTemplatePath, setUseClasspath |
クラス org.apache.tools.ant.Task から継承したメソッド |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
クラス org.apache.tools.ant.ProjectComponent から継承したメソッド |
getProject, setProject |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected java.lang.String xmlFile
protected java.util.List filesets
protected org.apache.velocity.context.Context context
コンストラクタの詳細 |
public DataModelTask()
メソッドの詳細 |
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)
set
- a Set of xml schema filespublic org.apache.velocity.context.Context initControlContext() throws java.lang.Exception
java.lang.Exception
protected Databases loadModelXmlFile(java.lang.String filename) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void setContextProperties(java.lang.String file)
Also, move xxx.yyy properties to xxxYyy as Velocity doesn't like the xxx.yyy syntax.
file
- the file to read the properties frompublic java.lang.String getBuilderClassName()
public void setBuilderClassName(java.lang.String builderClassName)
builderClassName
- The builderClassName to set.protected Rdb2JavaBuilder newBuilder() throws java.lang.InstantiationException
java.lang.InstantiationException
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |