To do a search for Object combining more than one Container table.
More...
#include <QueryChain.h>
|
QueryChain | join (Container containerToQuery, std::string key1, std::string key2, JoinDelegatePtr joinDelegate) |
|
QueryChain | join (Container containerToQuery, std::string key1, std::string key2, Filter constraints, JoinDelegatePtr joinDelegate) |
|
QueryChain | join (Container containerToQuery, std::string key1, std::string key2, Container containerForResults, JoinDelegatePtr joinDelegate) |
|
QueryChain | join (Container containerToQuery, std::string key1, std::string key2, Filter constraints, Container containerForResults, JoinDelegatePtr joinDelegate) |
|
QueryResult | getQueryResult () const |
|
| QueryChain (cbe::DefaultCtor) |
|
| operator bool () const |
|
|
class | CloudBackend |
|
class | Container |
|
class | QueryChainSync |
|
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.
◆ 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.
◆ join() [1/4]
QueryChain cbe::QueryChain::join |
( |
Container |
containerToQuery, |
|
|
std::string |
key1, |
|
|
std::string |
key2, |
|
|
Container |
containerForResults, |
|
|
JoinDelegatePtr |
joinDelegate |
|
) |
| |
◆ join() [2/4]
QueryChain cbe::QueryChain::join |
( |
Container |
containerToQuery, |
|
|
std::string |
key1, |
|
|
std::string |
key2, |
|
|
Filter |
constraints, |
|
|
Container |
containerForResults, |
|
|
JoinDelegatePtr |
joinDelegate |
|
) |
| |
◆ join() [3/4]
QueryChain cbe::QueryChain::join |
( |
Container |
containerToQuery, |
|
|
std::string |
key1, |
|
|
std::string |
key2, |
|
|
Filter |
constraints, |
|
|
JoinDelegatePtr |
joinDelegate |
|
) |
| |
◆ join() [4/4]
QueryChain cbe::QueryChain::join |
( |
Container |
containerToQuery, |
|
|
std::string |
key1, |
|
|
std::string |
key2, |
|
|
JoinDelegatePtr |
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 in containerToQuery on which to perform the join |
joinDelegate | 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 onJoinSuccess() or onJoinError() will be called. |
The documentation for this class was generated from the following file: