Package mondrian.xmla
Class XmlaHandler.TabularRowSet
- java.lang.Object
-
- mondrian.xmla.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 schemavoid
unparse(SaxWriter writer)
-
-
-
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 settotalCount
- 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 tabletableList
- List of table names
-
-