Package com.appliedolap.essbase
Class EssMdxOptions
java.lang.Object
com.appliedolap.essbase.EssMdxOptions
How the server should present an MDX query's result: whether to include the data, and how to
name the members.
Every option starts unset, and an unset option isn't sent, so the server applies its own
default - which is what a query got before this class existed. defaults() is therefore
exactly the plain query.
Only dataless and the member naming options have been checked against a
server (26.1); the others pass the server's preference of the same name through as they are. The
member naming options are the useful ones for reporting. Against Sample.Basic,
memberIdentifierType(ALIAS) turns the row member 100-10 into Cola, and adding
aliasTableName("Long Names") turns the column member Jan into January. Both
the axes and the point of view are renamed; the dimension names in EssMdxGrid are not.
- Since:
- 2.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliasTableName(String aliasTableName) Which alias table to take aliases from, when members are named by alias.cellAttributes(boolean cellAttributes) Sets the server'scellAttributespreference.dataless(boolean dataless) Whether to leave the data out and return only the members.static EssMdxOptionsdefaults()No options set: the server's defaults, as for a plain query.formatString(boolean formatString) Sets the server'sformatStringpreference.formatValues(boolean formatValues) Sets the server'sformatValuespreference.booleanhideRestrictedData(boolean hideRestrictedData) Sets the server'shideRestrictedDatapreference.booleanisEmpty()meaninglessCells(boolean meaninglessCells) Sets the server'smeaninglessCellspreference.memberIdentifierType(EssCube.MdxIdentifierType memberIdentifierType) How to name the members in the result: by name (the server's default), by alias, or by unique name.textList(boolean textList) Sets the server'stextListpreference.How long to wait for the server's answer before giving up, which fails the query with anEssApiExceptioncaused by aHttpTimeoutException.urlDrillThrough(boolean urlDrillThrough) Sets the server'surlDrillThroughpreference.
-
Constructor Details
-
EssMdxOptions
public EssMdxOptions()
-
-
Method Details
-
defaults
No options set: the server's defaults, as for a plain query. -
dataless
Whether to leave the data out and return only the members. The grid keeps its shape, with every data cell empty, which makes this a cheap way to resolve a member set. -
hideRestrictedData
Sets the server'shideRestrictedDatapreference. -
cellAttributes
Sets the server'scellAttributespreference. -
formatString
Sets the server'sformatStringpreference. -
formatValues
Sets the server'sformatValuespreference. -
meaninglessCells
Sets the server'smeaninglessCellspreference. -
textList
Sets the server'stextListpreference. -
urlDrillThrough
Sets the server'surlDrillThroughpreference. -
memberIdentifierType
How to name the members in the result: by name (the server's default), by alias, or by unique name. Unique names only differ from names in an outline that allows duplicate member names. -
aliasTableName
Which alias table to take aliases from, when members are named by alias. Unset, the server uses the default table. -
timeout
How long to wait for the server's answer before giving up, which fails the query with anEssApiExceptioncaused by aHttpTimeoutException. This isn't sent to the server, which goes on with the query regardless. Unset, the query waits as long as the client's other requests do. -
getDataless
- Returns:
- whether to leave the data out, or null to leave it to the server
-
getHideRestrictedData
- Returns:
- the
hideRestrictedDatapreference, or null to leave it to the server
-
getCellAttributes
- Returns:
- the
cellAttributespreference, or null to leave it to the server
-
getFormatString
- Returns:
- the
formatStringpreference, or null to leave it to the server
-
getFormatValues
- Returns:
- the
formatValuespreference, or null to leave it to the server
-
getMeaninglessCells
- Returns:
- the
meaninglessCellspreference, or null to leave it to the server
-
getTextList
- Returns:
- the
textListpreference, or null to leave it to the server
-
getUrlDrillThrough
- Returns:
- the
urlDrillThroughpreference, or null to leave it to the server
-
getMemberIdentifierType
- Returns:
- how to name the members, or null to leave it to the server
-
getAliasTableName
- Returns:
- the alias table to take aliases from, or null for the default table
-
getTimeout
- Returns:
- how long to wait for the answer, or null to wait as long as other requests do
-
hasPreferences
public boolean hasPreferences()- Returns:
- whether any of the server's preferences is set; if none is, the query is sent without preferences, as a plain query is
-
isEmpty
public boolean isEmpty()- Returns:
- whether nothing is set at all: no preference and no timeout
-