CBEQueryChain

Superclass:
NSObject
Declared In:

Introduction

to do a search for Object combining more than one (CBEContainer*)table.



Methods

-getQueryResult
-join:key1:key2:constraints:containerForResults:joinDelegate:
-join:key1:key2:constraints:joinDelegate:
-join:key1:key2:containerForResults:joinDelegate:
-join:key1:key2:joinDelegate:

getQueryResult


-(CBEQueryResult*) getQueryResult; 
Discussion

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:key1:key2:constraints:containerForResults:joinDelegate:


-(CBEQueryChain*) join:(CBEContainer*) containerToQuery key1:(NSString*) key1 
        key2:(NSString*) key2 constraints:(CBEFilter*) constraints 
        containerForResults:(CBEContainer*) containerForResults 
        joinDelegate:(id<JoinDelegatePtr>) joinDelegate; 
Parameters
constraints

A filter that provides any constraints for the query.

Discussion

Same as join:(Container,(NSString*),(NSString*),Container,delegate::JoinDelegatePtr), but with an additional Filter parameter \p constraints .


join:key1:key2:constraints:joinDelegate:


-(CBEQueryChain*) join:(CBEContainer*) containerToQuery key1:(NSString*) key1 
        key2:(NSString*) key2 constraints:(CBEFilter*) constraints 
        joinDelegate:(id<JoinDelegatePtr>) joinDelegate; 
Parameters
constraints

A filter that provides any constraints for the query.

Discussion

Same as join:(Container,(NSString*),(NSString*),delegate::JoinDelegatePtr), but with an additional Filter parameter \p constraints .


join:key1:key2:containerForResults:joinDelegate:


-(CBEQueryChain*) join:(CBEContainer*) containerToQuery key1:(NSString*) key1 
        key2:(NSString*) key2 containerForResults:(CBEContainer*) containerForResults 
        joinDelegate:(id<JoinDelegatePtr>) joinDelegate; 
Parameters
containerForResults

Can be the (CBEContainer*)from the previous query if desired items should be from that container.

Discussion

Same as join:(Container,(NSString*),(NSString*),delegate::JoinDelegatePtr), but with an additional (CBEContainer*)parameter \p containerForResults .


join:key1:key2:joinDelegate:


-(CBEQueryChain*) join:(CBEContainer*) containerToQuery key1:(NSString*) key1 
        key2:(NSString*) key2 joinDelegate:(id<JoinDelegatePtr>) joinDelegate; 
Parameters
containerToQuery

The (CBEContainer*)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 \p containerToQuery on which to perform the join

joinDelegate

Pointer to a delegate::JoinDelegate "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.

Discussion

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.