Class YAttributeDescriptor


  • public class YAttributeDescriptor
    extends YDescriptor
    • Constructor Detail

      • YAttributeDescriptor

        public YAttributeDescriptor​(YNamespace container,
                                    java.lang.String enclosingTypeCode,
                                    java.lang.String qualifier,
                                    java.lang.String typeCode)
      • YAttributeDescriptor

        public YAttributeDescriptor​(java.lang.String enclosingType,
                                    YAttributeDescriptor inheritedFrom)
    • Method Detail

      • 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​(java.lang.String typeCode)
        Overrides:
        redeclare in class YDescriptor
      • redeclare

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

        public java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​java.lang.String> getOwnCustomProps()
      • connectToRelationEnd

        protected void connectToRelationEnd​(YRelationEnd end)
      • getConditionQuery

        public java.lang.String getConditionQuery()
      • isRelationEndAttribute

        public boolean isRelationEndAttribute()
      • 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 java.lang.String getPersistenceQualifier()
      • hasNonGenericPersistenceQualifier

        public boolean hasNonGenericPersistenceQualifier()
      • setPersistenceQualifier

        public void setPersistenceQualifier​(java.lang.String persistenceQualifier)
      • isPersistable

        public boolean isPersistable()
      • isRelationAttribute

        protected boolean isRelationAttribute()
      • getConfiguredModifiers

        public int getConfiguredModifiers()
      • isLocalized

        public boolean isLocalized()
      • getSelectionOfQualifier

        public java.lang.String getSelectionOfQualifier()
      • setSelectionOfQualifier

        public void setSelectionOfQualifier​(java.lang.String selectionOfQualifier)
      • getEnclosingTypeCode

        public java.lang.String getEnclosingTypeCode()
      • isRedeclared

        public boolean isRedeclared()
      • clearPersistenceInfos

        protected void clearPersistenceInfos()
      • setInherited

        public void setInherited​(boolean isInherited)
      • setRedeclared

        public void setRedeclared​(boolean isRedeclared)
      • isGenerateInModel

        public boolean isGenerateInModel()
      • getDefaultValueDefinition

        public java.lang.String getDefaultValueDefinition()
      • setDefaultValueDefinition

        public void setDefaultValueDefinition​(java.lang.String defaultValueDefinition)
      • getDescription

        public java.lang.String getDescription()
      • setDescription

        public void setDescription​(java.lang.String description)
      • getDbColumnDefinitions

        public java.util.Map<java.lang.String,​java.lang.String> getDbColumnDefinitions()
      • addDbColumnDefinitions

        public void addDbColumnDefinitions​(java.util.Map<java.lang.String,​java.lang.String> dbColumnDefinitions)
      • getRealColumnName

        public java.lang.String getRealColumnName()
        Returns:
        the configuredColumnName
      • setRealColumnName

        public void setRealColumnName​(java.lang.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()
      • setAttributeHandler

        public void setAttributeHandler​(java.lang.String attributeHandler)
      • getAttributeHandlerIncludingSuperTypes

        public java.lang.String getAttributeHandlerIncludingSuperTypes()
      • getConfiguredAttributeHandler

        public java.lang.String getConfiguredAttributeHandler()
      • getDynamicAttributeHandler

        public java.lang.String getDynamicAttributeHandler()
      • getColumnName

        public java.lang.String getColumnName​(DatabaseSettings databaseSettings)
      • hasFixedColumnName

        public boolean hasFixedColumnName()