Package mondrian.xmla

Class XmlaHandler


  • public class XmlaHandler
    extends Object
    An XmlaHandler responds to XML for Analysis (XML/A) requests.
    Since:
    27 April, 2003
    Author:
    jhyde, Gang Chen
    • Method Detail

      • getConnection

        public org.olap4j.OlapConnection getConnection​(XmlaRequest request,
                                                       Map<String,​String> propMap)
        Returns a new OlapConnection opened with the credentials specified in the XMLA request or an existing connection if one can be found associated with the request session id.
        Parameters:
        request - Request
        propMap - Extra properties
      • isValidXsdInt

        public static boolean isValidXsdInt​(long l)
      • getConnection

        protected org.olap4j.OlapConnection getConnection​(String catalog,
                                                          String schema,
                                                          String role)
                                                   throws XmlaException
        Gets a Connection given a catalog (and implicitly the catalog's data source) and the name of a user role.

        If you want to pass in a role object, and you are making the call within the same JVM (i.e. not RPC), register the role using MondrianServer.getLockBox() and pass in the moniker for the generated lock box entry. The server will retrieve the role from the moniker.

        Parameters:
        catalog - Catalog name
        schema - Schema name
        role - User role name
        Returns:
        Connection
        Throws:
        XmlaException - If error occurs
      • getConnection

        protected org.olap4j.OlapConnection getConnection​(String catalog,
                                                          String schema,
                                                          String role,
                                                          Properties props)
                                                   throws XmlaException
        Gets a Connection given a catalog (and implicitly the catalog's data source) and the name of a user role.

        If you want to pass in a role object, and you are making the call within the same JVM (i.e. not RPC), register the role using MondrianServer.getLockBox() and pass in the moniker for the generated lock box entry. The server will retrieve the role from the moniker.

        Parameters:
        catalog - Catalog name
        schema - Schema name
        role - User role name
        props - Properties to pass down to the native driver.
        Returns:
        Connection
        Throws:
        XmlaException - If error occurs