public class QueryEvaluator extends java.lang.Object implements QueryEvaluator
| Modifier and Type | Field and Description |
|---|---|
protected long |
cObjPtr |
| Constructor and Description |
|---|
QueryEvaluator() |
QueryEvaluator(long cObjPtr) |
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Object |
_get_interface_def() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(java.lang.String repositoryIdentifier) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
boolean |
_non_existent() |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
Query |
createQuery(java.lang.String queryStr,
NameValue[] params)
Create a query object to execute it in asynchronous mode.
|
boolean |
equals(java.lang.Object obj) |
protected void |
finalize() |
InstanceElementIterator |
getInstances(java.lang.String queryStr,
NameValue[] params)
Evaluate a query in synchronous mode.
|
NameValueSeqUnit[] |
getTable(java.lang.String queryStr,
NameValue[] params)
Evaluate a query in synchronous mode.
|
NameValueUnitSequenceIterator |
getTableRows(java.lang.String queryStr,
NameValue[] params)
Evaluate a query in synchronous mode.
|
public QueryEvaluator()
public QueryEvaluator(long cObjPtr)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic InstanceElementIterator getInstances(java.lang.String queryStr, NameValue[] params) throws AoException
getInstances in interface QueryEvaluatorOperationsqueryStr - 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_ACTIVEpublic NameValueUnitSequenceIterator getTableRows(java.lang.String queryStr, NameValue[] params) throws AoException
getTableRows in interface QueryEvaluatorOperationsqueryStr - 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_ACTIVEpublic NameValueSeqUnit[] getTable(java.lang.String queryStr, NameValue[] params) throws AoException
getTable in interface QueryEvaluatorOperationsqueryStr - 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_ACTIVEpublic Query createQuery(java.lang.String queryStr, NameValue[] params) throws AoException
createQuery in interface QueryEvaluatorOperationsqueryStr - 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_ACTIVEprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _get_interface_def()
_get_interface_def in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic boolean _is_a(java.lang.String repositoryIdentifier)
_is_a in interface org.omg.CORBA.Objectpublic boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent in interface org.omg.CORBA.Objectpublic boolean _non_existent()
_non_existent in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Object