mondrian.xmla
Interface XmlaHandler.XmlaExtra

All Known Implementing Classes:
MondrianOlap4jExtra
Enclosing class:
XmlaHandler

public static interface XmlaHandler.XmlaExtra

Extra support for XMLA server. If a connection provides this interface, the XMLA server will call methods in this interface instead of relying on the core olap4j interface.

The XmlaHandler.XmlaExtraImpl class provides a default implementation that uses the olap4j interface exclusively.


Nested Class Summary
static class XmlaHandler.XmlaExtra.FunctionDefinition
           
 
Method Summary
 void checkMemberOrdinal(Member member)
           
 ResultSet executeDrillthrough(OlapStatement olapStatement, String mdx, boolean advanced, String tabFields, int[] rowCountSlot)
           
 Map<String,Object> getAnnotationMap(MetadataElement element)
          Returns a map containing annotations on this element.
 String getCubeType(Cube cube)
           
 List<Map<String,Object>> getDataSources(OlapConnection connection)
          Returns a list of the data sources in this server.
 int getHierarchyCardinality(Hierarchy hierarchy)
           
 int getHierarchyStructure(Hierarchy hierarchy)
           
 int getLevelCardinality(Level level)
           
 List<Property> getLevelProperties(Level level)
          Returns the defined properties of a level.
 int getMeasureAggregator(Member member)
           
 void getSchemaFunctionList(List<XmlaHandler.XmlaExtra.FunctionDefinition> funDefs, Schema schema, Util.Functor1<Boolean,String> functionFilter)
           
 Date getSchemaLoadDate(Schema schema)
           
 List<String> getSchemaRoleNames(Schema schema)
          Returns a list of names of roles in the given schema to which the current user belongs.
 boolean isHierarchyParentChild(Hierarchy hierarchy)
           
 boolean isLevelUnique(Level level)
           
 boolean isPropertyInternal(Property property)
           
 void setPreferList(OlapConnection connection)
           
 boolean shouldReturnCellProperty(CellSet cellSet, Property cellProperty, boolean evenEmpty)
          Returns whether we should return a cell property in the XMLA result.
 

Method Detail

executeDrillthrough

ResultSet executeDrillthrough(OlapStatement olapStatement,
                              String mdx,
                              boolean advanced,
                              String tabFields,
                              int[] rowCountSlot)
                              throws SQLException
Throws:
SQLException

setPreferList

void setPreferList(OlapConnection connection)

getSchemaLoadDate

Date getSchemaLoadDate(Schema schema)

getLevelCardinality

int getLevelCardinality(Level level)
                        throws OlapException
Throws:
OlapException

getSchemaFunctionList

void getSchemaFunctionList(List<XmlaHandler.XmlaExtra.FunctionDefinition> funDefs,
                           Schema schema,
                           Util.Functor1<Boolean,String> functionFilter)

getHierarchyCardinality

int getHierarchyCardinality(Hierarchy hierarchy)
                            throws OlapException
Throws:
OlapException

getHierarchyStructure

int getHierarchyStructure(Hierarchy hierarchy)

isHierarchyParentChild

boolean isHierarchyParentChild(Hierarchy hierarchy)

getMeasureAggregator

int getMeasureAggregator(Member member)

checkMemberOrdinal

void checkMemberOrdinal(Member member)
                        throws OlapException
Throws:
OlapException

shouldReturnCellProperty

boolean shouldReturnCellProperty(CellSet cellSet,
                                 Property cellProperty,
                                 boolean evenEmpty)
Returns whether we should return a cell property in the XMLA result.

Parameters:
cellSet - Cell set
cellProperty - Cell property definition
evenEmpty - Whether to return even if cell has no properties
Returns:
Whether to return cell property in XMLA result

getSchemaRoleNames

List<String> getSchemaRoleNames(Schema schema)
Returns a list of names of roles in the given schema to which the current user belongs.

Parameters:
schema - Schema
Returns:
List of roles

getCubeType

String getCubeType(Cube cube)

isLevelUnique

boolean isLevelUnique(Level level)

getLevelProperties

List<Property> getLevelProperties(Level level)
Returns the defined properties of a level. (Not including system properties that every level has.)

Parameters:
level - Level
Returns:
Defined properties

isPropertyInternal

boolean isPropertyInternal(Property property)

getDataSources

List<Map<String,Object>> getDataSources(OlapConnection connection)
                                        throws OlapException
Returns a list of the data sources in this server. One element per data source, each element a map whose keys are the XMLA fields describing a data source: "DataSourceName", "DataSourceDescription", "URL", etc. Unrecognized fields are ignored.

Parameters:
connection - Connection
Returns:
List of data source definitions
Throws:
OlapException - on error

getAnnotationMap

Map<String,Object> getAnnotationMap(MetadataElement element)
                                    throws SQLException
Returns a map containing annotations on this element.

Parameters:
element - Element
Returns:
Annotation map, never null
Throws:
SQLException

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads