Package org.olap4j.metadata
Enum Datatype
- All Implemented Interfaces:
Serializable
,Comparable<Datatype>
,Constable
,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 class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.olap4j.metadata.XmlaConstant
XmlaConstant.Dictionary<E extends Enum<E> & XmlaConstant>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SAP BW.Used by SQL Server for colors, font flags and cell ordinal.Used by SQL Server for font size.Used by SAP BW.Used by SQL Server for value. -
Method Summary
Modifier and TypeMethodDescriptionHuman readable description of a Datatype instance.static XmlaConstant.Dictionary<Datatype>
PerXmlaConstant
, returns a dictionary of all values of this enumeration.static Datatype
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.xmlaName()
The internal name of this Datatype.int
Unique identifier of a Datatype instance.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INTEGER
-
DOUBLE
-
CURRENCY
-
BOOLEAN
-
VARIANT
Used by SQL Server for value. -
UNSIGNED_SHORT
Used by SQL Server for font size. -
UNSIGNED_INTEGER
Used by SQL Server for colors, font flags and cell ordinal. -
LARGE_INTEGER
-
STRING
-
ACCP
Used by SAP BW. Represents a Character -
CHAR
Used by SAP BW. Represents a CHAR -
CUKY
Used by SAP BW. Represents a CHAR -
CURR
Used by SAP BW. Represents a Currency - Packed decimal, Integer -
DATS
Used by SAP BW. Represents a Date -
DEC
Used by SAP BW. Represents a Decimal -
FLTP
Used by SAP BW. Represents a Point -
INT1
Used by SAP BW. Represents a Byte -
INT2
Used by SAP BW. Represents a Small integer -
INT4
Used by SAP BW. Represents an Integer -
LCHR
Used by SAP BW. Represents a Text -
NUMC
Used by SAP BW. Represents a Numeric -
PREC
Used by SAP BW. Represents a Tiny Int -
QUAN
Used by SAP BW. Represents a QUAN Integer -
SSTR
Used by SAP BW. Represents a String -
STRG
Used by SAP BW. Represents a Long String -
TIMS
Used by SAP BW. Represents a Time -
VARC
Used by SAP BW. Represents a Varchar -
UNIT
Used by SAP BW. Represents a Long String for Units
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
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
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
PerXmlaConstant
, returns a dictionary of all values of this enumeration.- Returns:
- Dictionary of all values
-