public class ColumnConfig extends Object
Modifier and Type | Field and Description |
---|---|
static |
FORM_FIELD |
static |
SEARCH_FIELD |
static |
SEARCH_RESULT |
Constructor and Description |
---|
ColumnConfig() |
Modifier and Type | Method and Description |
---|---|
void |
forceCustomAnnotationsToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
void |
forceUsagesToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
AssociationDirection |
getAssociationDirection()
If this column represents an importedKey, should it be bidirectionnal or unidirectionnal
|
Boolean |
getAsTransient()
Allows you to override the getter in a sub-class that extends the base entity.
|
Boolean |
getAutoIncrement()
Override the autoIncrement value defined in the Metadata.
|
Boolean |
getBusinessKey()
Indicates if this property is part of the entity business key.
|
String |
getColumnName()
The mandatory column name.
|
String |
getComment()
Override the comment defined in the Metadata.
|
List<CustomAnnotation> |
getCustomAnnotations()
List of custom annotations to apply on this property.
|
Integer |
getDecimalDigits()
Override the column decimal digits defined in the Metadata.
|
String |
getDefaultValue()
Override the default value defined in the Metadata.
|
Integer |
getDisplayOrder()
The order of appearance of this column in forms, from top to bottom and in search results, from left to right.
|
Boolean |
getEnableOneToVirtualOne()
If this column represents an importedKey, and the column is unique, should the one to one be handled via a collection ?
|
EnumConfig |
getEnumConfig()
Specify the enum config to map this column to a Java enum.
|
String |
getFieldName()
The corresponding variable name in the Java world.
|
Boolean |
getFormField()
Should this column appear in edit form?
|
GeneratedValue |
getGeneratedValue()
When the column represents a single primary key, you can configure the GeneratedValue JPA annotation here.
|
GenericGenerator |
getGenericGenerator()
When the column represents a single primary key, you can configure the GenericGenerator JPA annotation here.
|
Boolean |
getHtml()
Does this column contain html?
|
Boolean |
getIgnore()
If set to true, the column will be ignored.
|
IndexedField |
getIndexedField()
Configure the Hibernate search Field annotation.
|
Boolean |
getInverse()
If this column represents a foreign key that points to the target of a ManyToMany association it can be set to true to change the default inverse side of
the ManyToMany association.
|
OneToOneConfig |
getInverseOneToOneConfig() |
String |
getLabel()
The base label for this column.
|
List<Label> |
getLabels()
The labels for this attribute.
|
Boolean |
getLazy()
Should the mapped property be lazy loaded ?
|
ManyToManyConfig |
getManyToManyConfig() |
ManyToOneConfig |
getManyToOneConfig() |
MappedType |
getMappedType()
Force the Java mapped type for this column instead of relying on Celerio's conventions.
|
Boolean |
getMessageKey()
Indicates whether the possible values held by this column are used as keys to resolve the associated localized values.
|
Integer |
getMin()
Minimum length for String.
|
Boolean |
getNullable()
Override the nullable value defined in the Metadata.
|
OneToManyConfig |
getOneToManyConfig() |
OneToOneConfig |
getOneToOneConfig() |
Integer |
getOrdinalPosition()
Override the column ordinal position defined in the Metadata.
|
Boolean |
getPassword()
Should this column be considered as storing a password ?
|
SafeHtml |
getSafeHtml()
When this element is present, the SafeHtml annotation is added on this field.
|
Boolean |
getSearchField()
Should this column appear in search form?
|
Boolean |
getSearchResult()
Should this column appear in search results?
|
Boolean |
getSelectLabel()
Should this column be part of the label representation
|
String |
getSharedEnumName()
References a shared enum name by its name.
|
Integer |
getSize()
Override the column size defined in the Metadata.
|
String |
getTableName()
Allows you to use JPA secondary table if you set a table name that is different from the entity table name.
|
String |
getTableNameEscaped() |
String |
getTargetColumnName()
Once you have set the targetTableName, you can adjust the targetColumnName if it is different from the primaryKey column.
|
String |
getTargetTableName()
If you use a legacy database schema that does not declare foreign keys, you can manually set the target table name.
|
JdbcType |
getType()
Override the default JdbcType.
|
String |
getTypeConverter()
Sets the 'type' attribute passed to the 'org.hibernate.annotations.Type' annotation.
|
Boolean |
getUnique()
Override the uniqueness defined in the indexes from the metadata.
|
List<String> |
getUsages()
For future uses
|
Boolean |
getVersion()
Should this column be used to provide optimistic locking?
|
Boolean |
getVisible()
Should this column be visible to the users ?
|
boolean |
hasColumnName() |
boolean |
hasComment() |
boolean |
hasDefaultValue() |
boolean |
hasEnum() |
boolean |
hasEnumConfig() |
boolean |
hasGeneratedValue() |
boolean |
hasGenericGenerator() |
boolean |
hasHtml() |
boolean |
hasIndexedField() |
boolean |
hasLazy() |
boolean |
hasMin() |
boolean |
hasSafeHtml() |
boolean |
hasSharedEnum() |
boolean |
hasTableName() |
boolean |
hasTargetColumnName() |
boolean |
hasTargetEntityName() |
boolean |
hasTargetTableName() |
boolean |
hasTrueBusinessKey() |
boolean |
hasTrueFormField() |
boolean |
hasTrueIgnore() |
boolean |
hasTrueSearchField() |
boolean |
hasTrueSearchResult() |
Boolean |
isPassword() |
boolean |
isTransient() |
String |
lookupTargetEntityName() |
void |
setAssociationDirection(AssociationDirection associationDirection) |
void |
setAsTransient(Boolean asTransient) |
void |
setAutoIncrement(Boolean autoIncrement) |
void |
setBusinessKey(Boolean businessKey) |
void |
setColumnName(String columnName) |
void |
setComment(String comment) |
void |
setCustomAnnotations(List<CustomAnnotation> customAnnotations) |
void |
setDecimalDigits(Integer decimalDigits) |
void |
setDefaultValue(String defaultValue) |
void |
setDisplayOrder(Integer displayOrder) |
void |
setEnableOneToVirtualOne(Boolean enableOneToVirtualOne) |
void |
setEnumConfig(EnumConfig e) |
void |
setFieldName(String fieldName) |
void |
setFormField(Boolean formField) |
void |
setGeneratedValue(GeneratedValue generatedValue) |
void |
setGenericGenerator(GenericGenerator genericGenerator) |
void |
setHtml(Boolean html) |
void |
setIgnore(Boolean ignore) |
void |
setIndexedField(IndexedField indexedField) |
void |
setInverse(Boolean inverse) |
void |
setInverseOneToOneConfig(OneToOneConfig inverseOneToOneConfig) |
void |
setLabel(String label) |
void |
setLabels(List<Label> labels) |
void |
setLazy(Boolean lazy) |
void |
setManyToManyConfig(ManyToManyConfig manyToManyConfig) |
void |
setManyToOneConfig(ManyToOneConfig manyToOneConfig) |
void |
setMappedType(MappedType mappedType) |
void |
setMessageKey(Boolean messageKey) |
void |
setMin(Integer min) |
void |
setNullable(Boolean nullable) |
void |
setOneToManyConfig(OneToManyConfig oneToManyConfig) |
void |
setOneToOneConfig(OneToOneConfig oneToOneConfig) |
void |
setOrdinalPosition(Integer ordinalPosition) |
void |
setPassword(Boolean password) |
void |
setSafeHtml(SafeHtml safeHtml) |
void |
setSearchField(Boolean searchField) |
void |
setSearchResult(Boolean searchResult) |
void |
setSelectLabel(Boolean selectLabel) |
void |
setSharedEnumName(String sharedEnumName) |
void |
setSize(Integer size) |
void |
setTableName(String tableName) |
void |
setTargetColumnName(String targetColumnName) |
void |
setTargetTableName(String targetTableName) |
void |
setType(JdbcType type) |
void |
setTypeConverter(String typeConverter) |
void |
setUnique(Boolean unique) |
void |
setUsages(List<String> usages) |
void |
setVersion(Boolean version) |
void |
setVisible(Boolean visible) |
boolean |
useConfigForIdGenerator() |
public staticSEARCH_RESULT
public staticSEARCH_FIELD
public staticFORM_FIELD
public List<Label> getLabels()
public void forceUsagesToNullIfEmpty()
public EnumConfig getEnumConfig()
public void setEnumConfig(EnumConfig e)
public boolean hasEnum()
public boolean hasSharedEnum()
public boolean hasEnumConfig()
public String getSharedEnumName()
public SafeHtml getSafeHtml()
public boolean hasSafeHtml()
public String getLabel()
public GeneratedValue getGeneratedValue()
public boolean hasGeneratedValue()
public GenericGenerator getGenericGenerator()
public boolean hasGenericGenerator()
public IndexedField getIndexedField()
public boolean hasIndexedField()
public List<CustomAnnotation> getCustomAnnotations()
public void setCustomAnnotations(List<CustomAnnotation> customAnnotations)
public void forceCustomAnnotationsToNullIfEmpty()
public Boolean getIgnore()
public boolean hasTrueIgnore()
public JdbcType getType()
public MappedType getMappedType()
public Boolean getLazy()
@Basic(fetch = FetchType.LAZY)
is used. Defaults to 'true' for CLOB, BLOB
or BYTES mapped types.public boolean hasLazy()
public String getFieldName()
public String getTableName()
public boolean hasTableName()
public String getTableNameEscaped()
public String getColumnName()
public boolean hasColumnName()
public Integer getSize()
public boolean hasMin()
public Integer getMin()
public Integer getOrdinalPosition()
public Integer getDisplayOrder()
public String getTypeConverter()
public Boolean getBusinessKey()
public boolean hasTrueBusinessKey()
public Boolean getAsTransient()
public boolean isTransient()
public String getComment()
public boolean hasComment()
public Integer getDecimalDigits()
public String getDefaultValue()
public boolean hasDefaultValue()
public Boolean getMessageKey()
public Boolean getHtml()
public boolean hasHtml()
public Boolean getInverse()
public AssociationDirection getAssociationDirection()
public Boolean getEnableOneToVirtualOne()
public Boolean getAutoIncrement()
public Boolean getNullable()
public Boolean getFormField()
public boolean hasTrueFormField()
public Boolean getSearchField()
public boolean hasTrueSearchField()
public Boolean getSearchResult()
public boolean hasTrueSearchResult()
public Boolean getSelectLabel()
public Boolean getUnique()
public Boolean getVisible()
public Boolean getVersion()
public String getTargetTableName()
public boolean hasTargetTableName()
public String getTargetColumnName()
public boolean hasTargetColumnName()
public boolean useConfigForIdGenerator()
public boolean hasTargetEntityName()
public String lookupTargetEntityName()
public Boolean getPassword()
public Boolean isPassword()
public void setSharedEnumName(String sharedEnumName)
public void setSafeHtml(SafeHtml safeHtml)
public void setGeneratedValue(GeneratedValue generatedValue)
public void setGenericGenerator(GenericGenerator genericGenerator)
public void setIndexedField(IndexedField indexedField)
public void setManyToOneConfig(ManyToOneConfig manyToOneConfig)
public void setOneToManyConfig(OneToManyConfig oneToManyConfig)
public void setOneToOneConfig(OneToOneConfig oneToOneConfig)
public void setInverseOneToOneConfig(OneToOneConfig inverseOneToOneConfig)
public void setManyToManyConfig(ManyToManyConfig manyToManyConfig)
public void setIgnore(Boolean ignore)
public void setType(JdbcType type)
public void setMappedType(MappedType mappedType)
public void setLazy(Boolean lazy)
public void setFieldName(String fieldName)
public void setTableName(String tableName)
public void setColumnName(String columnName)
public void setSize(Integer size)
public void setMin(Integer min)
public void setOrdinalPosition(Integer ordinalPosition)
public void setDisplayOrder(Integer displayOrder)
public void setTypeConverter(String typeConverter)
public void setComment(String comment)
public void setDecimalDigits(Integer decimalDigits)
public void setDefaultValue(String defaultValue)
public void setBusinessKey(Boolean businessKey)
public void setAsTransient(Boolean asTransient)
public void setMessageKey(Boolean messageKey)
public void setHtml(Boolean html)
public void setLabel(String label)
public void setInverse(Boolean inverse)
public void setAssociationDirection(AssociationDirection associationDirection)
public void setEnableOneToVirtualOne(Boolean enableOneToVirtualOne)
public void setAutoIncrement(Boolean autoIncrement)
public void setNullable(Boolean nullable)
public void setFormField(Boolean formField)
public void setSearchField(Boolean searchField)
public void setSearchResult(Boolean searchResult)
public void setSelectLabel(Boolean selectLabel)
public void setUnique(Boolean unique)
public void setVersion(Boolean version)
public void setVisible(Boolean visible)
public void setPassword(Boolean password)
public void setTargetTableName(String targetTableName)
public void setTargetColumnName(String targetColumnName)
public ManyToOneConfig getManyToOneConfig()
public OneToManyConfig getOneToManyConfig()
public OneToOneConfig getOneToOneConfig()
public OneToOneConfig getInverseOneToOneConfig()
public ManyToManyConfig getManyToManyConfig()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.