|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSelection
Specifies an object that is a business model and that provides the specification of a business query.
Sample code to run a query after a DataSelection has been created based upon an InformationMap // a few imports import com.sas.iquery.intelligentquery.QueryConnectionInterface; import com.sas.iquery.dataretrieval.QueryConnector; import com.sas.iquery.execution2.ResultSetInterface import com.sas.iquery.metadata.business.DataSelectionFactory import com.sas.iquery.metadata.business.DataSelection // Create the data selection object based upon another business model (info map) InformationMap infoMap = ... // assuming already available in this code snippet DataSelection dataSelection = DataSelectionFactory.newDataSelection(infoMap); // Add the maps data items to the list result item list in the data selection List dataItems = infoMap.getObjects(false, DataItem.class); dataSelection.addResultItems(dataItems, Role.COLUMN); // Create the query connector QueryConnectionInterface queryConnector = new QueryConnector(); java.util.List selections = new java.util.ArrayList(); // pass in the selections as a list selections.add( dataSelection ); java.util.Map results = queryConnector.retrieveQueryResultMap( selections ); // get a map of the results // Get ResultSet we're interested in ResultSetInterface resultset = (ResultSetInterface)results.get( dataSelection.getID( ) );
Field Summary |
---|
Fields inherited from interface com.sas.iquery.metadata.business.BusinessModel |
---|
EVENT_BUSINESS_ITEMS_CHANGED, EVENT_BUSINESS_RULES_CHANGED, EVENT_CHILD_ADDED, EVENT_CHILD_REMOVED, EVENT_DATA_SOURCES_CHANGED, GETOBJECTS_DEFAULT_SEARCH_CRITERIA, GETOBJECTS_INCLUDE_BASE_MODELS, GETOBJECTS_INCLUDE_HIDDEN, INVALID_ID_CHARS, SEARCH_NONRECURSIVELY, SEARCH_THRU_ALL, SEARCH_THRU_PROMPTS, SEARCH_THRU_SUBDATAITEMS, SEARCH_THRU_SUBFILTERS |
Fields inherited from interface com.sas.iquery.metadata.business.Model |
---|
EVENT_DESCRIPTION_CHANGED, EVENT_ID_CHANGED, EVENT_LABEL_CHANGED, INTERMODEL_ID_DELIMITER |
Fields inherited from interface com.sas.iquery.metadata.business.Base |
---|
EVENT_OBJECT_DEFINITION_CHANGED |
Method Summary |
---|
Methods inherited from interface com.sas.iquery.metadata.business.Model |
---|
computeModelVersion, dispose, getDescription, getID, getLabel, getLastPersistedModelVersion, setDescription, setID, setLabel |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResource |
---|
isUnresolved |
Methods inherited from interface com.sas.iquery.metadata.NamedObjectInterface |
---|
getDescription, getLabel |
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer |
---|
getResources |
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface |
---|
getReasonsUnusable, isUsableInQuery |
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |