|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.ranking.OLAPRankingSelectorAdapter
public class OLAPRankingSelectorAdapter
Ranking Selector adapter for multidimensional data.
Field Summary |
---|
Fields inherited from class com.sas.dataselectors.ranking.BaseRankingSelectorAdapter |
---|
bundle, dataItems, dataModel, locale, model, rankStatuses, RB_KEY, valuesFromDataModel |
Fields inherited from interface com.sas.dataselectors.ranking.RankingSelectorInterface |
---|
NO_RANK |
Constructor Summary | |
---|---|
OLAPRankingSelectorAdapter()
Default constructor. |
Method Summary | |
---|---|
int |
countRankTypeValue()
Returns the value associated to the "Count" ranking type. |
java.lang.String |
dataItemRankStatus(java.lang.String dataItemID)
Returns the localized string describing the rank status for a DataItem. |
java.lang.String[][] |
getLocalizedBasedOnMeasures(java.lang.String dataItemId)
Returns the values used to populate the choice box of the "based on" measures for a specific DataItem. |
java.lang.String[][] |
getMeasuresWhereClauses(java.lang.String dataItemId)
Retuns the set of the based on measures and associated where clauses for a specific DataItem. |
java.lang.String |
getMeasureUniqueName(java.lang.String adapterAssignedId)
Given the id the adapter assigned to a "based on" measure, returns the unique name the measure has in the BusinessModel. |
java.lang.String |
getSelectedBasedOnMeasureId(java.lang.String dataItemId)
Returns the id of the "based on" measure that have to be preselected in the choice box of the "based on" measures for a specific DataItem. |
protected void |
initDataItems()
Reading from the data model fills the dataItems instance variable with the ranking attributes of all the data items in the data model. |
java.lang.String |
measureDataItemID(java.lang.String dataItemID)
Deprecated. no more used |
java.util.Map |
rankableLevelNames()
Returns the list of the names of the levels that can be ranked. |
java.util.Map |
rankableMeasureNames()
Deprecated. |
java.lang.String |
rankingLevelName()
Returns the name of the level to rank. |
void |
rankingLevelName(java.lang.String levelName)
Sets the name of the level to rank. |
java.lang.String |
rankingMeasureName()
Returns the name of the measure to rank. |
void |
rankingMeasureName(java.lang.String measureName)
Sets the name of the measure to rank. |
java.util.Map |
rankTypes()
Returns the list of the available rank types. |
void |
setBasedOnMeasureId(java.lang.String basedOnMeasureId,
java.lang.String dataItemId)
In the list of the data items, for the specified data item sets the id of the based on measure. |
void |
setIncludeTies(java.lang.String isIncludeTies)
Sets if the ties are included. |
void |
updateWhereClause(java.lang.String dataItemId,
java.lang.String basedOnMeasureId,
java.lang.String[] whereClause,
java.lang.String[] whereValue)
In the list of the data items, update the info of the where clause associated to a based on measure for a specific data item. |
java.lang.String[] |
whereClauses(java.lang.String dataItemID)
Given the id of a data item to rank returns the associated where clauses. |
Methods inherited from class com.sas.dataselectors.ranking.BaseRankingSelectorAdapter |
---|
dataItems, dataItems, dataModel, dataModel, getIncludeTies, getIncludeTies, getLocale, getLocalizedInfoText, getLocalizedText, getModel, getRankFilter, includeTies, includeTies, includeTies, percentageRanking, percentageRanking, rankingCount, rankingCount, rankOrder, rankStatuses, rankStatuses, rankType, rankType, rankType, rankValue, setLocale, setModel, topRanking, topRanking, valuesFromDataModel, valuesFromDataModel |
Methods inherited from interface com.sas.dataselectors.ranking.RankingSelectorInterface |
---|
getIncludeTies, getIncludeTies, getLocale, getLocalizedInfoText, getLocalizedText, getModel, includeTies, includeTies, includeTies, percentageRanking, percentageRanking, rankingCount, rankingCount, rankOrder, rankType, rankType, rankType, rankValue, setLocale, setModel, topRanking, topRanking, valuesFromDataModel, valuesFromDataModel |
Constructor Detail |
---|
public OLAPRankingSelectorAdapter()
Method Detail |
---|
public java.lang.String rankingMeasureName()
OLAPRankingSelectorInterface
rankingMeasureName
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
public java.lang.String rankingLevelName()
OLAPRankingSelectorInterface
rankingLevelName
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
public java.util.Map rankableLevelNames()
OLAPRankingSelectorInterface
rankableLevelNames
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
public java.util.Map rankableMeasureNames()
OLAPRankingSelectorInterface
rankableMeasureNames
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
public void rankingMeasureName(java.lang.String measureName)
OLAPRankingSelectorInterface
rankingMeasureName
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
public void rankingLevelName(java.lang.String levelName)
OLAPRankingSelectorInterface
rankingLevelName
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
levelName
- The name of the level to rankpublic java.util.Map rankTypes()
BaseRankingSelectorAdapter
rankTypes
in interface RankingSelectorInterface
rankTypes
in class BaseRankingSelectorAdapter
public java.lang.String dataItemRankStatus(java.lang.String dataItemID)
BaseRankingSelectorAdapter
dataItemRankStatus
in interface RankingSelectorInterface
dataItemRankStatus
in class BaseRankingSelectorAdapter
dataItemID
- the DataItam id
protected void initDataItems()
BaseRankingSelectorAdapter
initDataItems
in class BaseRankingSelectorAdapter
public java.lang.String measureDataItemID(java.lang.String dataItemID)
OLAPRankingSelectorInterface
measureDataItemID
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemID
- the data item unique identifier
public java.lang.String[] whereClauses(java.lang.String dataItemID)
OLAPRankingSelectorInterface
whereClauses
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemID
- the data item unique identifier
RankingSelectorComponents.VALUE_SEPARATOR
,
the first part is the id of the data item which the where belongs like DS_0.DIR_3 (for Time)
the second part is the unique name of the where clause applied to the data item like [TIME].[All TIME].[1993]
the third part is a more readeable value of the where clause like [1993]
null is returned if either the received dataItemID is null or not found in the data model
an empty array is returned if there are no where clauses applied to the data itempublic int countRankTypeValue()
RankingSelectorInterface
countRankTypeValue
in interface RankingSelectorInterface
countRankTypeValue
in class BaseRankingSelectorAdapter
public void setIncludeTies(java.lang.String isIncludeTies)
RankingSelectorInterface
setIncludeTies
in interface RankingSelectorInterface
setIncludeTies
in class BaseRankingSelectorAdapter
isIncludeTies
- valid values are:
RankingSelectorComponents.INCLUDE_TIES
,
RankingSelectorComponents.NOT_INCLUDE_TIES
,
RankingSelectorComponents.TIES_NOT_APPLICABLE
public java.lang.String getMeasureUniqueName(java.lang.String adapterAssignedId)
OLAPRankingSelectorInterface
getMeasureUniqueName
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
adapterAssignedId
- the id the adapter assigned to the measure, something like "12345"
BusinessModel
public java.lang.String[][] getLocalizedBasedOnMeasures(java.lang.String dataItemId)
OLAPRankingSelectorInterface
getLocalizedBasedOnMeasures
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemId
- the ID of the DataItem in the BusinessQuery
BusinessQuery
,
DataItem
public java.lang.String getSelectedBasedOnMeasureId(java.lang.String dataItemId)
OLAPRankingSelectorInterface
getSelectedBasedOnMeasureId
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemId
- the ID of the DataItem in the BusinessQuery
BusinessQuery
,
DataItem
public void setBasedOnMeasureId(java.lang.String basedOnMeasureId, java.lang.String dataItemId)
OLAPRankingSelectorInterface
setBasedOnMeasureId
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
basedOnMeasureId
- the id of the based on measure to setdataItemId
- the data item idDataItem
public void updateWhereClause(java.lang.String dataItemId, java.lang.String basedOnMeasureId, java.lang.String[] whereClause, java.lang.String[] whereValue)
OLAPRankingSelectorInterface
updateWhereClause
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemId
- the ID of the DataItem in the BusinessQuerybasedOnMeasureId
- the ID of the "based on" measure which the where clause is associated to. It's one of the IDs returned by the getLocalizedBasedOnMeasures() methodwhereClause
- the new where clause to be applied to the based on measure of the specified data item.
Example: whereClause[0]="[All Time].[Year].[1994].[Q1].[Jan]" whereClause[1]="[All Products].[FURNITURE].[SOFA]" when whereClause contains only one empty String like whereClause[0]="" it means the where clause must be cleared for the specified based on measure for the specified data item
whereValue
- the new where clause values to be displayed to the user.
Example: whereClause[0]="Jan" whereClause[1]="SOFA"
BusinessQuery
,
DataItem
public java.lang.String[][] getMeasuresWhereClauses(java.lang.String dataItemId)
OLAPRankingSelectorInterface
getMeasuresWhereClauses
in interface com.sas.dataselectors.ranking.OLAPRankingSelectorInterface
dataItemId
- the ID of the DataItem in the BusinessQuery
measureID is the unique id assigned to the measure by the adapter, something like 505
whereClause is, separated by tabs(\t), the set of the where clauses associated to the measure, something like [All Time].[Year].[1994].[Q1].[Jan]\t[All Products].[FURNITURE].[SOFA]
whereValue is, separated by tabs(\t), the set of the where clause descriptions associated to the measure, something like Jan\tSOFA
whereID is, separated by tabs(\t), the set of the ids of the dataitems used to generate the where clauses, something like DS_0.DIR1\tDS_0.DIR3
BusinessQuery
,
DataItem
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |