Class EdmPropertyImpl

All Implemented Interfaces:
EdmAnnotatable, EdmElement, EdmMappable, EdmNamed, EdmProperty, EdmTyped

public class EdmPropertyImpl extends AbstractEdmNamed implements EdmProperty
  • Constructor Details

    • EdmPropertyImpl

      public EdmPropertyImpl(Edm edm, CsdlProperty property)
  • Method Details

    • getType

      public EdmType getType()
      Description copied from interface: EdmTyped
      See EdmType for more information about possible types.
      Specified by:
      getType in interface EdmTyped
      Returns:
      EdmType
    • getTypeWithAnnotations

      public EdmType getTypeWithAnnotations()
      Description copied from interface: EdmProperty
      See EdmType for more information about possible types.
      Specified by:
      getTypeWithAnnotations in interface EdmProperty
      Returns:
      EdmType
    • isCollection

      public boolean isCollection()
      Specified by:
      isCollection in interface EdmTyped
      Returns:
      true if this typed element is a collection
    • getMapping

      public EdmMapping getMapping()
      Description copied from interface: EdmMappable
      Get mapping information applied to an EDM element. May return null if no mapping is defined.
      Specified by:
      getMapping in interface EdmMappable
      Returns:
      EdmMapping or null if no mapping is defined
    • getMimeType

      public String getMimeType()
      Description copied from interface: EdmProperty
      Gets the related MIME type for the property.
      Specified by:
      getMimeType in interface EdmProperty
      Returns:
      MIME type as String
    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface EdmProperty
      Returns:
      true if nullable or not specified
    • getMaxLength

      public Integer getMaxLength()
      Specified by:
      getMaxLength in interface EdmProperty
      Returns:
      the maximum length as an Integer or null if not specified
    • getPrecision

      public Integer getPrecision()
      Specified by:
      getPrecision in interface EdmProperty
      Returns:
      the precision as an Integer or null if not specified
    • getScale

      public Integer getScale()
      Specified by:
      getScale in interface EdmProperty
      Returns:
      the scale as an Integer or null if not specified
    • getScaleAsString

      public String getScaleAsString()
      Specified by:
      getScaleAsString in interface EdmProperty
      Returns:
      the scale as an String or null if not specified
    • getSrid

      public SRID getSrid()
      Specified by:
      getSrid in interface EdmProperty
      Returns:
      a non-negative integer or the special value variable
    • isUnicode

      public boolean isUnicode()
      Specified by:
      isUnicode in interface EdmProperty
      Returns:
      true if unicode or not specified
    • getDefaultValue

      public String getDefaultValue()
      Specified by:
      getDefaultValue in interface EdmProperty
      Returns:
      the default value as a String or null if not specified
    • isPrimitive

      public boolean isPrimitive()
      Description copied from interface: EdmProperty
      Gets the info if the property is a primitive property.
      Specified by:
      isPrimitive in interface EdmProperty
      Returns:
      true, if it is a primitive property