Package org.olap4j.metadata
Enum Datatype
- java.lang.Object
-
- java.lang.Enum<Datatype>
-
- org.olap4j.metadata.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.olap4j.metadata.XmlaConstant
XmlaConstant.Dictionary<E extends java.lang.Enum<E> & XmlaConstant>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Human readable description of a Datatype instance.static XmlaConstant.Dictionary<Datatype>
getDictionary()
PerXmlaConstant
, returns a dictionary of all values of this enumeration.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.java.lang.String
xmlaName()
The internal name of this Datatype.int
xmlaOrdinal()
Unique identifier of a Datatype instance.
-
-
-
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 namejava.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 interfaceXmlaConstant
- Returns:
- ordinal code as specified by XMLA.
-
getDescription
public java.lang.String getDescription()
Human readable description of a Datatype instance.- Specified by:
getDescription
in interfaceXmlaConstant
- Returns:
- Description of this constant.
-
xmlaOrdinal
public int xmlaOrdinal()
Unique identifier of a Datatype instance.- Specified by:
xmlaOrdinal
in interfaceXmlaConstant
- Returns:
- ordinal code as specified by XMLA.
-
getDictionary
public static XmlaConstant.Dictionary<Datatype> getDictionary()
PerXmlaConstant
, returns a dictionary of all values of this enumeration.- Returns:
- Dictionary of all values
-
-