|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.ranking.Util
public class Util
Utility class to contain common methods used by the Ranking Selector.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static java.util.Map |
businessModeldataItemNames(com.sas.iquery.metadata.business.BusinessModel dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType)
Returns the list of the names and IDs of the DataItems of a specific type contained in a BusinessModel. |
static java.util.Map |
dataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType)
Returns the list of the names and IDs of the DataItems of a specific type contained in a BusinessQuery. |
static java.util.Map |
dataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType,
java.lang.Integer expressionType)
Returns the list of the names and IDs of the DataItems of a specific structure type and expression type contained in a BusinessQuery. |
static java.lang.String |
getMeasureLabel(com.sas.iquery.metadata.business.BusinessModel dataModel,
java.lang.String measureUniqueName)
Deprecated. no more used |
static java.util.Map |
getRankEnabledDataItemNames(java.util.Collection dataItemIds,
com.sas.iquery.metadata.business.BusinessQuery dataModel)
Given a collection of DataItem ids in a BusinessQuery returns the list of the ids and labels of those DataItems that are rank enabled. |
static boolean |
isRankSupported(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider)
Checks if a BusinessQueryProviderInterface like a BusinessQueryToOLAPDataSetAdapter or a BusinessQueryAdapter can be ranked. |
static java.util.Map |
OLAPDataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel)
Returns the list of the names and IDs of the OLAP DataItems contained in a BusinessQuery. |
static java.util.Map |
OLAPDataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.DataItemActionType actionType)
Returns the list of the names and IDs of the OLAP DataItems contained in a BusinessQuery that support a specific action. |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static java.util.Map dataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType,
java.lang.Integer expressionType)
throws com.sas.iquery.metadata.InvalidIDException
dataModel - the data modelstructureType - the StructureOfDataItem object, valid values are
StructureOfDataItem.STRUCTURE_COLUMN,
StructureOfDataItem.STRUCTURE_DIMENSION,
StructureOfDataItem.STRUCTURE_HIERARCHY,
StructureOfDataItem.STRUCTURE_LEVEL,
StructureOfDataItem.STRUCTURE_MEASURE.expressionType - the expression type see ExpressionTypes for valid values
com.sas.iquery.metadata.InvalidIDException - if cannot get the dataitem idBusinessQuery,
DataItem
public static java.util.Map dataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType)
throws com.sas.iquery.metadata.InvalidIDException
dataModel - the data modelstructureType - the StructureOfDataItem object, valid values are
StructureOfDataItem.STRUCTURE_COLUMN,
StructureOfDataItem.STRUCTURE_DIMENSION,
StructureOfDataItem.STRUCTURE_HIERARCHY,
StructureOfDataItem.STRUCTURE_LEVEL,
StructureOfDataItem.STRUCTURE_MEASURE.
com.sas.iquery.metadata.InvalidIDException - if cannot get the dataitem idBusinessQuery,
DataItem
public static java.util.Map businessModeldataItemNames(com.sas.iquery.metadata.business.BusinessModel dataModel,
com.sas.iquery.metadata.business.StructureOfDataItem structureType)
throws com.sas.iquery.metadata.InvalidIDException
dataModel - the data modelstructureType - the StructureOfDataItem object, valid values are
StructureOfDataItem.STRUCTURE_COLUMN,
StructureOfDataItem.STRUCTURE_DIMENSION,
StructureOfDataItem.STRUCTURE_HIERARCHY,
StructureOfDataItem.STRUCTURE_LEVEL,
StructureOfDataItem.STRUCTURE_MEASURE.
com.sas.iquery.metadata.InvalidIDException - if cannot get the dataitem idBusinessModel,
DataItem
public static java.util.Map OLAPDataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel)
throws com.sas.iquery.metadata.InvalidIDException
StructureOfDataItem.STRUCTURE_DIMENSION,
StructureOfDataItem.STRUCTURE_HIERARCHY,
StructureOfDataItem.STRUCTURE_LEVEL.
dataModel - the data model
com.sas.iquery.metadata.InvalidIDException - if cannot get the DataItem idBusinessQuery,
DataItem
public static java.util.Map OLAPDataItemNames(com.sas.iquery.metadata.business.BusinessQuery dataModel,
com.sas.iquery.metadata.business.DataItemActionType actionType)
throws com.sas.iquery.metadata.InvalidIDException
StructureOfDataItem.STRUCTURE_DIMENSION,
StructureOfDataItem.STRUCTURE_HIERARCHY,
StructureOfDataItem.STRUCTURE_LEVEL.
dataModel - the data modelactionType - the DataItemActionType object, if it's null no checking for the support of the action occurs,
com.sas.iquery.metadata.InvalidIDExceptionBusinessQuery,
DataItem,
DataItemActionType
public static java.lang.String getMeasureLabel(com.sas.iquery.metadata.business.BusinessModel dataModel,
java.lang.String measureUniqueName)
dataModel - the data modelmeasureUniqueName - the unique name of a measure Data Item
public static boolean isRankSupported(com.sas.iquery.intelligentquery.BusinessQueryProviderInterface bqProvider)
bqProvider - the BusinessQueryProviderInterface object
BusinessQueryProviderInterface,
BusinessQueryToOLAPDataSetAdapter,
BusinessQueryAdapter,
BusinessQuery,
DataItem
public static java.util.Map getRankEnabledDataItemNames(java.util.Collection dataItemIds,
com.sas.iquery.metadata.business.BusinessQuery dataModel)
dataItemIds - the collection of DataItem idsdataModel - the BusinessQuery object
BusinessQuery,
DataItem
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||