butler.ext.rolap
Class ROLAPQuery

java.lang.Object
  extended by butler.ext.rolap.ROLAPQuery

public class ROLAPQuery
extends java.lang.Object

Relational OLAP query.

Author:
Fredrik Bertilsson

Nested Class Summary
static class ROLAPQuery.Dimension
           
 class ROLAPQuery.Instance
           
static interface ROLAPQuery.Listener
           
static class ROLAPQuery.Result
           
 
Constructor Summary
ROLAPQuery(Table tab)
           
 
Method Summary
 ROLAPQuery.Dimension addDimension(Column col)
           
 ROLAPQuery.Dimension addDimension(ForeignKey fk)
           
 void addDimension(ROLAPQuery.Dimension dim)
           
 void addListener(ROLAPQuery.Listener listener)
           
 void addMeasurement(Column col)
           
 void clearDimensions()
           
 ROLAPQuery.Instance createInstance()
           
 java.util.List getDataColumns()
           
 java.util.List getDimensions()
           
 Filter getFilter()
           
 java.util.Set getListeners()
           
 RecordComparator getRecordComparator()
           
 int getResultCount()
           
 Table getTable()
           
static ROLAPQuery parse(org.dom4j.Element element)
           
static ROLAPQuery parse(java.lang.String xml)
           
 void setFilter(Filter filter)
           
 void setResultCount(int value)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROLAPQuery

public ROLAPQuery(Table tab)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

parse

public static ROLAPQuery parse(java.lang.String xml)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getResultCount

public int getResultCount()

setResultCount

public void setResultCount(int value)

addDimension

public void addDimension(ROLAPQuery.Dimension dim)
                  throws java.lang.Exception
Throws:
java.lang.Exception

addDimension

public ROLAPQuery.Dimension addDimension(Column col)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

addDimension

public ROLAPQuery.Dimension addDimension(ForeignKey fk)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

clearDimensions

public void clearDimensions()

addMeasurement

public void addMeasurement(Column col)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getTable

public Table getTable()

getDimensions

public java.util.List getDimensions()

getDataColumns

public java.util.List getDataColumns()

getFilter

public Filter getFilter()
                 throws java.lang.Exception
Throws:
java.lang.Exception

setFilter

public void setFilter(Filter filter)
               throws java.lang.Exception
Throws:
java.lang.Exception

getListeners

public java.util.Set getListeners()

getRecordComparator

public RecordComparator getRecordComparator()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

createInstance

public ROLAPQuery.Instance createInstance()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

addListener

public void addListener(ROLAPQuery.Listener listener)

toXML

public void toXML(org.xml.sax.ContentHandler handler)
           throws java.lang.Exception
Throws:
java.lang.Exception

parse

public static ROLAPQuery parse(org.dom4j.Element element)
                        throws java.lang.Exception
Throws:
java.lang.Exception