com.sas.dataselectors.totals
Class BaseTotalsSelectorAdapter

com.sas.dataselectors.totals.BaseTotalsSelectorAdapter
All Implemented Interfaces:
TotalsSelectorInterface
Direct Known Subclasses:
OLAPTotalsSelectorAdapter, RelationalTotalsSelectorAdapter

public class BaseTotalsSelectorAdapter
implements TotalsSelectorInterface

Base class that contains attributes and methods common to the different Totals Selector adapters.

Since:
3.1

Field Summary
protected  boolean columnTotals
          Flag to indicate if the column totals have to be applied.
protected  com.sas.iquery.metadata.business.BusinessQuery dataModel
          The data model used by the adapter.
protected  boolean valuesFromDataModel
          Flag to indicate if the values must be read directly from the Data Model or from the internal variables.
 
Fields inherited from interface com.sas.dataselectors.totals.TotalsSelectorInterface
BOTTOM, COLUMN_SUBTOTALS, COLUMN_TOTALS, EXPANDED_TOTALS, NO_COLUMN_SUBTOTALS, NO_COLUMN_TOTALS, NO_EXPANDED_TOTALS, NO_ROW_SUBTOTALS, NO_ROW_TOTALS, ROW_SUBTOTALS, ROW_TOTALS, TOP, UNFILTERED_TOTALS, VISUAL_TOTALS
 
Constructor Summary
BaseTotalsSelectorAdapter()
           
 
Method Summary
 boolean columnTotals()
          Returns true if the column totals must be applyed, false otherwise.
 void columnTotals(boolean columnTotals)
          Sets if the column totals must be applyed.
 com.sas.iquery.metadata.business.BusinessQuery dataModel()
          Returns the model that contains the data.
 void dataModel(com.sas.iquery.metadata.business.BusinessQuery model)
          Sets the model that contains the data.
 boolean hasSummarizeableItems()
          Says if the data model contains at least one additive DataItem.
 boolean valuesFromDataModel()
          Returns true if the values must be read directly from the Data Model, false if the values must be read from the internal variables
 void valuesFromDataModel(boolean valuesFromDataModel)
          Sets if the the values must be read directly from the Data Model or from the internal variables
 

Field Detail

dataModel

protected com.sas.iquery.metadata.business.BusinessQuery dataModel
The data model used by the adapter.


columnTotals

protected boolean columnTotals
Flag to indicate if the column totals have to be applied.


valuesFromDataModel

protected boolean valuesFromDataModel
Flag to indicate if the values must be read directly from the Data Model or from the internal variables.

Constructor Detail

BaseTotalsSelectorAdapter

public BaseTotalsSelectorAdapter()
Method Detail

dataModel

public void dataModel(com.sas.iquery.metadata.business.BusinessQuery model)
Sets the model that contains the data.

Parameters:
model - the model that contains the data.

dataModel

public com.sas.iquery.metadata.business.BusinessQuery dataModel()
Returns the model that contains the data.

Returns:
com.sas.iquery.metadata.business.BusinessQuery the model that contains the data.

columnTotals

public boolean columnTotals()
Description copied from interface: TotalsSelectorInterface
Returns true if the column totals must be applyed, false otherwise.

Specified by:
columnTotals in interface TotalsSelectorInterface
Returns:
boolean true if the column totals must be applyed, false otherwise.

columnTotals

public void columnTotals(boolean columnTotals)
Description copied from interface: TotalsSelectorInterface
Sets if the column totals must be applyed.

Specified by:
columnTotals in interface TotalsSelectorInterface
Parameters:
columnTotals - true if the column totals must be applyed, false otherwise.

valuesFromDataModel

public boolean valuesFromDataModel()
Returns true if the values must be read directly from the Data Model, false if the values must be read from the internal variables

Specified by:
valuesFromDataModel in interface TotalsSelectorInterface
Returns:
boolean true if the values must be read directly from the data model, false if the values must be read from the internal variables.

valuesFromDataModel

public void valuesFromDataModel(boolean valuesFromDataModel)
Sets if the the values must be read directly from the Data Model or from the internal variables

Specified by:
valuesFromDataModel in interface TotalsSelectorInterface
Parameters:
valuesFromDataModel - true if the the values must be read directly from the Data Model, false if the values must be read from the internal variables

hasSummarizeableItems

public boolean hasSummarizeableItems()
Description copied from interface: TotalsSelectorInterface
Says if the data model contains at least one additive DataItem.

Specified by:
hasSummarizeableItems in interface TotalsSelectorInterface
Returns:
boolean true if the data model contains at least one additive DataItem, flase otherwise



Copyright © 2009 SAS Institute Inc. All Rights Reserved.