|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.dataretrieval.QueryConnector
public class QueryConnector
Retrieves result sets by executing business queries.
The query connector allows users to execute business queries to retrieve result sets which
provide access to data. It internally manages server connections and previously retrieved result
sets. The behaviour of the query connector is controlled by retrieval policies.
The
specifics of retrieving result sets for a query is determined by different strategies as
specified by the individual business query.
See the package-level documentation for com.sas.iquery.dataretrieval
for
examples of how to use the query connector.
SimpleQueryConnector
,
RetrievalPolicy
Nested Class Summary | |
---|---|
static class |
QueryConnector.CloseOptions
Contains bit values that are used to close specific resources that are managed by the QueryConnector . |
Constructor Summary | |
---|---|
QueryConnector()
Creates a new query connector to use for executing business queries. |
Method Summary | |
---|---|
void |
close(com.sas.services.session.SessionContextInterface sessionContext)
Closes all connections and result sets associated with the SessionContext specified. |
void |
closeResources(com.sas.services.session.SessionContextInterface sessionContext,
int options)
Closes resources as specified by the options. |
void |
closeResult(ResultSetInterface result)
Closes a single result set. |
Methods inherited from class com.sas.iquery.dataretrieval.SimpleQueryConnector |
---|
getComputationalLocale, getPhysicalQuery, getResultSetStructure, getRetrievalPolicy, getStpNames, retrieveQueryResultMap, retrieveQueryResultMap, setComputationalLocale, setRetrievalPolicy, setStpNames |
Methods inherited from interface com.sas.iquery.dataretrieval.QueryConnectorInterface |
---|
getComputationalLocale, getRetrievalPolicy, retrieveQueryResultMap, setComputationalLocale, setRetrievalPolicy |
Constructor Detail |
---|
public QueryConnector()
Method Detail |
---|
public void closeResources(com.sas.services.session.SessionContextInterface sessionContext, int options) throws DataRetrievalException, ExecutionException
QueryConnector.CloseOptions.SCOPE_SESSION
options bit is set, the call will close result sets
retrieved using the given session, irrespective of which QueryConnector instance was used.
If the QueryConnector.CloseOptions.SCOPE_SESSION
options bit is not set (the default), result set closing
will only affect those retrieved using this particular query connector.
closeResources
in interface QueryConnectorInterface
sessionContext
- The user's sessionoptions
- option-bits from QueryConnector.CloseOptions
DataRetrievalException
ExecutionException
public void closeResult(ResultSetInterface result) throws DataRetrievalException
closeResult
in interface QueryConnectorInterface
result
- The result set to close and stop managing.
DataRetrievalException
closeResources(SessionContextInterface, int)
public void close(com.sas.services.session.SessionContextInterface sessionContext) throws DataRetrievalException
sessionContext
- Context of the user whose connections and ResultSets should be closed
DataRetrievalException
closeResources(SessionContextInterface, int)
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |