|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.edit.models.providers.BusinessQueryDynamicValuesProvider
public class BusinessQueryDynamicValuesProvider
Provider of distinct formatted and unformatted values for a data item from an information map.
The ID of the data item and the path to the information map containing this data item are
passed to the BusinessQueryDynamicValueProvider through its constructor. The values are retrieved by the
getMapOfValues
method.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
BusinessQueryDynamicValuesProvider(java.lang.String mapPath,
java.lang.String dataItemID,
com.sas.iquery.metadata.business.DataItemActionType sortDirection,
int maxValues)
Constructs a new BusinessQueryDynamicValuesProvider. |
Method Summary | |
---|---|
java.lang.String |
getDataItemID()
Returns the ID of the data item to retrieve values for when the getMapOfValues method is called. |
java.util.Map |
getMapOfValues(java.lang.Object context)
Returns a map of distinct data item unformatted\formatted value pairs from an information map. |
java.lang.String |
getMapPath()
Returns the string representation of the path to the information map containing the data item to retrieve values for when the getMapOfValues method is called. |
int |
getMaxValues()
Returns the maximum number of values returned from the getMapOfValues method, or
-1 if all values should be returned. |
com.sas.iquery.metadata.business.DataItemActionType |
getSortDirection()
Returns the DataItemActionType constant that determines how the values returned from the getMapOfValues method will be sorted. |
static java.util.Map |
getValueMap(com.sas.iquery.dataretrieval.QueryConnectorInterface queryConnector,
com.sas.services.session.SessionContextInterface sessionContext,
java.lang.String mapPath,
java.lang.String dataItemID,
com.sas.iquery.metadata.business.DataItemActionType sortDirection,
int maxValues)
Returns a map of distinct unformatted\formatted value pairs for the specified data item ID and information map defined by the mapPath. |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public BusinessQueryDynamicValuesProvider(java.lang.String mapPath, java.lang.String dataItemID, com.sas.iquery.metadata.business.DataItemActionType sortDirection, int maxValues)
A default sort order of DataItemActionType.SORT_NONE will be used if the sortDirection
argument is null. A value
of -1 should be used for the maxValues
argument to return all values for the data item.
mapPath
- a string of the form SBIP://repository/root[/path]/mapName[(type)] used to construct a PathURL to the information map containing the data item to retrieve values fordataItemId
- the ID of the data item to retrieve values forsortDirection
- the DataItemActionType constant determining the sort order of the values returnedmaxValues
- the maximum number of values to return, or -1 to return all valuesMethod Detail |
---|
public java.lang.String getDataItemID()
getMapOfValues
method is called.
getMapOfValues
method is calledgetMapOfValues(java.lang.Object)
public java.lang.String getMapPath()
getMapOfValues
method is called. A valid map path must start with "SBIP://", have a repository name,
a root tree name, and a map name. It may also have a path, and a type.
getMapOfValues(java.lang.Object)
public com.sas.iquery.metadata.business.DataItemActionType getSortDirection()
getMapOfValues
method will be sorted. Possible values are DataItemActionType.SORT_DESCENDING,
DataItemActionType.SORT_ASCENDING, and DataItemActionType.SORT_NONE.
getMapOfValues
methodgetMapOfValues(java.lang.Object)
public int getMaxValues()
getMapOfValues
method, or
-1 if all values should be returned.
getMapOfValues(java.lang.Object)
public java.util.Map getMapOfValues(java.lang.Object context)
The specified context
must be an Object[] containing a valid SessionContextInterface as the first item in the array
and a QueryConnectorInterface as the second item in the array. If the second item (the QueryConnectorInterface) is null, then a
new QueryConnector with a connection lifetime of ACQUIRE_RELEASE will be used.
getMapOfValues
in interface DynamicValuesProviderInterface
context
- an Object[] containing a SessionContextInterface as the first item and a QueryConnectorInterface (or null) as the second item
java.lang.IllegalStateException
- if an error occurs while obtaining the data item valuesgetMapPath()
,
getDataItemID()
,
#getMapSortDirection
,
getMaxValues()
public static java.util.Map getValueMap(com.sas.iquery.dataretrieval.QueryConnectorInterface queryConnector, com.sas.services.session.SessionContextInterface sessionContext, java.lang.String mapPath, java.lang.String dataItemID, com.sas.iquery.metadata.business.DataItemActionType sortDirection, int maxValues) throws com.sas.iquery.intelligentquery.IntelligentQueryException, com.sas.iquery.execution2.ExecutionException, com.sas.iquery.metadata.MetadataException, java.sql.SQLException
queryConnector
- sessionContext
- The session to use to perform this function within the context of.mapPath
- a string of the form SBIP://repository/root[/path]/mapName[(type)] used to construct a PathURL to the information mapdataItemID
- the ID of the dataItem to return the values forsortDirection
- the sort order of the returned valuesmaxValues
- the max number of values to return; -1 to return all valuesservice
- An IQ metadata service containing IQ's configuration/knowledge/etc.
com.sas.iquery.intelligentquery.IntelligentQueryException
com.sas.iquery.execution2.ExecutionException
com.sas.iquery.metadata.MetadataException
com.sas.iquery.dataservices.DataServicesException
java.sql.SQLException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |