public class Configuration extends Object
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
void |
addFilename(Pattern filenamePattern) |
void |
addPack(Pack pack) |
void |
addTemplate(Pattern templatePattern) |
String |
getApplicationName()
Specify the default application name that is used in the generated pom.xml.
|
AssociationDirection |
getAssociationDirection()
Choose the default association direction
|
CelerioTemplateContext |
getCelerioTemplateContext()
Entry point to extend Celerio engine's Velocity context.
|
Conventions |
getConventions()
Configure the java convention such as classnames, packages, methods
|
List<String> |
getCustomModules()
List of custom modules enabled during the generation.
|
List<DateMapping> |
getDateMappings()
The list of date mappings.
|
CacheConfig |
getDefaultEntityCacheConfig()
Default Entity 2d level cache configuration.
|
ManyToManyConfig |
getDefaultInverseManyToManyConfig()
Default inverse many-to-many configuration allowing you to configure FetchType, Cascade and Cache globally.
|
OneToOneConfig |
getDefaultInverseOneToOneConfig()
Default inverse one-to-one configuration allowing you to configure FetchType, Cascade and Cache globally.
|
ManyToManyConfig |
getDefaultManyToManyConfig()
Default many-to-many configuration allowing you to configure FetchType, Cascade and Cache globally.
|
ManyToOneConfig |
getDefaultManyToOneConfig()
Default many-to-one configuration allowing you to configure FetchType, Cascade and Cache globally.
|
OneToManyConfig |
getDefaultOneToManyConfig()
Default one-to-many configuration allowing you to configure FetchType, Cascade and Cache globally.
|
OneToOneConfig |
getDefaultOneToOneConfig()
Default one-to-one configuration allowing you to configure FetchType, Cascade and Cache globally.
|
Boolean |
getEnableOneToVirtualOne()
Enable one to virtual one, which is a one to one that uses a Collection.
|
List<Pattern> |
getFilenames()
Control the generation output by filtering the generated files based on their filename.
|
Generation |
getGeneration()
Miscellaneous generation configuration
|
HeaderComment |
getHeaderComment()
The JDBC settings enabling Celerio to retrieve your database meta data.
|
JodaTime |
getJodaTime()
Configure the Hibernate type to use when mapping an attribute whose type is LocalDate or LocalDateTime.
|
List<MetaAttribute> |
getMetaAttributes()
For future use
|
List<Module> |
getModules()
List of modules enabled during the generation.
|
List<NumberMapping> |
getNumberMappings()
The list of number mappings.
|
Pack |
getPackByName(String name) |
List<Pack> |
getPacks()
List of template packs to execute during the generation.
|
Restriction |
getRestriction()
Restrict the generation to the given elements
|
String |
getRootPackage()
Specify the default root package for all the generated java code
Example: com.mycompany |
List<SequencePattern> |
getSequences()
Defines sequence names based on table name
|
List<Pattern> |
getTables()
Filter the tables you want to be generated
|
List<Pattern> |
getTemplates()
Control the generation output by filtering the execution of the generation templates based on their filename.
|
boolean |
has(Module module) |
boolean |
hasFilename(String value) |
boolean |
hasFilename(String packName,
String value) |
boolean |
hasJodaTime() |
boolean |
hasModule(Module module) |
boolean |
hasModule(String moduleName) |
boolean |
hasPack(String name) |
boolean |
hasTable(String value) |
boolean |
hasTemplate(String packName,
String templateName) |
boolean |
isPackEnabled(String packName) |
void |
setApplicationName(String applicationName) |
void |
setAssociationDirection(AssociationDirection associationDirection) |
void |
setCelerioTemplateContext(CelerioTemplateContext velocityContext) |
void |
setConventions(Conventions conventions) |
void |
setCustomModules(List<String> customModules) |
void |
setDateMappings(List<DateMapping> dateMappings) |
void |
setDefaultEntityCacheConfig(CacheConfig defaultEntityCacheConfig) |
void |
setDefaultInverseManyToManyConfig(ManyToManyConfig defaultInverseManyToManyConfig) |
void |
setDefaultInverseOneToOneConfig(OneToOneConfig defaultInverseOneToOneConfig) |
void |
setDefaultManyToManyConfig(ManyToManyConfig defaultManyToManyConfig) |
void |
setDefaultManyToOneConfig(ManyToOneConfig defaultManyToOneConfig) |
void |
setDefaultOneToManyConfig(OneToManyConfig defaultOneToManyConfig) |
void |
setDefaultOneToOneConfig(OneToOneConfig defaultOneToOneConfig) |
void |
setFilenames(List<Pattern> filenames) |
void |
setGeneration(Generation generation) |
void |
setHeaderComment(HeaderComment headerComment) |
void |
setJodaTime(JodaTime jodaTime) |
void |
setMetaAttributes(List<MetaAttribute> metaAttributes) |
void |
setModules(List<Module> modules) |
void |
setNumberMappings(List<NumberMapping> numberMappings) |
void |
setPacks(List<Pack> packs) |
void |
setRestriction(Restriction restriction) |
void |
setRootPackage(String rootPackage) |
void |
setSequences(List<SequencePattern> sequences) |
void |
setTables(List<Pattern> tables) |
void |
setTemplates(List<Pattern> templates) |
String |
toApplicationNameUp() |
String |
toArtifactId(String moduleShortName) |
String |
toInitialVersion() |
String |
toModule(String moduleName) |
String |
toModulePath(String module1) |
String |
toModulePath(String module1,
String module2) |
String |
toModulePath(String module1,
String module2,
String module3) |
String |
toName(String shortName) |
public void setCelerioTemplateContext(CelerioTemplateContext velocityContext)
public CelerioTemplateContext getCelerioTemplateContext()
public List<Pack> getPacks()
public void addPack(Pack pack)
public boolean isPackEnabled(String packName)
public boolean hasPack(String name)
public List<Module> getModules()
public boolean hasModule(Module module)
public boolean hasModule(String moduleName)
public List<String> getCustomModules()
public List<Pattern> getFilenames()
public void addFilename(Pattern filenamePattern)
public boolean hasFilename(String value)
public List<Pattern> getTemplates()
public void addTemplate(Pattern templatePattern)
public boolean hasTable(String value)
public List<SequencePattern> getSequences()
public void setSequences(List<SequencePattern> sequences)
public List<NumberMapping> getNumberMappings()
public void setNumberMappings(List<NumberMapping> numberMappings)
public List<DateMapping> getDateMappings()
public void setDateMappings(List<DateMapping> dateMappings)
public void setDefaultEntityCacheConfig(CacheConfig defaultEntityCacheConfig)
public CacheConfig getDefaultEntityCacheConfig()
public void setDefaultManyToOneConfig(ManyToOneConfig defaultManyToOneConfig)
public ManyToOneConfig getDefaultManyToOneConfig()
public void setDefaultOneToManyConfig(OneToManyConfig defaultOneToManyConfig)
public OneToManyConfig getDefaultOneToManyConfig()
public void setDefaultOneToOneConfig(OneToOneConfig defaultOneToOneConfig)
public OneToOneConfig getDefaultOneToOneConfig()
public void setDefaultInverseOneToOneConfig(OneToOneConfig defaultInverseOneToOneConfig)
public OneToOneConfig getDefaultInverseOneToOneConfig()
public void setDefaultManyToManyConfig(ManyToManyConfig defaultManyToManyConfig)
public ManyToManyConfig getDefaultManyToManyConfig()
public void setDefaultInverseManyToManyConfig(ManyToManyConfig defaultInverseManyToManyConfig)
public ManyToManyConfig getDefaultInverseManyToManyConfig()
public boolean hasJodaTime()
public JodaTime getJodaTime()
public void setJodaTime(JodaTime jodaTime)
public Conventions getConventions()
public void setConventions(Conventions conventions)
public List<MetaAttribute> getMetaAttributes()
public void setMetaAttributes(List<MetaAttribute> metaAttributes)
public Generation getGeneration()
public void setGeneration(Generation generation)
public AssociationDirection getAssociationDirection()
public void setAssociationDirection(AssociationDirection associationDirection)
public Boolean getEnableOneToVirtualOne()
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getRootPackage()
public boolean has(Module module)
public HeaderComment getHeaderComment()
public void setHeaderComment(HeaderComment headerComment)
public Restriction getRestriction()
public void setRestriction(Restriction restriction)
public String toInitialVersion()
public String toApplicationNameUp()
public void setRootPackage(String rootPackage)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.