public class Query extends QueryPOA implements Query
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aosObj |
protected 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.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
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) |
void |
executeQuery(NameValue[] params)
Execute query in asynchronous mode.
|
protected void |
finalize() |
static org.omg.CORBA.Object |
getInstance(long cObjPtr,
AoSession aosObj) |
InstanceElementIterator |
getInstances()
Get the query result.
|
QueryEvaluator |
getQueryEvaluator()
Get the QueryEvaluator object which is responsible for this query.
|
QueryStatus |
getStatus()
Return query status.
|
NameValueSeqUnit[] |
getTable()
Get the query result.
|
NameValueUnitSequenceIterator |
getTableRows()
Get the query result.
|
void |
prepareQuery(NameValue[] params)
Do the query pre-processing (optimization, etc.)
|
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
protected long cObjPtr
protected AoSession aosObj
public static org.omg.CORBA.Object getInstance(long cObjPtr, AoSession aosObj)
public QueryEvaluator getQueryEvaluator() throws AoException
getQueryEvaluator
in interface QueryOperations
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_TRANSACTION_NOT_ACTIVEpublic void prepareQuery(NameValue[] params) throws AoException
prepareQuery
in interface QueryOperations
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_RESULTTYPEpublic void executeQuery(NameValue[] params) throws AoException
executeQuery
in interface QueryOperations
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_RESULTTYPEpublic QueryStatus getStatus() throws AoException
getStatus
in interface QueryOperations
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_ACTIVEpublic InstanceElementIterator getInstances() throws AoException
getInstances
in interface QueryOperations
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_RESULTTYPEpublic NameValueUnitSequenceIterator getTableRows() throws AoException
getTableRows
in interface QueryOperations
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_RESULTTYPEpublic NameValueSeqUnit[] getTable() throws AoException
getTable
in interface QueryOperations
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_RESULTTYPEprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public 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.Object
public 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.Object
public org.omg.CORBA.Object _duplicate()
_duplicate
in interface org.omg.CORBA.Object
public org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers
in interface org.omg.CORBA.Object
public org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy
in interface org.omg.CORBA.Object
public int _hash(int maximum)
_hash
in interface org.omg.CORBA.Object
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
public void _release()
_release
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _request(java.lang.String operation)
_request
in interface org.omg.CORBA.Object
public 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