Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table
Class StandardTableMeasure

java.lang.Object
  extended by com.citra.pivot.table.AbstractTableObject
      extended by com.citra.pivot.table.TableMember
          extended by com.citra.pivot.table.TableMeasure
              extended by com.citra.pivot.table.StandardTableMeasure
All Implemented Interfaces:
OlapMeasure, OlapMember, OlapObject

public class StandardTableMeasure
extends TableMeasure

StandardTableMeasure represents a standard measure of a table datasource.


Field Summary
protected  com.citra.pivot.table.DefaultTableMeasureDefinition definition
          the measure's definition
 
Fields inherited from class com.citra.pivot.table.TableMeasure
dataType, type
 
Fields inherited from class com.citra.pivot.table.TableMember
level
 
Fields inherited from class com.citra.pivot.table.AbstractTableObject
caption, description, id, name
 
Method Summary
 StandardMeasureAggregator getAggregator(TableDimension dimension)
          Retrieves the aggregator assigned to a given dimension.
 TableLeafAggregator getLeafAggregator()
          Retrieves the object that aggregates the leaf members of the datasource.
 int getPriority(TableDimension dimension)
          Determines the aggregation priority for a given dimension.
 void setAggregator(StandardMeasureAggregator aggregator, TableDimension dimension)
          Assigns an aggregator to a given dimension with a default aggregation priority.
 void setAggregator(StandardMeasureAggregator aggregator, TableDimension dimension, int priority)
          Assigns an aggregator to a given dimension with a specified aggregation priority.
 void setLeafAggregator(TableLeafAggregator leafAggregator)
          Assigns the object that aggregates the leaf members of the datasource.
 void setPriority(TableDimension dimension, int priority)
          Assigns the aggregation priority for the given dimension.
 
Methods inherited from class com.citra.pivot.table.TableMeasure
getDataType, getJavaDataType
 
Methods inherited from class com.citra.pivot.table.TableMember
getLevel, getMemberCount
 
Methods inherited from class com.citra.pivot.table.AbstractTableObject
getCaption, getCaption, getDescription, getDescription, getID, getName, setCaption, setCaption, setDescription, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapMember
getLevel, getMemberCount
 
Methods inherited from interface com.citra.pivot.olap.metadata.OlapObject
getCaption, getDescription, getID, getName
 

Field Detail

definition

protected com.citra.pivot.table.DefaultTableMeasureDefinition definition
the measure's definition

Method Detail

getAggregator

public StandardMeasureAggregator getAggregator(TableDimension dimension)
Retrieves the aggregator assigned to a given dimension.

Parameters:
dimension - the dimension whose aggregator is returned
Returns:
the dimension's associated aggregator

getLeafAggregator

public TableLeafAggregator getLeafAggregator()
Retrieves the object that aggregates the leaf members of the datasource.

Returns:
the aggregator for the datasource's leaf members

getPriority

public int getPriority(TableDimension dimension)
Determines the aggregation priority for a given dimension.

Parameters:
dimension - the dimension for which the aggregation priority is returned
Returns:
the dimension's aggregation priority

setAggregator

public void setAggregator(StandardMeasureAggregator aggregator,
                          TableDimension dimension)
Assigns an aggregator to a given dimension with a default aggregation priority.

Parameters:
aggregator - the aggregator to assign
dimension - the dimension to which an aggregator is assigned

setAggregator

public void setAggregator(StandardMeasureAggregator aggregator,
                          TableDimension dimension,
                          int priority)
Assigns an aggregator to a given dimension with a specified aggregation priority.

Parameters:
aggregator - the aggregator to assign
dimension - the dimension to which an aggregator is assigned
priority - the dimension's aggregation priority

setLeafAggregator

public void setLeafAggregator(TableLeafAggregator leafAggregator)
Assigns the object that aggregates the leaf members of the datasource.

Parameters:
leafAggregator - the aggregator for the datasource's leaf members

setPriority

public void setPriority(TableDimension dimension,
                        int priority)
Assigns the aggregation priority for the given dimension.

Parameters:
dimension - the dimension for which a aggregation priority is assigned
priority - the aggregation priority to assign

Copyright © 2011 Citra Technologies. All Rights Reserved.