Package 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.

    • Method Detail

      • executeDrillthrough

        java.sql.ResultSet executeDrillthrough​(OlapStatement olapStatement,
                                               java.lang.String mdx,
                                               boolean advanced,
                                               java.lang.String tabFields,
                                               int[] rowCountSlot)
                                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSchemaLoadDate

        java.util.Date getSchemaLoadDate​(Schema schema)
      • getHierarchyStructure

        int getHierarchyStructure​(Hierarchy hierarchy)
      • isHierarchyParentChild

        boolean isHierarchyParentChild​(Hierarchy hierarchy)
      • getMeasureAggregator

        int getMeasureAggregator​(Member member)
      • 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

        java.util.List<java.lang.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
      • getSchemaId

        java.lang.String getSchemaId​(Schema schema)
        Returns the unique ID of a schema.
      • getCubeType

        java.lang.String getCubeType​(Cube cube)
      • isLevelUnique

        boolean isLevelUnique​(Level level)
      • getLevelProperties

        java.util.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

        java.util.List<java.util.Map<java.lang.String,​java.lang.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

        java.util.Map<java.lang.String,​java.lang.Object> getAnnotationMap​(MetadataElement element)
                                                                         throws java.sql.SQLException
        Returns a map containing annotations on this element.
        Parameters:
        element - Element
        Returns:
        Annotation map, never null
        Throws:
        java.sql.SQLException
      • canDrillThrough

        boolean canDrillThrough​(Cell cell)
        Returns a boolean indicating if the specified cell can be drilled on.
      • getDrillThroughCount

        int getDrillThroughCount​(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.