mondrian.rolap.agg
Class DrillThroughQuerySpec

java.lang.Object
  extended by mondrian.rolap.agg.AbstractQuerySpec
      extended by mondrian.rolap.agg.DrillThroughQuerySpec
All Implemented Interfaces:
QuerySpec

 class DrillThroughQuerySpec
extends AbstractQuerySpec

Provides the information necessary to generate SQL for a drill-through request.

Author:
jhyde, Richard M. Emberson
 

Field Summary
 
Fields inherited from class mondrian.rolap.agg.AbstractQuerySpec
countOnly
 
Constructor Summary
DrillThroughQuerySpec(CellRequest request, boolean countOnly)
           
 
Method Summary
protected  void addMeasure(int i, SqlQuery sqlQuery)
          Adds a measure to a query.
 String generateSqlQuery()
           
 String getColumnAlias(int i)
           
 StarColumnPredicate getColumnPredicate(int i)
          Returns the predicate on the ith column.
 RolapStar.Column[] getColumns()
           
 RolapStar.Measure getMeasure(int i)
           
 String getMeasureAlias(int i)
           
 int getMeasureCount()
           
protected  boolean isAggregate()
           
protected  boolean isOrdered()
          Whether to add an ORDER BY clause to make results deterministic.
 
Methods inherited from class mondrian.rolap.agg.AbstractQuerySpec
addGroupingFunction, addGroupingSets, distinctGenerateSql, extraPredicates, getDistinctMeasureCount, getPredicateList, getStar, newSqlQuery, nonDistinctGenerateSql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrillThroughQuerySpec

public DrillThroughQuerySpec(CellRequest request,
                             boolean countOnly)
Method Detail

getMeasureCount

public int getMeasureCount()

getMeasure

public RolapStar.Measure getMeasure(int i)

getMeasureAlias

public String getMeasureAlias(int i)

getColumns

public RolapStar.Column[] getColumns()

getColumnAlias

public String getColumnAlias(int i)

getColumnPredicate

public StarColumnPredicate getColumnPredicate(int i)
Description copied from interface: QuerySpec
Returns the predicate on the ith column.

If the column is unconstrained, returns LiteralStarPredicate(true).

Parameters:
i - Column ordinal
Returns:
Constraint on column

generateSqlQuery

public String generateSqlQuery()
Specified by:
generateSqlQuery in interface QuerySpec
Overrides:
generateSqlQuery in class AbstractQuerySpec

addMeasure

protected void addMeasure(int i,
                          SqlQuery sqlQuery)
Description copied from class: AbstractQuerySpec
Adds a measure to a query.

Overrides:
addMeasure in class AbstractQuerySpec
Parameters:
i - Ordinal of measure
sqlQuery - Query object

isAggregate

protected boolean isAggregate()
Specified by:
isAggregate in class AbstractQuerySpec

isOrdered

protected boolean isOrdered()
Description copied from class: AbstractQuerySpec
Whether to add an ORDER BY clause to make results deterministic. Necessary if query returns more than one row and results are for human consumption.

Overrides:
isOrdered in class AbstractQuerySpec
Returns:
whether to sort query

SourceForge.net_Logo