Package mondrian.xmla
Interface XmlaHandler.XmlaExtra
- 
- Enclosing class:
- XmlaHandler
 
 public static interface XmlaHandler.XmlaExtraExtra 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.XmlaExtraImplclass provides a default implementation that uses the olap4j interface exclusively.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classXmlaHandler.XmlaExtra.FunctionDefinition
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanDrillThrough(org.olap4j.Cell cell)Returns a boolean indicating if the specified cell can be drilled on.voidcheckMemberOrdinal(org.olap4j.metadata.Member member)ResultSetexecuteDrillthrough(org.olap4j.OlapStatement olapStatement, String mdx, boolean advanced, String tabFields, int[] rowCountSlot)voidflushSchemaCache(org.olap4j.OlapConnection conn)Makes the connection send a command to the server to flush all caches.Map<String,Object>getAnnotationMap(org.olap4j.metadata.MetadataElement element)Returns a map containing annotations on this element.StringgetCubeType(org.olap4j.metadata.Cube cube)List<Map<String,Object>>getDataSources(org.olap4j.OlapConnection connection)Returns a list of the data sources in this server.intgetDrillThroughCount(org.olap4j.Cell cell)Returns the number of rows returned by a drillthrough on the specified cell.intgetHierarchyCardinality(org.olap4j.metadata.Hierarchy hierarchy)intgetHierarchyStructure(org.olap4j.metadata.Hierarchy hierarchy)intgetLevelCardinality(org.olap4j.metadata.Level level)default StringgetLevelDataType(org.olap4j.metadata.Level level)Returns the data type of the level's key.List<org.olap4j.metadata.Property>getLevelProperties(org.olap4j.metadata.Level level)Returns the defined properties of a level.intgetMeasureAggregator(org.olap4j.metadata.Member member)ObjectgetMemberKey(org.olap4j.metadata.Member m)Returns the key for a given member.ObjectgetOrderKey(org.olap4j.metadata.Member m)Returns the ordering key for a given member.voidgetSchemaFunctionList(List<XmlaHandler.XmlaExtra.FunctionDefinition> funDefs, org.olap4j.metadata.Schema schema, Util.Functor1<Boolean,String> functionFilter)StringgetSchemaId(org.olap4j.metadata.Schema schema)Returns the unique ID of a schema.DategetSchemaLoadDate(org.olap4j.metadata.Schema schema)List<String>getSchemaRoleNames(org.olap4j.metadata.Schema schema)Returns a list of names of roles in the given schema to which the current user belongs.booleanisHierarchyParentChild(org.olap4j.metadata.Hierarchy hierarchy)booleanisLevelUnique(org.olap4j.metadata.Level level)booleanisPropertyInternal(org.olap4j.metadata.Property property)voidsetPreferList(org.olap4j.OlapConnection connection)booleanshouldReturnCellProperty(org.olap4j.CellSet cellSet, org.olap4j.metadata.Property cellProperty, boolean evenEmpty)Returns whether we should return a cell property in the XMLA result.
 
- 
- 
- 
Method Detail- 
executeDrillthroughResultSet executeDrillthrough(org.olap4j.OlapStatement olapStatement, String mdx, boolean advanced, String tabFields, int[] rowCountSlot) throws SQLException - Throws:
- SQLException
 
 - 
setPreferListvoid setPreferList(org.olap4j.OlapConnection connection) 
 - 
getSchemaLoadDateDate getSchemaLoadDate(org.olap4j.metadata.Schema schema) 
 - 
getLevelCardinalityint getLevelCardinality(org.olap4j.metadata.Level level) throws org.olap4j.OlapException- Throws:
- org.olap4j.OlapException
 
 - 
getSchemaFunctionListvoid getSchemaFunctionList(List<XmlaHandler.XmlaExtra.FunctionDefinition> funDefs, org.olap4j.metadata.Schema schema, Util.Functor1<Boolean,String> functionFilter) 
 - 
getHierarchyCardinalityint getHierarchyCardinality(org.olap4j.metadata.Hierarchy hierarchy) throws org.olap4j.OlapException- Throws:
- org.olap4j.OlapException
 
 - 
getHierarchyStructureint getHierarchyStructure(org.olap4j.metadata.Hierarchy hierarchy) 
 - 
isHierarchyParentChildboolean isHierarchyParentChild(org.olap4j.metadata.Hierarchy hierarchy) 
 - 
getMeasureAggregatorint getMeasureAggregator(org.olap4j.metadata.Member member) 
 - 
checkMemberOrdinalvoid checkMemberOrdinal(org.olap4j.metadata.Member member) throws org.olap4j.OlapException- Throws:
- org.olap4j.OlapException
 
 - 
shouldReturnCellPropertyboolean shouldReturnCellProperty(org.olap4j.CellSet cellSet, org.olap4j.metadata.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
 
 - 
getSchemaRoleNamesList<String> getSchemaRoleNames(org.olap4j.metadata.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
 
 - 
getSchemaIdString getSchemaId(org.olap4j.metadata.Schema schema) Returns the unique ID of a schema.
 - 
getCubeTypeString getCubeType(org.olap4j.metadata.Cube cube) 
 - 
isLevelUniqueboolean isLevelUnique(org.olap4j.metadata.Level level) 
 - 
getLevelPropertiesList<org.olap4j.metadata.Property> getLevelProperties(org.olap4j.metadata.Level level) Returns the defined properties of a level. (Not including system properties that every level has.)- Parameters:
- level- Level
- Returns:
- Defined properties
 
 - 
isPropertyInternalboolean isPropertyInternal(org.olap4j.metadata.Property property) 
 - 
getDataSourcesList<Map<String,Object>> getDataSources(org.olap4j.OlapConnection connection) throws org.olap4j.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:
- org.olap4j.OlapException- on error
 
 - 
getAnnotationMapMap<String,Object> getAnnotationMap(org.olap4j.metadata.MetadataElement element) throws SQLException Returns a map containing annotations on this element.- Parameters:
- element- Element
- Returns:
- Annotation map, never null
- Throws:
- SQLException
 
 - 
canDrillThroughboolean canDrillThrough(org.olap4j.Cell cell) Returns a boolean indicating if the specified cell can be drilled on.
 - 
getDrillThroughCountint getDrillThroughCount(org.olap4j.Cell cell) Returns the number of rows returned by a drillthrough on the specified cell. Will also return -1 if it cannot determine the cardinality.
 - 
flushSchemaCachevoid flushSchemaCache(org.olap4j.OlapConnection conn) throws org.olap4j.OlapExceptionMakes the connection send a command to the server to flush all caches.- Throws:
- org.olap4j.OlapException
 
 - 
getMemberKeyObject getMemberKey(org.olap4j.metadata.Member m) throws org.olap4j.OlapException Returns the key for a given member.- Throws:
- org.olap4j.OlapException
 
 - 
getOrderKeyObject getOrderKey(org.olap4j.metadata.Member m) throws org.olap4j.OlapException Returns the ordering key for a given member.- Throws:
- org.olap4j.OlapException
 
 - 
getLevelDataTypedefault String getLevelDataType(org.olap4j.metadata.Level level) Returns the data type of the level's key.- Parameters:
- level-
- Returns:
- String|Numeric|Integer|Boolean|Date|Time|Timestamp
 
 
- 
 
-