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
  • Field Details

    • HIBERNATE_ATTRIBUTE_TYPE_DEFAULT_VALUES

      protected static final Map<String,String> HIBERNATE_ATTRIBUTE_TYPE_DEFAULT_VALUES
  • Constructor Details

    • TopiaHibernateTagValues

      public TopiaHibernateTagValues()
  • Method Details

    • getDescription

      public String getDescription()
    • getPersistenceTypeTagValue

      public String getPersistenceTypeTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
      Obtain the value of the TopiaHibernateTagValues.Store.persistenceType tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      Returns:
      the none empty value of the found tag value or null if 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 the TopiaHibernateTagValues.Store.inheritanceStrategy tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      aPackage - package to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0
      See Also:
    • getDbNameTagValue

      public String getDbNameTagValue(org.nuiton.eugene.models.object.ObjectModelElement element)
      Obtain the value of the TopiaHibernateTagValues.Store.dbName tag 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 null if 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 the TopiaHibernateTagValues.Store.dbSchema tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      aPackage - package to seek
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getManytoManyTableNameTagValue

      public String getManytoManyTableNameTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.manyToManyTableName tag 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 null if not found nor empty.
      Since:
      2.9.2
      See Also:
    • getLengthTagValue

      public String getLengthTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.length tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getAccessTagValue

      public String getAccessTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.access tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getNaturalIdTagValue

      public boolean getNaturalIdTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.naturalId tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getNaturalIdMutableTagValue

      public boolean getNaturalIdMutableTagValue(org.nuiton.eugene.models.object.ObjectModelClassifier classifier)
      Obtain the value of the TopiaHibernateTagValues.Store.naturalIdMutable tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getInverseTagValue

      public String getInverseTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.inverse tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getLazyTagValue

      public String getLazyTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.lazy tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getFetchTagValue

      public String getFetchTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.fetch tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getOrderByTagValue

      public String getOrderByTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.orderBy tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getNotNullTagValue

      public Boolean getNotNullTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.notNull tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if 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 the TopiaHibernateTagValues.Store.hibernateProxyInterface tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      aPackage - FIXME
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if 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 the TopiaHibernateTagValues.Store.sortAttribute tag value on the given classifier.
      Parameters:
      classifier - classifier to seek
      aPackage - FIXME
      model - model to seek
      Returns:
      the none empty value of the found tag value or null if 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 the TopiaHibernateTagValues.Store.generateForeignKeyNames tag value on the given model or classifier and returns true if the tag value was found and value true. It will first look on the model, and then in the given classifier.
      Parameters:
      model - model to seek
      classifier - classifier to seek
      Returns:
      true if tag value was found on classifier or model and his value is true, otherwise false.
      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 the TopiaHibernateTagValues.Store.hibernateAttributeType tag value on the given attribute, classifier or model.
      Parameters:
      attribute - attribute to seek
      aPackage - FIXME
      model - FIXME
      classifier - FIXME
      Returns:
      the none empty value of the found tag value or null if 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 the TopiaHibernateTagValues.Store.attributeType tag value on the given attribute, classifier or model.
      Parameters:
      attribute - attribute to seek
      aPackage - FIXME
      model - FIXME
      classifier - FIXME
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      3.0.1
      See Also:
    • getSqlTypeTagValue

      public String getSqlTypeTagValue(org.nuiton.eugene.models.object.ObjectModelAttribute attribute)
      Obtain the value of the TopiaHibernateTagValues.Store.sqlType tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if 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 value TopiaHibernateTagValues.Store.indexForeignKeys on the model or on the given attribute.
      Parameters:
      attribute - attribute to test
      model - model to test
      aPackage - FIXME
      Returns:
      none empty value of the found tag value or null if 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)
      Obtain the value of the TopiaHibernateTagValues.Store.type tag value on the given attribute.
      Parameters:
      attribute - attribute to seek
      Returns:
      the none empty value of the found tag value or null if not found nor empty.
      Since:
      2.5
      See Also:
    • getDeprecatedAttributeTagValueMessage

      public String getDeprecatedAttributeTagValueMessage(org.nuiton.eugene.models.object.ObjectModelClass clazz, org.nuiton.eugene.models.object.ObjectModelAttribute attr, String deprecatedTagValue, String newTagValue, String value)
    • getDeprecatedModelTagValueMessage

      public String getDeprecatedModelTagValueMessage(org.nuiton.eugene.models.object.ObjectModel model, String deprecatedTagValue, String newTagValue, String value)