org.olap4j.metadata
Enum Datatype

java.lang.Object
  extended by java.lang.Enum<Datatype>
      extended by org.olap4j.metadata.Datatype
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Datatype>

public enum Datatype
extends java.lang.Enum<Datatype>

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 253 2009-06-30 03:06:10Z jhyde $
Author:
jhyde

Enum Constant Summary
BOOLEAN
           
CURRENCY
           
DOUBLE
           
INTEGER
           
LARGE_INTEGER
           
STRING
           
UNSIGNED_INTEGER
          Used by SQL Server for colors, font flags and cell ordinal.
UNSIGNED_SHORT
          Used by SQL Server for font size.
VARIANT
          Used by SQL Server for value.
 
Method Summary
static Datatype forXmlaOrdinal(int xmlaOrdinal)
          Looks up a Datatype by its XMLA ordinal.
static Datatype valueOf(java.lang.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.
 
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
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

forXmlaOrdinal

public static Datatype forXmlaOrdinal(int xmlaOrdinal)
Looks up a Datatype by its XMLA ordinal.

Parameters:
xmlaOrdinal - Ordinal of a Datatype according to the XMLA specification.
Returns:
Datatype with the given ordinal, or null if there is no such Datatype

SourceForge.net_Logo