Package com.cbe
Class QueryChain
java.lang.Object
com.cbe.QueryChain
- Direct Known Subclasses:
QueryChainExt
To do a search for Object combining more than one Container table.
[Async] QueryChain is used when a query()
is carried out with a solely
QueryDelegate.
Anyway, if a subsequent join() will be used, an additional
JoinDelegate
is required in the join()-call.
[Async] QueryChain is used when a query()
is carried out with a solely
QueryDelegate.
Anyway, if a subsequent join() will be used, an additional
JoinDelegate
is required in the join()-call.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidfinalize()static longgetCPtr(QueryChain obj) Returns the QueryResult provided to the delegate after the the last query()
or join() call.join(Container containerToQuery, String key1, String key2, Container containerForResults, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,delegate::JoinDelegatePtr),
but with an additional Container parametercontainerForResults.join(Container containerToQuery, String key1, String key2, JoinDelegate joinDelegate) Performs a join request in conjunction with a query, or previous join,
to get related items from another container.join(Container containerToQuery, String key1, String key2, Filter constraints, Container containerForResults, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,Container,delegate::JoinDelegatePtr),
but with an additional Filter parameterconstraints.join(Container containerToQuery, String key1, String key2, Filter constraints, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,delegate::JoinDelegatePtr),
but with an additional Filter parameterconstraints.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
QueryChain
public QueryChain(long cPtr, boolean cMemoryOwn) -
QueryChain
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
join
public QueryChain join(Container containerToQuery, String key1, String key2, JoinDelegate joinDelegate) Performs a join request in conjunction with a query, or previous join,
to get related items from another container.
Asynchronous version of this service function.
- Parameters:
containerToQuery-
The container of which the join shall be done with.key1-
The key from the previous query on which to perform the join.key2-
The key on objects incontainerToQueryon which to perform the
joinjoinDelegate-
Pointer to a JoinDelegate
instance, implemented by the user, that receives the response of
this query request.
I.e., either of the JoinDelegate callback functions
delegate::JoinDelegate::onJoinSuccess()
"onJoinSuccess()" or
delegate::JoinDelegate::onJoinError()
"onJoinError()"
will be called.
-
join
public QueryChain join(Container containerToQuery, String key1, String key2, Filter constraints, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,delegate::JoinDelegatePtr),
but with an additional Filter parameterconstraints.
- Parameters:
constraints- A filter that provides any constraints for the query.
-
join
public QueryChain join(Container containerToQuery, String key1, String key2, Container containerForResults, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,delegate::JoinDelegatePtr),
but with an additional Container parametercontainerForResults.
- Parameters:
containerForResults- Can be the Container from the previous query if
desired items should be from that container.
-
join
public QueryChain join(Container containerToQuery, String key1, String key2, Filter constraints, Container containerForResults, JoinDelegate joinDelegate) Same as
join(Container,std::string,std::string,Container,delegate::JoinDelegatePtr),
but with an additional Filter parameterconstraints.
- Parameters:
constraints- A filter that provides any constraints for the query.
-
getQueryResult
Returns the QueryResult provided to the delegate after the the last query()
or join() call.
If this method is called before the delegate call,
an empty QueryResult is returned.
-