Class DefaultXmlaRequest

    • Constructor Detail

      • DefaultXmlaRequest

        public DefaultXmlaRequest​(org.w3c.dom.Element xmlaRoot,
                                  java.lang.String roleName,
                                  java.lang.String username,
                                  java.lang.String password,
                                  java.lang.String sessionId)
                           throws XmlaException
        Throws:
        XmlaException
    • Method Detail

      • getSessionId

        public java.lang.String getSessionId()
        Description copied from interface: XmlaRequest
        Returns the id of the session this request belongs to.

        Not necessarily the same as the HTTP session: the SOAP request contains its own session information.

        The session id is used to retrieve existing olap connections. And username / password only need to be passed on the first request in a session.

        Specified by:
        getSessionId in interface XmlaRequest
        Returns:
        Id of the session
      • getUsername

        public java.lang.String getUsername()
        Description copied from interface: XmlaRequest
        The username to use to open the underlying olap4j connection. Can be null.
        Specified by:
        getUsername in interface XmlaRequest
      • getPassword

        public java.lang.String getPassword()
        Description copied from interface: XmlaRequest
        The password to use to open the underlying olap4j connection. Can be null.
        Specified by:
        getPassword in interface XmlaRequest
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Description copied from interface: XmlaRequest
        Properties of XML/A request.
        Specified by:
        getProperties in interface XmlaRequest
      • getRestrictions

        public java.util.Map<java.lang.String,​java.lang.Object> getRestrictions()
        Description copied from interface: XmlaRequest
        Restrictions of DISCOVER method.

        If the value is a list of strings, the restriction passes if the column has one of the values.

        Specified by:
        getRestrictions in interface XmlaRequest
      • getStatement

        public java.lang.String getStatement()
        Description copied from interface: XmlaRequest
        Statement of EXECUTE method.
        Specified by:
        getStatement in interface XmlaRequest
      • getRoleName

        public java.lang.String getRoleName()
        Description copied from interface: XmlaRequest
        Role name binds with this XML/A request. Maybe null.
        Specified by:
        getRoleName in interface XmlaRequest
      • getRequestType

        public java.lang.String getRequestType()
        Description copied from interface: XmlaRequest
        Request type of DISCOVER method.
        Specified by:
        getRequestType in interface XmlaRequest
      • isDrillThrough

        public boolean isDrillThrough()
        Description copied from interface: XmlaRequest
        Indicate whether statement is a drill through statement of EXECUTE method.
        Specified by:
        isDrillThrough in interface XmlaRequest