|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.castor.anttask.CastorDDLGenTask
public final class CastorDDLGenTask
An Ant task to call the Castor DDL Generator. It can be passed a file, a directory, a Fileset or all three.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
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 | |
---|---|
CastorDDLGenTask()
|
Method Summary | |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a fileset to process that contains schemas to process. |
void |
execute()
Public execute method -- entry point for the Ant task. |
void |
setDatabaseEngine(java.lang.String databaseEngine)
Specifies the name of database engine to generate DDL for. |
void |
setDatabaseEngineProperties(java.lang.String databaseEngineProperties)
Specifies the name of a database specific properties file to be used during DDL generation. |
void |
setDdlFileName(java.lang.String ddlFileName)
Specifies the name of the DDL file to be generated. |
void |
setDir(java.io.File dir)
Sets the directory such that all schemas in this directory will have code generated for them. |
void |
setFile(java.io.File file)
Sets the individual schema that will have code generated for it. |
void |
setGlobalProperties(java.lang.String globalProperties)
Specifies the name of a global properties file to be used during DDL generation. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CastorDDLGenTask()
Method Detail |
---|
public void setFile(java.io.File file)
file
- One schema file.public void setDir(java.io.File dir)
dir
- The directory containing schemas to process.public void addFileset(org.apache.tools.ant.types.FileSet set)
set
- An individual file set containing schemas.public void setDatabaseEngine(java.lang.String databaseEngine)
databaseEngine
- Name of the database enginepublic void setDatabaseEngineProperties(java.lang.String databaseEngineProperties)
databaseEngineProperties
- Database specific propertiespublic void setDdlFileName(java.lang.String ddlFileName)
ddlFileName
- Name of the DDL file to be generatedpublic void setGlobalProperties(java.lang.String globalProperties)
globalProperties
- Custom global properties for DDL generation.public void execute()
execute
in class org.apache.tools.ant.Task
Task.execute()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |