|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Axis>
org.olap4j.Axis
public enum Axis
Enumeration of axis types.
The most commonly used values are
COLUMNS (the first axis of a 2-dimensional query),
ROWS (the second axis of a 2-dimensional query) and
FILTER (also known as the slicer axis, denoted by a
WHERE clause in an MDX statement).

| Enum Constant Summary | |
|---|---|
CHAPTERS
|
|
COLUMNS
|
|
FILTER
|
|
PAGES
|
|
ROWS
|
|
SECTIONS
|
|
UNUSED
|
|
| Field Summary | |
|---|---|
static int |
MAX_ORDINAL
The largest legal value for forOrdinal(int). |
| Method Summary | |
|---|---|
int |
axisOrdinal()
Returns the ordinal which is to be used for retrieving this axis from the CellSet.getAxes(), or retrieving its
coordinate from Cell.getCoordinateList(). |
static Axis |
forOrdinal(int axisOrdinal)
Returns the axis with a given axisOrdinal(). |
String |
getCaption(Locale locale)
Returns localized name for this Axis. |
static Axis |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Axis[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| 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 Axis UNUSED
public static final Axis FILTER
public static final Axis COLUMNS
public static final Axis ROWS
public static final Axis PAGES
public static final Axis CHAPTERS
public static final Axis SECTIONS
| Field Detail |
|---|
public static final int MAX_ORDINAL
forOrdinal(int).
| Method Detail |
|---|
public static Axis[] values()
for (Axis c : Axis.values()) System.out.println(c);
public static Axis 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 axisOrdinal()
CellSet.getAxes(), or retrieving its
coordinate from Cell.getCoordinateList().
The axis ordinal is two less than the Enum.ordinal value which
every enum value possesses. Hence, UNUSED is -2
and FILTER is -1 (because they are not treated the same as the
other axes), COLUMNS is 0, ROWS is 1, and so forth.
public String getCaption(Locale locale)
locale - Locale for which to give the name
public static Axis forOrdinal(int axisOrdinal)
axisOrdinal().
axisOrdinal - Axis ordinal
axisOrdinal() is as given
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||