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  Execution execution
           
protected  Query query
           
protected  Axis slicerAxis
           
protected  Statement statement
           
 
Constructor Summary
protected ResultBase(Execution execution, Axis[] axes)
           
 
Method Summary
 void close()
           
 Axis[] getAxes()
          Returns the non-slicer axes.
protected abstract  org.apache.log4j.Logger getLogger()
           
 Member getMember(int[] pos, Hierarchy hierarchy)
          Returns the current member of a given hierarchy 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

execution

protected final Execution execution

statement

protected final Statement statement

query

protected final Query query

axes

protected final Axis[] axes

slicerAxis

protected Axis slicerAxis
Constructor Detail

ResultBase

protected ResultBase(Execution execution,
                     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,
                        Hierarchy hierarchy)
Returns the current member of a given hierarchy at a given location.

Parameters:
pos - Coordinates in cell set
hierarchy - Hierarchy
Returns:
current member of given hierarchy

close

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

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