public class EntityConfig extends Object implements CacheConfigGetter
Constructor and Description |
---|
EntityConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addColumnConfig(ColumnConfig columnConfig) |
boolean |
atLeastOneColumnConfigIsIndexed() |
void |
forceImplementsInterfacesToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
void |
forceUsagesToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
AssociationDirection |
getAssociationDirection()
It is pertinent only if this entity's table plays the role of a middle table in a many-to-many association.
|
CacheConfig |
getCacheConfig()
The 2d level cache configuration for this entity.
|
CollectionType |
getCollectionType()
You can override the default collection type for this entity
|
Map<String,ColumnConfig> |
getColumnConfigByColumnName() |
ColumnConfig |
getColumnConfigByColumnName(String columnName) |
ColumnConfig |
getColumnConfigByFieldName(String fieldName) |
List<ColumnConfig> |
getColumnConfigs()
This entity's columnConfigs.
|
String |
getComment()
The comment that will be inserted in this entity's JavaDoc.
|
String |
getCommentAsJavadoc() |
String |
getCommentAsJavadoc(String prepend) |
List<CustomAnnotation> |
getCustomAnnotations()
List of custom annotations to apply on this entity.
|
String |
getEntityName()
The JPA entity's type.
|
ExtendsClass |
getExtendsClass()
Specify the base class that this entity should extends.
|
List<ImplementsInterface> |
getImplementsInterfaces()
Specify the extra interfaces that this entity should implement.
|
Boolean |
getIndexed()
Should this entity be annotated with hibernate search @Indexed annotation?
|
Inheritance |
getInheritance()
Inheritance configuration.
|
String |
getLabel()
The base label for this entity.
|
List<Label> |
getLabels()
The labels for this entity.
|
List<MetaAttribute> |
getMetaAttributes()
Meta attributes are free form key value pairs.
|
Boolean |
getMiddleTable()
By convention a table is considered as a many-to-many middle table if it has two foreign keys and no other regular columns.
|
String |
getParentEntityName() |
String |
getRootPackage()
Allows you to override the default root package.
|
String |
getSequenceName()
Allows you to specify the sequence name to use in order to generate this entity pk value.
|
String |
getSubPackage()
When you define a sub-package, the resulting entity's package becomes "
|
String |
getTableName()
The underlying table name for the entity.
|
List<String> |
getUsages()
Free parameters.
|
boolean |
hasCollectionType() |
boolean |
hasColumnConfigs() |
boolean |
hasComment() |
boolean |
hasEntityName() |
boolean |
hasExtendsClass() |
boolean |
hasImplementsInterfaces() |
boolean |
hasInheritance() |
boolean |
hasMiddleTable() |
boolean |
hasParentEntityName() |
boolean |
hasSequenceName() |
boolean |
hasTableName() |
boolean |
hasTrueIndexed() |
boolean |
is(InheritanceType strategy) |
void |
setAssociationDirection(AssociationDirection associationDirection) |
void |
setCacheConfig(CacheConfig cacheConfig) |
void |
setCollectionType(CollectionType collectionType) |
void |
setColumnConfigByColumnName(Map<String,ColumnConfig> columnConfigByColumnName) |
void |
setColumnConfigs(List<ColumnConfig> columnConfigs) |
void |
setComment(String comment) |
void |
setCustomAnnotations(List<CustomAnnotation> customAnnotations) |
void |
setEntityName(String entityName) |
void |
setExtendsClass(ExtendsClass extendsClass) |
void |
setImplementsInterfaces(List<ImplementsInterface> implementsInterfaces) |
void |
setIndexed(Boolean indexed) |
void |
setInheritance(Inheritance inheritance) |
void |
setLabel(String label) |
void |
setLabels(List<Label> labels) |
void |
setLog(Log log) |
void |
setMetaAttributes(List<MetaAttribute> metaAttributes) |
void |
setMiddleTable(Boolean middleTable) |
void |
setRootPackage(String rootPackage) |
void |
setSequenceName(String sequenceName) |
void |
setSubPackage(String subPackage) |
void |
setTableName(String tableName) |
void |
setUsages(List<String> usages) |
String |
toString() |
boolean |
useFormFieldConfig() |
boolean |
useSearchFieldConfig() |
boolean |
useSearchResultConfig() |
public CacheConfig getCacheConfig()
getCacheConfig
in interface CacheConfigGetter
public void forceUsagesToNullIfEmpty()
public void forceImplementsInterfacesToNullIfEmpty()
public String getEntityName()
public boolean hasEntityName()
public String getSequenceName()
public boolean hasSequenceName()
public String getTableName()
public boolean hasTableName()
public Boolean getIndexed()
public boolean hasTrueIndexed()
public List<Label> getLabels()
public boolean atLeastOneColumnConfigIsIndexed()
public Boolean getMiddleTable()
public boolean hasMiddleTable()
public String getComment()
public String getCommentAsJavadoc()
public boolean hasComment()
public String getRootPackage()
public String getSubPackage()
public String getLabel()
public AssociationDirection getAssociationDirection()
public Inheritance getInheritance()
public boolean hasInheritance()
public boolean hasParentEntityName()
public String getParentEntityName()
public CollectionType getCollectionType()
public boolean hasCollectionType()
public ExtendsClass getExtendsClass()
public boolean hasExtendsClass()
public List<ImplementsInterface> getImplementsInterfaces()
public boolean hasImplementsInterfaces()
public List<MetaAttribute> getMetaAttributes()
public List<ColumnConfig> getColumnConfigs()
public boolean hasColumnConfigs()
public void setColumnConfigs(List<ColumnConfig> columnConfigs)
public void addColumnConfig(ColumnConfig columnConfig)
public ColumnConfig getColumnConfigByColumnName(String columnName)
public ColumnConfig getColumnConfigByFieldName(String fieldName)
public List<CustomAnnotation> getCustomAnnotations()
public void setCustomAnnotations(List<CustomAnnotation> customAnnotations)
public Map<String,ColumnConfig> getColumnConfigByColumnName()
public boolean is(InheritanceType strategy)
public boolean useSearchResultConfig()
public boolean useSearchFieldConfig()
public boolean useFormFieldConfig()
public void setLog(Log log)
public void setEntityName(String entityName)
public void setTableName(String tableName)
public void setSequenceName(String sequenceName)
public void setIndexed(Boolean indexed)
public void setMiddleTable(Boolean middleTable)
public void setComment(String comment)
public void setRootPackage(String rootPackage)
public void setSubPackage(String subPackage)
public void setLabel(String label)
public void setAssociationDirection(AssociationDirection associationDirection)
public void setCacheConfig(CacheConfig cacheConfig)
public void setInheritance(Inheritance inheritance)
public void setCollectionType(CollectionType collectionType)
public void setExtendsClass(ExtendsClass extendsClass)
public void setImplementsInterfaces(List<ImplementsInterface> implementsInterfaces)
public void setMetaAttributes(List<MetaAttribute> metaAttributes)
public void setColumnConfigByColumnName(Map<String,ColumnConfig> columnConfigByColumnName)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.