Enum Datatype

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Datatype>, XmlaConstant

    public enum Datatype
    extends java.lang.Enum<Datatype>
    implements XmlaConstant
    Enumeration of the allowable data types of a Property or Measure.

    The values derive from the OLE DB specification, specifically a subset of the OLE DB Types Indicators returned by SQL Server.

    Since:
    Aug 23, 2006
    Author:
    jhyde
    • Enum Constant Detail

      • INTEGER

        public static final Datatype INTEGER
      • DOUBLE

        public static final Datatype DOUBLE
      • CURRENCY

        public static final Datatype CURRENCY
      • BOOLEAN

        public static final Datatype BOOLEAN
      • VARIANT

        public static final Datatype VARIANT
        Used by SQL Server for value.
      • UNSIGNED_SHORT

        public static final Datatype UNSIGNED_SHORT
        Used by SQL Server for font size.
      • UNSIGNED_INTEGER

        public static final Datatype UNSIGNED_INTEGER
        Used by SQL Server for colors, font flags and cell ordinal.
      • LARGE_INTEGER

        public static final Datatype LARGE_INTEGER
      • STRING

        public static final Datatype STRING
      • ACCP

        public static final Datatype ACCP
        Used by SAP BW. Represents a Character
      • CHAR

        public static final Datatype CHAR
        Used by SAP BW. Represents a CHAR
      • CUKY

        public static final Datatype CUKY
        Used by SAP BW. Represents a CHAR
      • CURR

        public static final Datatype CURR
        Used by SAP BW. Represents a Currency - Packed decimal, Integer
      • DATS

        public static final Datatype DATS
        Used by SAP BW. Represents a Date
      • DEC

        public static final Datatype DEC
        Used by SAP BW. Represents a Decimal
      • FLTP

        public static final Datatype FLTP
        Used by SAP BW. Represents a Point
      • INT1

        public static final Datatype INT1
        Used by SAP BW. Represents a Byte
      • INT2

        public static final Datatype INT2
        Used by SAP BW. Represents a Small integer
      • INT4

        public static final Datatype INT4
        Used by SAP BW. Represents an Integer
      • LCHR

        public static final Datatype LCHR
        Used by SAP BW. Represents a Text
      • NUMC

        public static final Datatype NUMC
        Used by SAP BW. Represents a Numeric
      • PREC

        public static final Datatype PREC
        Used by SAP BW. Represents a Tiny Int
      • QUAN

        public static final Datatype QUAN
        Used by SAP BW. Represents a QUAN Integer
      • SSTR

        public static final Datatype SSTR
        Used by SAP BW. Represents a String
      • STRG

        public static final Datatype STRG
        Used by SAP BW. Represents a Long String
      • TIMS

        public static final Datatype TIMS
        Used by SAP BW. Represents a Time
      • VARC

        public static final Datatype VARC
        Used by SAP BW. Represents a Varchar
      • UNIT

        public static final Datatype UNIT
        Used by SAP BW. Represents a Long String for Units
    • Method Detail

      • values

        public static Datatype[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Datatype c : Datatype.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Datatype valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • xmlaName

        public java.lang.String xmlaName()
        The internal name of this Datatype. Might not be unique across Datatype instances.
        Specified by:
        xmlaName in interface XmlaConstant
        Returns:
        ordinal code as specified by XMLA.
      • getDescription

        public java.lang.String getDescription()
        Human readable description of a Datatype instance.
        Specified by:
        getDescription in interface XmlaConstant
        Returns:
        Description of this constant.
      • xmlaOrdinal

        public int xmlaOrdinal()
        Unique identifier of a Datatype instance.
        Specified by:
        xmlaOrdinal in interface XmlaConstant
        Returns:
        ordinal code as specified by XMLA.