mondrian.olap
Class ResultBase

java.lang.Object
  extended by mondrian.olap.ResultBase
All Implemented Interfaces:
Result
Direct Known Subclasses:
RolapConnection.NonEmptyResult, RolapResult

public abstract class ResultBase
extends Object
implements Result

Skeleton implementation of Result.

Since:
10 August, 2001
Author:
jhyde
 

Field Summary
protected  Axis[] axes
           
protected  Query query
           
protected  Axis slicerAxis
           
 
Constructor Summary
protected ResultBase(Query query, Axis[] axes)
           
 
Method Summary
 void close()
           
 Axis[] getAxes()
          Returns the non-slicer axes.
protected abstract  org.apache.log4j.Logger getLogger()
           
 Member getMember(int[] pos, Dimension dimension)
          Returns the current member of a given dimension at a given location.
 Query getQuery()
          Returns the query which generated this result.
 Axis getSlicerAxis()
          Returns the slicer axis.
 void print(PrintWriter pw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mondrian.olap.Result
getCell
 

Field Detail

query

protected final Query query

axes

protected final Axis[] axes

slicerAxis

protected Axis slicerAxis
Constructor Detail

ResultBase

protected ResultBase(Query query,
                     Axis[] axes)
Method Detail

getLogger

protected abstract org.apache.log4j.Logger getLogger()

getQuery

public Query getQuery()
Description copied from interface: Result
Returns the query which generated this result.

Specified by:
getQuery in interface Result

getAxes

public Axis[] getAxes()
Description copied from interface: Result
Returns the non-slicer axes.

Specified by:
getAxes in interface Result

getSlicerAxis

public Axis getSlicerAxis()
Description copied from interface: Result
Returns the slicer axis.

Specified by:
getSlicerAxis in interface Result

print

public void print(PrintWriter pw)
Specified by:
print in interface Result

getMember

public Member getMember(int[] pos,
                        Dimension dimension)
Returns the current member of a given dimension at a given location.


close

public void close()
Specified by:
close in interface Result

SourceForge.net_Logo