|
||||||||||
| 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.CayenneGenerator
public class CayenneGenerator
Ant task to perform class generation from data map. This class is an Ant adapter to DefaultClassGenerator class.
| Field Summary | |
|---|---|
protected File[] |
additionalMaps
|
protected String |
excludeEntitiesPattern
|
protected DefaultClassGenerator |
generator
|
protected org.apache.cayenne.tools.CayenneGeneratorUtil |
generatorUtil
|
protected String |
includeEntitiesPattern
|
protected File |
map
|
protected foundrylogic.vpp.VPPConfig |
vppConfig
|
| 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 | |
|---|---|
CayenneGenerator()
|
|
| Method Summary | |
|---|---|
Object |
createConfig()
Provides a VPPConfig object to configure. |
protected DefaultClassGenerator |
createGenerator()
Factory method to create internal class generator. |
void |
execute()
Executes the task. |
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 |
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 versionString)
Sets version property. |
protected void |
validateAttributes()
Validates atttributes that are not related to internal DefaultClassGenerator. |
| 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 DefaultClassGenerator generator
protected org.apache.cayenne.tools.CayenneGeneratorUtil generatorUtil
| Constructor Detail |
|---|
public CayenneGenerator()
| Method Detail |
|---|
protected DefaultClassGenerator createGenerator()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
protected void validateAttributes()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic 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 versionString)
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 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 | |||||||||