|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.dataretrieval.SimpleQueryConnector
public class SimpleQueryConnector
A basic query connector without result or connection management.
Please don't instantiate this class directly! Consumers should use the
QueryConnector subclass or
QueryConnectorInterface.
See the package-level documentation for com.sas.iquery.dataretrieval for
examples of how to use the query connector.
QueryConnectorInterface,
QueryConnector| Method Summary | |
|---|---|
java.util.Locale |
getComputationalLocale()
Returns the Locale to override all query computations submitted
or null if the computation locale of the query is not to be overridden. |
java.lang.String |
getPhysicalQuery(BusinessQuery businessQuery)
Returns the generated query as a string, excluding connection information. |
java.lang.String |
getResultSetStructure(BusinessQuery businessQuery)
Returns information about the structure of a result set. |
RetrievalPolicy |
getRetrievalPolicy()
Returns the query connector's current retrieval policy as last set by the setRetrievalPolicy(RetrievalPolicy) method or
the default if not explicitly set. |
com.sas.iquery.execution.instructions.StpNames |
getStpNames()
Returns the stored process assigned names cache. |
java.util.Map<java.lang.String,ResultSetInterface> |
retrieveQueryResultMap(java.util.List queries)
Creates a map of query results (ResultSetInterface), based on a list of input business queries. |
java.util.Map<java.lang.String,ResultSetInterface> |
retrieveQueryResultMap(java.util.List queries,
RetrievalPolicy retrievalPolicy)
Creates a map of query results, based on a list of input business queries. |
void |
setComputationalLocale(java.util.Locale overrideComputationalLocale)
Sets the Locale to override all query computations submitted
or if the computation locale of the query is not to be overridden then use null. |
void |
setRetrievalPolicy(RetrievalPolicy policy)
Sets a retrieval policy on the query connector. |
void |
setStpNames(com.sas.iquery.execution.instructions.StpNames stpNames)
sets the stored process assigned names cache. |
| Method Detail |
|---|
public RetrievalPolicy getRetrievalPolicy()
setRetrievalPolicy(RetrievalPolicy) method or
the default if not explicitly set.
public void setRetrievalPolicy(RetrievalPolicy policy)
This retrieval policy will be used if the retrieveQueryResultMap(List)
method is called.
@NonNull
public java.util.Map<java.lang.String,ResultSetInterface> retrieveQueryResultMap(java.util.List queries,
RetrievalPolicy retrievalPolicy)
throws DataRetrievalException
The keys of the resulting map are the ID's of the input business queries. Use the
IntelligentQueryInterface.getID() method to determine the id.
The input list must fulfill the following requirements:
BusinessQuery, for example DataSelection
queries - a list of business queries to executeretrievalPolicy - the policy to use for executing
ResultSetInterface results
DataRetrievalExceptionretrieveQueryResultMap(List)
@NonNull
public java.util.Map<java.lang.String,ResultSetInterface> retrieveQueryResultMap(java.util.List queries)
throws DataRetrievalException
Uses the retrieval policy returned by getRetrievalPolicy().
BusinessQuery
queries - a list of business queries to execute
ResultSetInterface results
DataRetrievalExceptionretrieveQueryResultMap(List,RetrievalPolicy)
public java.lang.String getPhysicalQuery(BusinessQuery businessQuery)
throws com.sas.iquery.intelligentquery.IntelligentQueryException
businessQuery - The business query to generate code for
com.sas.iquery.intelligentquery.IntelligentQueryException
public java.lang.String getResultSetStructure(BusinessQuery businessQuery)
throws com.sas.iquery.intelligentquery.IntelligentQueryException
businessQuery - The query to examine
com.sas.iquery.intelligentquery.IntelligentQueryException - If the structure cannot be determinedpublic java.util.Locale getComputationalLocale()
Locale to override all query computations submitted
or null if the computation locale of the query is not to be overridden.
getComputationalLocale in interface com.sas.iquery.execution.OverrideLocaleInterfaceQueryConnectorInterface.getComputationalLocale(),
BusinessModel.getComputationalLocale()public void setComputationalLocale(java.util.Locale overrideComputationalLocale)
Locale to override all query computations submitted
or if the computation locale of the query is not to be overridden then use null.
setComputationalLocale in interface com.sas.iquery.execution.OverrideLocaleInterfacecomputationLocale - Locale to override query computation locale or null to not override.QueryConnectorInterface.setComputationalLocale(Locale),
BusinessModel.setComputationalLocale(Locale)public com.sas.iquery.execution.instructions.StpNames getStpNames()
OverrideStpNamesInterface
getStpNames in interface com.sas.iquery.execution.OverrideStpNamesInterfaceOverrideStpNamesInterface.getStpNames()public void setStpNames(com.sas.iquery.execution.instructions.StpNames stpNames)
OverrideStpNamesInterface
setStpNames in interface com.sas.iquery.execution.OverrideStpNamesInterfaceOverrideStpNamesInterface.setStpNames(com.sas.iquery.execution.instructions.StpNames)
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||