|
||||||||||
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.cayenne.tools.CayenneTask
org.apache.cayenne.tools.CayenneGeneratorTask
public class CayenneGeneratorTask
An Ant task to perform class generation based on CayenneDataMap.
Field Summary | |
---|---|
protected File[] |
additionalMaps
|
protected boolean |
client
|
protected File |
destDir
|
protected String |
embeddablesupertemplate
|
protected String |
embeddabletemplate
|
protected String |
encoding
|
protected String |
excludeEntitiesPattern
|
protected String |
includeEntitiesPattern
|
protected boolean |
makepairs
|
protected File |
map
|
protected String |
mode
|
protected String |
outputPattern
|
protected boolean |
overwrite
|
protected String |
superpkg
|
protected String |
supertemplate
|
protected String |
template
|
protected boolean |
usepkgpath
|
protected String |
version
Deprecated. since 3.0 |
protected foundrylogic.vpp.VPPConfig |
vppConfig
|
Fields inherited from class org.apache.cayenne.tools.CayenneTask |
---|
classpath |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
CayenneGeneratorTask()
|
Method Summary | |
---|---|
Object |
createConfig()
Provides a VPPConfig object to configure. |
protected DefaultClassGenerator |
createGenerator()
Deprecated. since 3.0. Use createGeneratorAction() . |
protected ClassGenerationAction |
createGeneratorAction()
|
void |
execute()
Executes the task. |
protected org.apache.velocity.VelocityContext |
getVppContext()
|
void |
setAdditionalMaps(org.apache.tools.ant.types.Path additionalMapsPath)
Sets the additional DataMaps. |
void |
setClient(boolean client)
Sets client property. |
void |
setDestDir(File destDir)
Sets the destDir. |
void |
setEmbeddablesupertemplate(String embeddablesupertemplate)
|
void |
setEmbeddabletemplate(String embeddabletemplate)
|
void |
setEncoding(String encoding)
Sets encoding property that allows to generate files using
non-default encoding. |
void |
setExcludeEntities(String excludeEntitiesPattern)
Sets excludeEntitiesPattern property. |
void |
setIncludeEntities(String includeEntitiesPattern)
Sets includeEntitiesPattern property. |
void |
setMakepairs(boolean makepairs)
Sets makepairs property. |
void |
setMap(File map)
Sets the map. |
void |
setMode(String mode)
Sets mode property. |
void |
setOutputPattern(String outputPattern)
Sets outputPattern property. |
void |
setOverwrite(boolean overwrite)
Sets overwrite property. |
void |
setSuperpkg(String superpkg)
Sets superpkg property. |
void |
setSupertemplate(String supertemplate)
Sets supertemplate property. |
void |
setTemplate(String template)
Sets template property. |
void |
setUsepkgpath(boolean usepkgpath)
Sets usepkgpath property. |
void |
setVersion(String version)
Deprecated. since 3.0 |
protected void |
validateAttributes()
Validates attributes that are not related to internal DefaultClassGenerator. |
Methods inherited from class org.apache.cayenne.tools.CayenneTask |
---|
setClasspath, setClasspathRef |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String includeEntitiesPattern
protected String excludeEntitiesPattern
protected foundrylogic.vpp.VPPConfig vppConfig
protected File map
protected File[] additionalMaps
protected boolean client
protected File destDir
protected String encoding
protected boolean makepairs
protected String mode
protected String outputPattern
protected boolean overwrite
protected String superpkg
protected String supertemplate
protected String template
protected String embeddabletemplate
protected String embeddablesupertemplate
protected boolean usepkgpath
protected String version
Constructor Detail |
---|
public CayenneGeneratorTask()
Method Detail |
---|
protected org.apache.velocity.VelocityContext getVppContext()
protected ClassGenerationAction createGeneratorAction()
protected DefaultClassGenerator createGenerator()
createGeneratorAction()
.
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void validateAttributes() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setMap(File map)
map
- The map to setpublic void setAdditionalMaps(org.apache.tools.ant.types.Path additionalMapsPath)
additionalMapsPath
- The additional DataMaps to setpublic void setDestDir(File destDir)
public void setOverwrite(boolean overwrite)
overwrite
property.
public void setMakepairs(boolean makepairs)
makepairs
property.
public void setTemplate(String template)
template
property.
public void setSupertemplate(String supertemplate)
supertemplate
property.
public void setUsepkgpath(boolean usepkgpath)
usepkgpath
property.
public void setSuperpkg(String superpkg)
superpkg
property.
public void setClient(boolean client)
client
property.
public void setVersion(String version)
version
property.
public void setEncoding(String encoding)
encoding
property that allows to generate files using
non-default encoding.
public void setExcludeEntities(String excludeEntitiesPattern)
excludeEntitiesPattern
property.
public void setIncludeEntities(String includeEntitiesPattern)
includeEntitiesPattern
property.
public void setOutputPattern(String outputPattern)
outputPattern
property.
public void setMode(String mode)
mode
property.
public void setEmbeddabletemplate(String embeddabletemplate)
public void setEmbeddablesupertemplate(String embeddablesupertemplate)
public Object createConfig()
VPPConfig
object to configure. (Written with
createConfig() instead of addConfig() to avoid run-time dependency on VPP).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |