Enum Class Datatype

java.lang.Object
java.lang.Enum<Datatype>
org.olap4j.metadata.Datatype
All Implemented Interfaces:
Serializable, Comparable<Datatype>, Constable, XmlaConstant

public enum Datatype extends 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 Details

    • 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 Details

    • values

      public static Datatype[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Datatype valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • xmlaName

      public 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 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.
    • getDictionary

      public static XmlaConstant.Dictionary<Datatype> getDictionary()
      Per XmlaConstant, returns a dictionary of all values of this enumeration.
      Returns:
      Dictionary of all values