public static enum Level.Type extends Enum<Level.Type> implements XmlaConstant
Level
.
Several of the values are defined by OLE DB for OLAP and/or XML/A,
sans the "MDLEVEL_TYPE_" prefix to their name. For example,
GEO_CONTINENT
corresponds to
the value MDLEVEL_TYPE_GEO_CONTINENT
for the
LEVEL_TYPE
property in the MDSCHEMA_LEVELS
schema rowset.
Some of the values are specified by OLE DB for OLAP:
REGULAR
Level.isCalculated()
.
isTime()
.
Some of the values are specified by XMLA:
XmlaConstant.Dictionary<E extends Enum<E> & XmlaConstant>
Enum Constant and Description |
---|
ACCOUNT
Corresponds to XMLA constant
MDLEVEL_TYPE_ACCOUNT(0x1014) . |
ALL
Indicates that the level contains the 'all' member of its hierarchy.
|
BOM_RESOURCE
Corresponds to XMLA constant
MDLEVEL_TYPE_BOM_RESOURCE(0x1012) . |
CHANNEL
Corresponds to XMLA constant
MDLEVEL_TYPE_CHANNEL(0x1061) . |
COMPANY
Corresponds to XMLA constant
MDLEVEL_TYPE_COMPANY(0x1042) . |
CURRENCY_DESTINATION
Corresponds to XMLA constant
MDLEVEL_TYPE_CURRENCY_DESTINATION(0x1052) . |
CURRENCY_SOURCE
Corresponds to XMLA constant
MDLEVEL_TYPE_CURRENCY_SOURCE(0x1051) . |
CUSTOMER
Corresponds to XMLA constant
MDLEVEL_TYPE_CUSTOMER(0x1021) . |
CUSTOMER_GROUP
Corresponds to XMLA constant
MDLEVEL_TYPE_CUSTOMER_GROUP(0x1022) . |
CUSTOMER_HOUSEHOLD
Corresponds to XMLA constant
MDLEVEL_TYPE_CUSTOMER_HOUSEHOLD(0x1023) . |
GEO_CITY
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_CITY(0x2006) . |
GEO_CONTINENT
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_CONTINENT(0x2001) . |
GEO_COUNTRY
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_COUNTRY(0x2003) . |
GEO_COUNTY
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_COUNTY(0x2005) . |
GEO_POINT
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_POINT(0x2008) . |
GEO_POSTALCODE
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_POSTALCODE(0x2007) . |
GEO_REGION
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_REGION(0x2002) . |
GEO_STATE_OR_PROVINCE
Corresponds to XMLA constant
MDLEVEL_TYPE_GEO_STATE_OR_PROVINCE(0x2004) . |
NULL
Indicates that a level holds the null member.
|
ORG_UNIT
Corresponds to XMLA constant
MDLEVEL_TYPE_ORG_UNIT(0x1011) . |
PERSON
Corresponds to XMLA constant
MDLEVEL_TYPE_PERSON(0x1041) . |
PRODUCT
Corresponds to XMLA constant
MDLEVEL_TYPE_PRODUCT(0x1031) . |
PRODUCT_GROUP
Corresponds to XMLA constant
MDLEVEL_TYPE_PRODUCT_GROUP(0x1032) . |
PROMOTION
Corresponds to XMLA constant
MDLEVEL_TYPE_PROMOTION(0x1071) . |
QUANTITATIVE
Corresponds to XMLA constant
MDLEVEL_TYPE_QUANTITATIVE(0x1013) . |
REGULAR
Indicates that the level is not related to time.
|
REPRESENTATIVE
Corresponds to XMLA constant
MDLEVEL_TYPE_REPRESENTATIVE(0x1062) . |
SCENARIO
Corresponds to XMLA constant
MDLEVEL_TYPE_SCENARIO(0x1015) . |
TIME_DAYS
Indicates that a level refers to days.
|
TIME_HALF_YEAR
Indicates that a level refers to half years.
|
TIME_HOURS
Indicates that a level refers to hours.
|
TIME_MINUTES
Indicates that a level refers to minutes.
|
TIME_MONTHS
Indicates that a level refers to months.
|
TIME_QUARTERS
Indicates that a level refers to quarters.
|
TIME_SECONDS
Indicates that a level refers to seconds.
|
TIME_UNDEFINED
Indicates that a level refers to an unspecified time unit.
|
TIME_WEEKS
Indicates that a level refers to weeks.
|
TIME_YEARS
Indicates that a level refers to years.
|
UTILITY
Corresponds to XMLA constant
MDLEVEL_TYPE_UTILITY(0x1016) . |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of this constant.
|
static XmlaConstant.Dictionary<Level.Type> |
getDictionary()
Per
XmlaConstant , returns a dictionary
of all values of this enumeration. |
boolean |
isTime()
Returns whether this is a time-related level
(
TIME_YEARS ,
TIME_HALF_YEAR ,
TIME_QUARTERS ,
TIME_MONTHS ,
TIME_WEEKS ,
TIME_DAYS ,
TIME_HOURS ,
TIME_MINUTES ,
TIME_SECONDS ,
TIME_UNDEFINED ). |
static Level.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Level.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
xmlaName()
Returns the name of this constant as specified by XMLA.
|
int |
xmlaOrdinal()
Returns the code of this constant as specified by XMLA.
|
public static final Level.Type REGULAR
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_REGULAR(0x0000)
.
public static final Level.Type ALL
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_ALL(0x0001)
.
public static final Level.Type NULL
public static final Level.Type TIME_YEARS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_YEARS(0x0014)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_HALF_YEAR
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_HALF_YEAR(0x0304)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_QUARTERS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_QUARTERS(0x0044)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_MONTHS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_MONTHS(0x0084)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_WEEKS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_WEEKS(0x0104)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_DAYS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_DAYS(0x0204)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_HOURS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_HOURS(0x0304)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_MINUTES
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_MINUTES(0x0404)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_SECONDS
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_SECONDS(0x0804)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type TIME_UNDEFINED
Corresponds to the OLE DB for OLAP constant
MDLEVEL_TYPE_TIME_UNDEFINED(0x1004)
.
It must be used in a dimension whose type is
Dimension.Type.TIME
.
public static final Level.Type GEO_CONTINENT
MDLEVEL_TYPE_GEO_CONTINENT(0x2001)
.public static final Level.Type GEO_REGION
MDLEVEL_TYPE_GEO_REGION(0x2002)
.public static final Level.Type GEO_COUNTRY
MDLEVEL_TYPE_GEO_COUNTRY(0x2003)
.public static final Level.Type GEO_STATE_OR_PROVINCE
MDLEVEL_TYPE_GEO_STATE_OR_PROVINCE(0x2004)
.public static final Level.Type GEO_COUNTY
MDLEVEL_TYPE_GEO_COUNTY(0x2005)
.public static final Level.Type GEO_CITY
MDLEVEL_TYPE_GEO_CITY(0x2006)
.public static final Level.Type GEO_POSTALCODE
MDLEVEL_TYPE_GEO_POSTALCODE(0x2007)
.public static final Level.Type GEO_POINT
MDLEVEL_TYPE_GEO_POINT(0x2008)
.public static final Level.Type ORG_UNIT
MDLEVEL_TYPE_ORG_UNIT(0x1011)
.public static final Level.Type BOM_RESOURCE
MDLEVEL_TYPE_BOM_RESOURCE(0x1012)
.public static final Level.Type QUANTITATIVE
MDLEVEL_TYPE_QUANTITATIVE(0x1013)
.public static final Level.Type ACCOUNT
MDLEVEL_TYPE_ACCOUNT(0x1014)
.public static final Level.Type CUSTOMER
MDLEVEL_TYPE_CUSTOMER(0x1021)
.public static final Level.Type CUSTOMER_GROUP
MDLEVEL_TYPE_CUSTOMER_GROUP(0x1022)
.public static final Level.Type CUSTOMER_HOUSEHOLD
MDLEVEL_TYPE_CUSTOMER_HOUSEHOLD(0x1023)
.public static final Level.Type PRODUCT
MDLEVEL_TYPE_PRODUCT(0x1031)
.public static final Level.Type PRODUCT_GROUP
MDLEVEL_TYPE_PRODUCT_GROUP(0x1032)
.public static final Level.Type SCENARIO
MDLEVEL_TYPE_SCENARIO(0x1015)
.public static final Level.Type UTILITY
MDLEVEL_TYPE_UTILITY(0x1016)
.public static final Level.Type PERSON
MDLEVEL_TYPE_PERSON(0x1041)
.public static final Level.Type COMPANY
MDLEVEL_TYPE_COMPANY(0x1042)
.public static final Level.Type CURRENCY_SOURCE
MDLEVEL_TYPE_CURRENCY_SOURCE(0x1051)
.public static final Level.Type CURRENCY_DESTINATION
MDLEVEL_TYPE_CURRENCY_DESTINATION(0x1052)
.public static final Level.Type CHANNEL
MDLEVEL_TYPE_CHANNEL(0x1061)
.public static final Level.Type REPRESENTATIVE
MDLEVEL_TYPE_REPRESENTATIVE(0x1062)
.public static final Level.Type PROMOTION
MDLEVEL_TYPE_PROMOTION(0x1071)
.public static Level.Type[] values()
for (Level.Type c : Level.Type.values()) System.out.println(c);
public static Level.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static XmlaConstant.Dictionary<Level.Type> getDictionary()
XmlaConstant
, returns a dictionary
of all values of this enumeration.public String xmlaName()
XmlaConstant
Often the name is an enumeration-specific prefix plus the name of
the Java enum constant. For example,
Dimension.Type
has
prefix "MD_DIMTYPE_", and therefore this method returns
"MD_DIMTYPE_PRODUCTS" for the enum constant
Dimension.Type.PRODUCTS
.
xmlaName
in interface XmlaConstant
public String getDescription()
XmlaConstant
getDescription
in interface XmlaConstant
public int xmlaOrdinal()
XmlaConstant
For example, the XMLA specification says that the ordinal of
MD_DIMTYPE_PRODUCTS is 8, and therefore this method returns 8
for Dimension.Type.PRODUCTS
.
xmlaOrdinal
in interface XmlaConstant
public boolean isTime()
TIME_YEARS
,
TIME_HALF_YEAR
,
TIME_QUARTERS
,
TIME_MONTHS
,
TIME_WEEKS
,
TIME_DAYS
,
TIME_HOURS
,
TIME_MINUTES
,
TIME_SECONDS
,
TIME_UNDEFINED
).