|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.calculations.percent.PercentCalculationsSelectorOLAPDataSource
public class PercentCalculationsSelectorOLAPDataSource
Contains attributes and methods to provide a BusinessQuery-based implementation of the PercentCalculationsSelectorDataSourceInterface.
Field Summary |
---|
Fields inherited from class com.sas.dataselectors.calculations.percent.PercentCalculationsSelectorDataSource |
---|
model |
Constructor Summary | |
---|---|
PercentCalculationsSelectorOLAPDataSource()
Default constructor. |
|
PercentCalculationsSelectorOLAPDataSource(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface model)
BusinessQueryProviderInterface Constructor. |
Method Summary | |
---|---|
java.util.Map |
getDenominators()
Returns a map where the keys are the denominator ids and the the values are the denominator labels. |
java.util.Map |
getNumerators()
Returns a map where the keys are the numerator ids and the the values are the numerator labels. |
protected java.lang.String |
getResourceKeyForDenominatorType(int denominatorType)
Returns the resource key to use in fetching the label for one of the aggregate denominator types. |
boolean |
isOLAP()
Returns true if the data source is OLAP based. |
static boolean |
isValidNumerator(com.sas.iquery.metadata.business.DataItem dataItem,
com.sas.iquery.metadata.business.DataSelection dataSelection)
Returns a boolean indicating whether the dataItem may be used as the numerator in a FractionOfTotalExpression. |
Methods inherited from class com.sas.dataselectors.calculations.percent.PercentCalculationsSelectorDataSource |
---|
addItem, commit, createFractionalItemInfo, getFractionalItems, getLocale, getModel, removeAllItems, removeItem, setLocale, setModel, updateItem |
Constructor Detail |
---|
public PercentCalculationsSelectorOLAPDataSource()
public PercentCalculationsSelectorOLAPDataSource(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface model)
Method Detail |
---|
public boolean isOLAP()
isOLAP
in interface PercentCalculationsSelectorDataSourceInterface
isOLAP
in class PercentCalculationsSelectorDataSource
public java.util.Map getNumerators()
getNumerators
in interface PercentCalculationsSelectorDataSourceInterface
getNumerators
in class PercentCalculationsSelectorDataSource
{@link
- java.lang.IllegalStateException} if model is null.public static boolean isValidNumerator(com.sas.iquery.metadata.business.DataItem dataItem, com.sas.iquery.metadata.business.DataSelection dataSelection)
dataItem
- The DataItem to validate.dataSelection
- The DataSelection to which the DataItem belongs.
public java.util.Map getDenominators()
getDenominators
in interface PercentCalculationsSelectorDataSourceInterface
getDenominators
in class PercentCalculationsSelectorDataSource
{@link
- java.lang.IllegalStateException} if model is null.protected java.lang.String getResourceKeyForDenominatorType(int denominatorType)
getResourceKeyForDenominatorType
in class PercentCalculationsSelectorDataSource
denominatorType
- the type of aggreggate denominator.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |