public interface QueryEvaluatorOperations
Modifier and Type | Method and Description |
---|---|
Query |
createQuery(java.lang.String queryStr,
NameValue[] params)
(25003)
Create a query object to execute it in asynchronous mode.
|
InstanceElementIterator |
getInstances(java.lang.String queryStr,
NameValue[] params)
(25000)
Evaluate a query in synchronous mode.
|
NameValueSeqUnit[] |
getTable(java.lang.String queryStr,
NameValue[] params)
(25002)
Evaluate a query in synchronous mode.
|
NameValueUnitSequenceIterator |
getTableRows(java.lang.String queryStr,
NameValue[] params)
(25001)
Evaluate a query in synchronous mode.
|
InstanceElementIterator getInstances(java.lang.String queryStr, NameValue[] params) throws AoException
queryStr
- The query string.params
- Sequence of parameter names and values. The
following parameters should be passed:
Name: "MaxDuration";
Type: T_LONG
Comment: Can be used to restrict the processing
time. The time is given in milliseconds,
Default value: 0 (no restriction)AoException
- with the following possible error codes:
AO_QUERY_TYPE_INVALID
AO_QUERY_INVALID
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameValueUnitSequenceIterator getTableRows(java.lang.String queryStr, NameValue[] params) throws AoException
queryStr
- The query string.params
- Sequence of parameter names and values. The
following parameters should be passed:
Name: "MaxDuration";
Type: T_LONG
Comment: Can be used to restrict the processing
time. The time is given in milliseconds,
Default value: 0 (no restriction)AoException
- with the following possible error codes:
AO_QUERY_TYPE_INVALID
AO_QUERY_INVALID
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameValueSeqUnit[] getTable(java.lang.String queryStr, NameValue[] params) throws AoException
queryStr
- The query string.params
- Sequence of parameter names and values. The
following parameters should be passed:
Name: "MaxDuration";
Type: T_LONG
Comment: Can be used to restrict the processing
time. The time is given in milliseconds,
Default value: 0 (no restriction)AoException
- with the following possible error codes:
AO_QUERY_TYPE_INVALID
AO_QUERY_INVALID
AO_QUERY_PROCESSING_ERROR
AO_QUERY_TIMEOUT_EXCEEDED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEQuery createQuery(java.lang.String queryStr, NameValue[] params) throws AoException
queryStr
- The query stringparams
- 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.
Default value: INSTELEM_ITERATOR_AS_RESULT
Name: "MaxDuration";
Type: T_LONG
Comment: Can be used to restrict the processing
time. The time is given in milliseconds,
Default value: 0 (no restriction)AoException
- with the following possible error codes:
AO_QUERY_TYPE_INVALID
AO_QUERY_INVALID
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE