public class CayenneGeneratorTask extends CayenneTask
| Modifier and Type | Field and Description |
|---|---|
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 |
querysupertemplate |
protected String |
querytemplate |
protected String |
superpkg |
protected String |
supertemplate |
protected String |
template |
protected boolean |
usepkgpath |
protected foundrylogic.vpp.VPPConfig |
vppConfig |
| Constructor and Description |
|---|
CayenneGeneratorTask() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createConfig()
Provides a
VPPConfig object to configure. |
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 |
setQuerySupertemplate(String querysupertemplate)
Sets
querysupertemplate property. |
void |
setQueryTemplate(String querytemplate)
Sets
querytemplate 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. |
protected void |
validateAttributes()
Validates attributes that are not related to internal DefaultClassGenerator.
|
getAdapter, loadDataMap, setAdapter, setClasspath, setClasspathRef, setDriver, setPassword, setUrl, setUserNamebindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected 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 String querytemplate
protected String querysupertemplate
protected boolean usepkgpath
protected org.apache.velocity.VelocityContext getVppContext()
protected ClassGenerationAction createGeneratorAction()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void validateAttributes()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic void setMap(File map)
setMap in class CayenneTaskmap - 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 setQueryTemplate(String querytemplate)
querytemplate property.public void setQuerySupertemplate(String querysupertemplate)
querysupertemplate property.public void setUsepkgpath(boolean usepkgpath)
usepkgpath property.public void setSuperpkg(String superpkg)
superpkg property.public void setClient(boolean client)
client 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).Copyright © 2001–2015 Apache Cayenne. All rights reserved.