org.olap4j.metadata
public interface XmlaConstant
Every enum
E that implements this interface also has a method to
get the XmlaConstant.Dictionary
of all its values:
public static Dictionary<E> getDictionary();
Here is a collection of enum classes and the prefix used to generate their XMLA constant names.
Prefix | Enum class |
---|---|
DBTYPE_ | Datatype |
MD_DIMTYPE_ | Dimension.Type |
MDLEVEL_TYPE_ | Level.Type |
MDMEASURE_AGG_ | Measure.Aggregator |
MDTREEOP_ | Member.TreeOp |
MD_PROPTYPE_ | Property.ContentType |
MDPROP_ | Property.TypeFlag |
none | XmlaConstants.Access |
MDACTION_TYPE_ | XmlaConstants.ActionType |
none | XmlaConstants.AuthenticationMode |
none | XmlaConstants.AxisFormat |
DBTYPE_ | XmlaConstants.DBType |
MDFF_ | XmlaConstants.FontFlag |
none | XmlaConstants.Format |
DBLITERAL_ | XmlaConstants.Literal |
none | XmlaConstants.Method |
none | XmlaConstants.ProviderType |
none | XmlaConstants.Updateable |
DBPROPVAL_VISUAL_MODE_ | XmlaConstants.VisualMode |
Modifier and Type | Interface and Description |
---|---|
static interface |
XmlaConstant.Dictionary<E extends Enum<E> & XmlaConstant> |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of this constant.
|
String |
xmlaName()
Returns the name of this constant as specified by XMLA.
|
int |
xmlaOrdinal()
Returns the code of this constant as specified by XMLA.
|
String xmlaName()
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
.
String getDescription()
int xmlaOrdinal()
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
.