Package mondrian.xmla

Class XmlaHandler.TabularRowSet

  • Enclosing class:
    XmlaHandler

    static class XmlaHandler.TabularRowSet
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TabularRowSet​(java.sql.ResultSet rs, int totalCount)
      Creates a TabularRowSet based upon a SQL statement result.
      TabularRowSet​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> tableFieldMap, java.util.List<java.lang.String> tableList)
      Alternate constructor for advanced drill-through.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void metadata​(SaxWriter writer)
      Writes the tabular drillthrough schema
      void unparse​(SaxWriter writer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TabularRowSet

        public TabularRowSet​(java.sql.ResultSet rs,
                             int totalCount)
                      throws java.sql.SQLException
        Creates a TabularRowSet based upon a SQL statement result.

        Does not close the ResultSet, on success or failure. Client must do it.

        Parameters:
        rs - Result set
        totalCount - Total number of rows. If >= 0, writes the "totalCount" attribute into the XMLA response.
        Throws:
        java.sql.SQLException - on error
      • TabularRowSet

        public TabularRowSet​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> tableFieldMap,
                             java.util.List<java.lang.String> tableList)
        Alternate constructor for advanced drill-through.
        Parameters:
        tableFieldMap - Map from table name to a list of the names of the fields in the table
        tableList - List of table names
    • Method Detail

      • close

        public void close()
      • unparse

        public void unparse​(SaxWriter writer)
                     throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • metadata

        public void metadata​(SaxWriter writer)
        Writes the tabular drillthrough schema
        Parameters:
        writer - Writer