org.olap4j.metadata
Enum Datatype

java.lang.Object
  extended by java.lang.Enum<Datatype>
      extended by org.olap4j.metadata.Datatype
All Implemented Interfaces:
Serializable, Comparable<Datatype>, 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
Version:
$Id: Datatype.java 482 2012-01-05 23:27:27Z jhyde $
Author:
jhyde

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.olap4j.metadata.XmlaConstant
XmlaConstant.Dictionary<E extends Enum<E> & XmlaConstant>
 
Enum Constant Summary
ACCP
          Used by SAP BW.
BOOLEAN
           
CHAR
          Used by SAP BW.
CUKY
          Used by SAP BW.
CURR
          Used by SAP BW.
CURRENCY
           
DATS
          Used by SAP BW.
DEC
          Used by SAP BW.
DOUBLE
           
FLTP
          Used by SAP BW.
INT1
          Used by SAP BW.
INT2
          Used by SAP BW.
INT4
          Used by SAP BW.
INTEGER
           
LARGE_INTEGER
           
LCHR
          Used by SAP BW.
NUMC
          Used by SAP BW.
PREC
          Used by SAP BW.
QUAN
          Used by SAP BW.
SSTR
          Used by SAP BW.
STRG
          Used by SAP BW.
STRING
           
TIMS
          Used by SAP BW.
UNIT
          Used by SAP BW.
UNSIGNED_INTEGER
          Used by SQL Server for colors, font flags and cell ordinal.
UNSIGNED_SHORT
          Used by SQL Server for font size.
VARC
          Used by SAP BW.
VARIANT
          Used by SQL Server for value.
 
Method Summary
 String getDescription()
          Human readable description of a Datatype instance.
static XmlaConstant.Dictionary<Datatype> getDictionary()
          Per XmlaConstant, returns a dictionary of all values of this enumeration.
static Datatype valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Datatype[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 String xmlaName()
          The internal name of this Datatype.
 int xmlaOrdinal()
          Unique identifier of a Datatype instance.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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:
IllegalArgumentException - if this enum type 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

SourceForge.net_Logo