Class Facets

  • All Implemented Interfaces:
    EdmFacets

    public class Facets
    extends Object
    implements EdmFacets
    Objects of this class represent the facets an entity type, property or function import can have
    • Constructor Detail

      • Facets

        public Facets()
    • Method Detail

      • isNullable

        public Boolean isNullable()
        Description copied from interface: EdmFacets
        Get the information if the type in use is nullable
        Specified by:
        isNullable in interface EdmFacets
        Returns:
        true if the type in use is nullable
      • getDefaultValue

        public String getDefaultValue()
        Description copied from interface: EdmFacets
        Get the default value of the type in use
        Specified by:
        getDefaultValue in interface EdmFacets
        Returns:
        a default value of the type in use as String
      • getMaxLength

        public Integer getMaxLength()
        Description copied from interface: EdmFacets
        Get the maximum length of the type in use
        Specified by:
        getMaxLength in interface EdmFacets
        Returns:
        the maximum length of the type in use as Integer
      • isFixedLength

        public Boolean isFixedLength()
        Description copied from interface: EdmFacets
        Get the information if the type in has a fixed length
        Specified by:
        isFixedLength in interface EdmFacets
        Returns:
        true if the type in use has a fixed length
      • getPrecision

        public Integer getPrecision()
        Description copied from interface: EdmFacets
        Get the precision of the type in use
        Specified by:
        getPrecision in interface EdmFacets
        Returns:
        the precision of the type in use as Integer
      • getScale

        public Integer getScale()
        Description copied from interface: EdmFacets
        Get the scale of the type in use
        Specified by:
        getScale in interface EdmFacets
        Returns:
        the scale of the type in use as Integer
      • isUnicode

        public Boolean isUnicode()
        Description copied from interface: EdmFacets
        Get the information if UNICODE or ASCII characters are used. Default is UNICODE.
        Specified by:
        isUnicode in interface EdmFacets
        Returns:
        true if UNICODE characters are used
      • getCollation

        public String getCollation()
        Description copied from interface: EdmFacets
        Get the sorting sequence to be used.
        Specified by:
        getCollation in interface EdmFacets
        Returns:
        the sorting sequence as String
      • setAutoGenerated

        public Facets setAutoGenerated​(Boolean autoGenerated)
      • setNullable

        public Facets setNullable​(Boolean nullable)
        Sets if this Facets is nullable
        Parameters:
        nullable - Se pode null
        Returns:
        Facets for method chaining
      • setFixedLength

        public Facets setFixedLength​(Boolean fixedLength)
        Sets the fixed length of this Facets
        Parameters:
        fixedLength - Se tamanho fixo
        Returns:
        Facets for method chaining
      • setUnicode

        public Facets setUnicode​(Boolean unicode)
        Sets if this Facets is in Unicode
        Parameters:
        unicode - Se unicode
        Returns:
        Facets for method chaining
      • setDefaultValue

        public Facets setDefaultValue​(String defaultValue)
        Sets the default value of this Facets
        Parameters:
        defaultValue - Valor padrão
        Returns:
        Facets for method chaining
      • setMaxLength

        public Facets setMaxLength​(Integer maxLength)
        Sets the maximum length of this Facets
        Parameters:
        maxLength - Tamanho maximo
        Returns:
        Facets for method chaining
      • setPrecision

        public Facets setPrecision​(Integer precision)
        Sets the precision of this Facets
        Parameters:
        precision - Precisão
        Returns:
        Facets for method chaining
      • setScale

        public Facets setScale​(Integer scale)
        Sets the scale of this Facets
        Parameters:
        scale - Escala
        Returns:
        Facets for method chaining
      • setCollation

        public Facets setCollation​(String collation)
        Sets the collation of this Facets
        Parameters:
        collation - Collation
        Returns:
        Facets for method chaining