Class YAttributeDescriptor


public class YAttributeDescriptor extends YDescriptor
  • Field Details

  • Constructor Details

  • Method Details

    • isRedeclaredOneToManyRelationEnd

      public boolean isRedeclaredOneToManyRelationEnd()
    • resetCaches

      public void resetCaches()
      Description copied from class: YNameSpaceElement
      Since most typesystem elements use lazy references e.g. by codes this method allows to reset all lazy loaded references and data so that they will be calculated anew upon next access.
      Overrides:
      resetCaches in class YDescriptor
    • redeclare

      protected void redeclare(String typeCode)
      Overrides:
      redeclare in class YDescriptor
    • redeclare

      protected void redeclare(String typeCode, int modifiers)
      Overrides:
      redeclare in class YDescriptor
    • getCustomProps

      public Map<String,String> getCustomProps()
      Overwritten to merge all super type properties. Use getOwnCustomProps() to get just the ones declared at this type.
      Overrides:
      getCustomProps in class YTypeSystemElement
    • getOwnCustomProps

      public Map<String,String> getOwnCustomProps()
    • toString

      public String toString()
      Overrides:
      toString in class YDescriptor
    • connectToRelationEnd

      protected void connectToRelationEnd(YRelationEnd end)
    • getRelationEnd

      public YRelationEnd getRelationEnd()
    • getConditionQuery

      public String getConditionQuery()
    • isRelationEndAttribute

      public boolean isRelationEndAttribute()
    • getDefaultMetaTypeCode

      protected String getDefaultMetaTypeCode()
      Specified by:
      getDefaultMetaTypeCode in class YTypeSystemElement
    • getMetaType

      public YComposedType getMetaType()
      Overrides:
      getMetaType in class YTypeSystemElement
    • validate

      public void validate()
      Description copied from class: YNameSpaceElement
      Validates the element. This should check whether or not lazy references can be resolved or any data is missing.
      Overrides:
      validate in class YDescriptor
    • isDeclared

      public boolean isDeclared()
    • isInherited

      public boolean isInherited()
    • getPersistenceQualifier

      public String getPersistenceQualifier()
    • hasNonGenericPersistenceQualifier

      public boolean hasNonGenericPersistenceQualifier()
    • setPersistenceQualifier

      public void setPersistenceQualifier(String persistenceQualifier)
    • getPersistenceType

      public YAttributeDescriptor.PersistenceType getPersistenceType()
    • isPersistable

      public boolean isPersistable()
    • getColumnType

      public YAtomicType getColumnType()
    • getColumnType

      protected YAtomicType getColumnType(YType type)
    • getAttributeDeploymentOrFail

      public YAttributeDeployment getAttributeDeploymentOrFail()
    • tryGetAttributeDeployment

      public YAttributeDeployment tryGetAttributeDeployment()
    • isRelationAttribute

      protected boolean isRelationAttribute()
    • getConfiguredModifiers

      public int getConfiguredModifiers()
    • getModifiers

      public int getModifiers()
      Overrides:
      getModifiers in class YDescriptor
    • isLocalized

      public boolean isLocalized()
    • setPersistenceType

      public void setPersistenceType(YAttributeDescriptor.PersistenceType persistenceType)
    • getSelectionOfQualifier

      public String getSelectionOfQualifier()
    • getSelectionOf

      public YAttributeDescriptor getSelectionOf()
    • setSelectionOfQualifier

      public void setSelectionOfQualifier(String selectionOfQualifier)
    • getEnclosingTypeCode

      public String getEnclosingTypeCode()
    • isRedeclared

      public boolean isRedeclared()
    • clearPersistenceInfos

      protected void clearPersistenceInfos()
    • setInherited

      public void setInherited(boolean isInherited)
    • setRedeclared

      public void setRedeclared(boolean isRedeclared)
    • setModelData

      public void setModelData(ModelTagListener.ModelData modelData)
    • isGenerateInModel

      public boolean isGenerateInModel()
    • getDeclaringAttribute

      public YAttributeDescriptor getDeclaringAttribute()
    • getDeclaringType

      public YComposedType getDeclaringType()
    • getSuperAttribute

      public YAttributeDescriptor getSuperAttribute()
    • getEnclosingType

      public YComposedType getEnclosingType()
    • getDefaultValueDefinition

      public String getDefaultValueDefinition()
    • setDefaultValueDefinition

      public void setDefaultValueDefinition(String defaultValueDefinition)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getDbColumnDefinitions

      public Map<String,String> getDbColumnDefinitions()
    • addDbColumnDefinitions

      public void addDbColumnDefinitions(Map<String,String> dbColumnDefinitions)
    • getRealColumnName

      public String getRealColumnName()
      Returns:
      the configuredColumnName
    • setRealColumnName

      public void setRealColumnName(String configuredColumnName)
      Parameters:
      configuredColumnName - the configuredColumnName to set
    • isOptional

      public boolean isOptional()
    • isSearchable

      public boolean isSearchable()
    • isPartOf

      public boolean isPartOf()
    • isWritable

      public boolean isWritable()
    • isInitial

      public boolean isInitial()
    • isReadable

      public boolean isReadable()
    • isPrivate

      public boolean isPrivate()
    • isProperty

      public boolean isProperty()
    • isEncrypted

      public boolean isEncrypted()
    • isPrimitive

      public boolean isPrimitive()
    • isBooleanAttribute

      public boolean isBooleanAttribute()
    • getSetters

      public List<ModelTagListener.ModelDataMethod> getSetters()
    • getGetters

      public List<ModelTagListener.ModelDataMethod> getGetters()
    • setAttributeHandler

      public void setAttributeHandler(String attributeHandler)
    • getAttributeHandlerIncludingSuperTypes

      public String getAttributeHandlerIncludingSuperTypes()
    • getConfiguredAttributeHandler

      public String getConfiguredAttributeHandler()
    • isUniqueModifier

      public boolean isUniqueModifier()
      Overrides:
      isUniqueModifier in class YDescriptor
    • setConfiguredPersistenceType

      public void setConfiguredPersistenceType(YAttributeDescriptor.PersistenceType configuredPersistenceType)
    • getDynamicAttributeHandler

      public String getDynamicAttributeHandler()
    • getColumnName

      public String getColumnName(DatabaseSettings databaseSettings)
    • hasFixedColumnName

      public boolean hasFixedColumnName()