Package org.nuiton.topia.templates
Class TopiaHibernateTagValues
java.lang.Object
org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
org.nuiton.topia.templates.TopiaHibernateTagValues
- All Implemented Interfaces:
org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider
@Component(role=org.nuiton.eugene.models.extension.tagvalue.provider.TagValueMetadatasProvider.class,
hint="topia-hibernate")
public class TopiaHibernateTagValues
extends org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
All extra tag values usable in topia generators.
- Since:
- 2.5
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
matcher, tagValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.accesstag value on the given attribute.getAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.attributeTypetag value on the given attribute, classifier or model.getDbNameTagValue(org.nuiton.eugene.models.object.ObjectModelElement element) Obtain the value of theTopiaHibernateTagValues.Store.dbNametag value on the given element.getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.dbSchematag value on the given classifier.getDeprecatedAttributeTagValueMessage(org.nuiton.eugene.models.object.ObjectModelClass clazz, org.nuiton.eugene.models.object.ObjectModelAttribute attr, String deprecatedTagValue, String newTagValue, String value) getDeprecatedModelTagValueMessage(org.nuiton.eugene.models.object.ObjectModel model, String deprecatedTagValue, String newTagValue, String value) getFetchTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.fetchtag value on the given attribute.getHibernateAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.hibernateAttributeTypetag value on the given attribute, classifier or model.booleangetIndexForeignKeysTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtains the value of the tag valueTopiaHibernateTagValues.Store.indexForeignKeyson the model or on the given attribute.getInheritanceStrategyTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage) Obtain the value of theTopiaHibernateTagValues.Store.inheritanceStrategytag value on the given classifier.getInverseTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.inversetag value on the given attribute.getLazyTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.lazytag value on the given attribute.getLengthTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.lengthtag value on the given attribute.getManytoManyTableNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.manyToManyTableNametag value on the given attribute.booleangetNaturalIdMutableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Obtain the value of theTopiaHibernateTagValues.Store.naturalIdMutabletag value on the given classifier.booleangetNaturalIdTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.naturalIdtag value on the given attribute.getNotNullTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.notNulltag value on the given attribute.getOrderByTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.orderBytag value on the given attribute.getPersistenceTypeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Obtain the value of theTopiaHibernateTagValues.Store.persistenceTypetag value on the given classifier.getProxyInterfaceTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.hibernateProxyInterfacetag value on the given classifier.booleangetSortAttributeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.sortAttributetag value on the given classifier.getSqlTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.sqlTypetag value on the given attribute.getTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Deprecated.booleanhasUseEnumerationNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attr, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) booleanisGenerateForeignKeyNames(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.generateForeignKeyNamestag value on the given model or classifier and returnstrueif the tag value was found and valuetrue.Methods inherited from class org.nuiton.eugene.models.extension.tagvalue.provider.DefaultTagValueMetadatasProvider
getDefinitionForMatcher, getTagValue, getTagValues, validate
-
Field Details
-
HIBERNATE_ATTRIBUTE_TYPE_DEFAULT_VALUES
-
-
Constructor Details
-
TopiaHibernateTagValues
public TopiaHibernateTagValues()
-
-
Method Details
-
getDescription
-
getPersistenceTypeTagValue
public String getPersistenceTypeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Obtain the value of theTopiaHibernateTagValues.Store.persistenceTypetag value on the given classifier.- Parameters:
classifier- classifier to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getInheritanceStrategyTagValue
public String getInheritanceStrategyTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage) Obtain the value of theTopiaHibernateTagValues.Store.inheritanceStrategytag value on the given classifier.- Parameters:
classifier- classifier to seekaPackage- package to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
-
getDbNameTagValue
Obtain the value of theTopiaHibernateTagValues.Store.dbNametag value on the given element. Note: We just try a direct search on the element and do not walk through his declaring elements if not found (see https://forge.nuiton.org/issues/2342).- Parameters:
element- element to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getDbSchemaNameTagValue
public String getDbSchemaNameTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.dbSchematag value on the given classifier.- Parameters:
classifier- classifier to seekaPackage- package to seekmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getManytoManyTableNameTagValue
public String getManytoManyTableNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.manyToManyTableNametag value on the given attribute. Note that it won't and search on declaring element or anywhere else than on the given element. See https://forge.nuiton.org/issues/2342- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.9.2
- See Also:
-
getLengthTagValue
Obtain the value of theTopiaHibernateTagValues.Store.lengthtag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getAccessTagValue
Obtain the value of theTopiaHibernateTagValues.Store.accesstag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getNaturalIdTagValue
public boolean getNaturalIdTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Obtain the value of theTopiaHibernateTagValues.Store.naturalIdtag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getNaturalIdMutableTagValue
public boolean getNaturalIdMutableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier) Obtain the value of theTopiaHibernateTagValues.Store.naturalIdMutabletag value on the given classifier.- Parameters:
classifier- classifier to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getInverseTagValue
Obtain the value of theTopiaHibernateTagValues.Store.inversetag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getLazyTagValue
Obtain the value of theTopiaHibernateTagValues.Store.lazytag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getFetchTagValue
Obtain the value of theTopiaHibernateTagValues.Store.fetchtag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getOrderByTagValue
Obtain the value of theTopiaHibernateTagValues.Store.orderBytag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getNotNullTagValue
Obtain the value of theTopiaHibernateTagValues.Store.notNulltag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getProxyInterfaceTagValue
public String getProxyInterfaceTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.hibernateProxyInterfacetag value on the given classifier.- Parameters:
classifier- classifier to seekaPackage- FIXMEmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getSortAttributeTagValue
public boolean getSortAttributeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.sortAttributetag value on the given classifier.- Parameters:
classifier- classifier to seekaPackage- FIXMEmodel- model to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
isGenerateForeignKeyNames
public boolean isGenerateForeignKeyNames(org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.generateForeignKeyNamestag value on the given model or classifier and returnstrueif the tag value was found and valuetrue. It will first look on the model, and then in the given classifier.- Parameters:
model- model to seekclassifier- classifier to seek- Returns:
trueif tag value was found on classifier or model and his value istrue, otherwisefalse.- Since:
- 2.10
- See Also:
-
getHibernateAttributeType
public String getHibernateAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.hibernateAttributeTypetag value on the given attribute, classifier or model.- Parameters:
attribute- attribute to seekaPackage- FIXMEmodel- FIXMEclassifier- FIXME- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0
- See Also:
-
getAttributeType
public String getAttributeType(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtain the value of theTopiaHibernateTagValues.Store.attributeTypetag value on the given attribute, classifier or model.- Parameters:
attribute- attribute to seekaPackage- FIXMEmodel- FIXMEclassifier- FIXME- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 3.0.1
- See Also:
-
getSqlTypeTagValue
Obtain the value of theTopiaHibernateTagValues.Store.sqlTypetag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getIndexForeignKeysTagValue
public boolean getIndexForeignKeysTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) Obtains the value of the tag valueTopiaHibernateTagValues.Store.indexForeignKeyson the model or on the given attribute.- Parameters:
attribute- attribute to testmodel- model to testaPackage- FIXME- Returns:
- none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.6.5
- See Also:
-
hasUseEnumerationNameTagValue
public boolean hasUseEnumerationNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attr, org.nuiton.eugene.models.object.ObjectModelClassifier classifier, org.nuiton.eugene.models.object.ObjectModelPackage aPackage, org.nuiton.eugene.models.object.ObjectModel model) -
getTypeTagValue
@Deprecated public String getTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute) Deprecated.Obtain the value of theTopiaHibernateTagValues.Store.typetag value on the given attribute.- Parameters:
attribute- attribute to seek- Returns:
- the none empty value of the found tag value or
nullif not found nor empty. - Since:
- 2.5
- See Also:
-
getDeprecatedAttributeTagValueMessage
-
getDeprecatedModelTagValueMessage
-
getHibernateAttributeType(ObjectModelAttribute, ObjectModelClassifier, ObjectModelPackage, ObjectModel)orgetAttributeType(ObjectModelAttribute, ObjectModelClassifier, ObjectModelPackage, ObjectModel)