|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Datatype>
org.olap4j.metadata.Datatype
public 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.
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 |
---|
public static final Datatype INTEGER
public static final Datatype DOUBLE
public static final Datatype CURRENCY
public static final Datatype BOOLEAN
public static final Datatype VARIANT
public static final Datatype UNSIGNED_SHORT
public static final Datatype UNSIGNED_INTEGER
public static final Datatype LARGE_INTEGER
public static final Datatype STRING
Method Detail |
---|
public static Datatype[] values()
for (Datatype c : Datatype.values()) System.out.println(c);
public static Datatype valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static Datatype forXmlaOrdinal(int xmlaOrdinal)
xmlaOrdinal
- Ordinal of a Datatype according to the XMLA
specification.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |