|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Level.Type>
org.olap4j.metadata.Level.Type
public static enum Level.Type
Enumeration of the types of a Level.
Several of the values are defined by XMLA, 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 XMLA:
Level.getLevelType(),
OlapDatabaseMetaData.getLevels(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
| Enum Constant Summary | |
|---|---|
ACCOUNT
|
|
BOM_RESOURCE
|
|
CHANNEL
|
|
COMPANY
|
|
CURRENCY_DESTINATION
|
|
CURRENCY_SOURCE
|
|
CUSTOMER
|
|
CUSTOMER_GROUP
|
|
CUSTOMER_HOUSEHOLD
|
|
GEO_CITY
|
|
GEO_CONTINENT
|
|
GEO_COUNTRY
|
|
GEO_COUNTY
|
|
GEO_POINT
|
|
GEO_POSTALCODE
|
|
GEO_REGION
|
|
GEO_STATE_OR_PROVINCE
|
|
Null
Indicates that a level holds the null member. |
|
ORG_UNIT
|
|
PERSON
|
|
PRODUCT
|
|
PRODUCT_GROUP
|
|
PROMOTION
|
|
QUANTITATIVE
|
|
Regular
Indicates that the level is not related to time. |
|
REPRESENTATIVE
|
|
SCENARIO
|
|
TimeDays
Indicates that a level refers to days. |
|
TimeMonths
Indicates that a level refers to months. |
|
TimeQuarters
Indicates that a level refers to quarters. |
|
TimeWeeks
Indicates that a level refers to weeks. |
|
TimeYears
Indicates that a level refers to years. |
|
UTILITY
|
|
| Method Summary | |
|---|---|
static Level.Type |
forXmlaOrdinal(int xmlaOrdinal)
Looks up a Type by its XMLA ordinal. |
boolean |
isTime()
Returns whether this is a time-related level ( TimeYears, TimeQuarters, TimeMonths,
TimeWeeks, TimeDays). |
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. |
int |
xmlaOrdinal()
Returns the ordinal code as specified by XMLA. |
| 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 Level.Type Regular
public static final Level.Type TimeYears
Dimension.Type.TIME.
public static final Level.Type TimeQuarters
Dimension.Type.TIME.
public static final Level.Type TimeMonths
Dimension.Type.TIME.
public static final Level.Type TimeWeeks
Dimension.Type.TIME.
public static final Level.Type TimeDays
Dimension.Type.TIME.
public static final Level.Type Null
public static final Level.Type GEO_CONTINENT
public static final Level.Type GEO_REGION
public static final Level.Type GEO_COUNTRY
public static final Level.Type GEO_STATE_OR_PROVINCE
public static final Level.Type GEO_COUNTY
public static final Level.Type GEO_CITY
public static final Level.Type GEO_POSTALCODE
public static final Level.Type GEO_POINT
public static final Level.Type ORG_UNIT
public static final Level.Type BOM_RESOURCE
public static final Level.Type QUANTITATIVE
public static final Level.Type ACCOUNT
public static final Level.Type CUSTOMER
public static final Level.Type CUSTOMER_GROUP
public static final Level.Type CUSTOMER_HOUSEHOLD
public static final Level.Type PRODUCT
public static final Level.Type PRODUCT_GROUP
public static final Level.Type SCENARIO
public static final Level.Type UTILITY
public static final Level.Type PERSON
public static final Level.Type COMPANY
public static final Level.Type CURRENCY_SOURCE
public static final Level.Type CURRENCY_DESTINATION
public static final Level.Type CHANNEL
public static final Level.Type REPRESENTATIVE
public static final Level.Type PROMOTION
| Method Detail |
|---|
public static Level.Type[] values()
for (Level.Type c : Level.Type.values()) System.out.println(c);
public static Level.Type valueOf(String name)
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullname - the name of the enum constant to be returned.
public int xmlaOrdinal()
For example, the XMLA specification says that the ordinal of
CUSTOMER_HOUSEHOLD is 0x1023.
public static Level.Type forXmlaOrdinal(int xmlaOrdinal)
xmlaOrdinal - Ordinal of a level Type according to XMLA
specification.
public boolean isTime()
TimeYears, TimeQuarters, TimeMonths,
TimeWeeks, TimeDays).
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||