mondrian.xmla
Class XmlaHandler.TabularRowSet

java.lang.Object
  extended by mondrian.xmla.XmlaHandler.TabularRowSet
Enclosing class:
XmlaHandler

static class XmlaHandler.TabularRowSet
extends Object


Constructor Summary
XmlaHandler.TabularRowSet(Map<String,List<String>> tableFieldMap, List<String> tableList)
          Alternate constructor for advanced drill-through.
XmlaHandler.TabularRowSet(ResultSet rs, int totalCount)
          Creates a TabularRowSet based upon a SQL statement result.
 
Method Summary
 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

XmlaHandler.TabularRowSet

public XmlaHandler.TabularRowSet(ResultSet rs,
                                 int totalCount)
                          throws 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:
SQLException - on error

XmlaHandler.TabularRowSet

public XmlaHandler.TabularRowSet(Map<String,List<String>> tableFieldMap,
                                 List<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 SAXException
Throws:
SAXException

metadata

public void metadata(SaxWriter writer)
Writes the tabular drillthrough schema

Parameters:
writer - Writer

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads