My Project
 All Classes Functions Properties
CBQuery.h
1 /*******************************************************************************
2  * Copyright 2013 ClearBlade, Inc
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Any redistribution of this program in any form must include this copyright
9  *******************************************************************************/
10 
11 #import <Foundation/Foundation.h>
12 #import "CBItem.h"
16 @interface CBQuery : NSObject
20 @property (strong, nonatomic) NSMutableDictionary *query;
24 @property (strong, nonatomic) NSMutableArray *OR;
28 @property (strong, nonatomic) NSString *collectionID;
34 -(CBQuery *) initWithCollectionID: (NSString *) colID;
39 -(void) setCollectionID:(NSString *) colID;
45 -(void) fetchWithSuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
52 -(void) updateWithChanges:(NSMutableDictionary *)changes SuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
58 -(void) removeWithSuccessCallback: (void (^)(NSMutableArray *))successCallback ErrorCallback: (void (^)(NSError *, __strong id))failureCallback;
65 -(CBQuery *) equalTo: (NSString *) value for: (NSString *)key;
72 -(CBQuery *) notEqualTo: (NSString *) value for: (NSString *)key;
79 -(CBQuery *) greaterThan: (NSString *) value for: (NSString *)key;
86 -(CBQuery *) lessThan: (NSString *) value for: (NSString *)key;
93 -(CBQuery *) greaterThanEqualTo: (NSString *) value for: (NSString *)key;
100 -(CBQuery *) lessThanEqualTo: (NSString *) value for: (NSString *)key;
101 
102 @end
NSString * collectionID
Definition: CBQuery.h:28
Definition: CBQuery.h:16
NSMutableArray * OR
Definition: CBQuery.h:24
NSMutableDictionary * query
Definition: CBQuery.h:20