public interface QueryOperations
Modifier and Type | Method and Description |
---|---|
void |
executeQuery(NameValue[] params)
(26002)
Execute query in asynchronous mode.
|
InstanceElementIterator |
getInstances()
(26004)
Get the query result.
|
QueryEvaluator |
getQueryEvaluator()
(26000)
Get the QueryEvaluator object which is responsible for this query.
|
QueryStatus |
getStatus()
(26003)
Return query status.
|
NameValueSeqUnit[] |
getTable()
(26006)
Get the query result.
|
NameValueUnitSequenceIterator |
getTableRows()
(26005)
Get the query result.
|
void |
prepareQuery(NameValue[] params)
(26001)
Do the query pre-processing (optimization, etc.)
|
QueryEvaluator getQueryEvaluator() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid prepareQuery(NameValue[] params) throws AoException
params
- Sequence of parameter names and values. The
following parameters should be passed:
Name: "QueryResultType";
Type: ResultType.
Comment: Specifies what kind of result is expected
by the client, this parameter is required if the
parameters isn't given at the method createQuery of
the interface QueryEvaluator.
Default value: INSTELEM_ITERATOR_AS_RESULTAoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_QUERY_PROCESSING_ERROR
AO_QUERY_INVALID_RESULTTYPEvoid executeQuery(NameValue[] params) throws AoException
params
- Sequence of parameter names and values. The
following parameter should be passed:
Name: "QueryResultType";
Type: ResultType.
Comment: Specifies what kind of result is expected
by the client, this parameter is required if the
parameters isn't given at the method prepareQuery or
the method createQuery of the interface
QueryEvaluator.
Default value: INSTELEM_ITERATOR_AS_RESULT
Name: "Synchronous";
Type: T_BOOLEAN
Comment: In case of "true" guarantees synchronous
execution.
Default value: "false"AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_QUERY_PROCESSING_ERROR
AO_QUERY_INVALID_RESULTTYPEQueryStatus getStatus() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElementIterator getInstances() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_QUERY_INCOMPLETE
AO_QUERY_INVALID_RESULTTYPENameValueUnitSequenceIterator getTableRows() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_QUERY_INCOMPLETE
AO_QUERY_INVALID_RESULTTYPENameValueSeqUnit[] getTable() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_QUERY_INCOMPLETE
AO_QUERY_INVALID_RESULTTYPE