EVDataStore Class Reference
| Inherits from | NSObject |
| Declared in | EVDataStore.h |
Tasks
-
+ sharedInstanceReturns the shared instance of the local data store.
-
– fetch:uniqueId:block:Retrieves the EVObject with the specified id in background.
-
– fetch:uniqueId:target:selector:Retrieves the EVObject with the specified id in background
-
– fetchAll:block:Retrieves all the EVObject in background.
-
– fetchAll:target:selector:Retrieves all the EVObject in background.
-
– create:block:Creates a new EVObject in background.
-
– create:target:selector:Saves a new EVObject in background.
-
– update:block:updates the EVObject in background.
-
– update:target:selector:updates the EVObject in background.
-
– update:withPredicate:block:updates the EVObject in background.
-
– remove:block:Removes the EVObject in background.
-
– remove:target:selector:Removes the EVObject in background.
-
– remove:withPredicate:block:Removes the EVObject in background.
-
– executeFetchRequest:block:Retrieves an array of objects that meet the criteria specified by a given fetch request.
-
– executeFetchRequest:target:selector:Retrieves an array of objects that meet the criteria specified by a given fetch request.
-
– countForFetchRequest:block:Retrieves the count of objects that meet the criteria specified by a given fetch request.
-
– countForFetchRequest:target:selector:Retrieves the count of objects that meet the criteria specified by a given fetch request.
Instance Methods
countForFetchRequest:block:
Retrieves the count of objects that meet the criteria specified by a given fetch request.
- (void)countForFetchRequest:(EVFetchRequest *)request block:(EVScalarResultBlock)blockParameters
- request
A fetch request that specifies the search criteria for the fetch.
- block
The block to execute. The block should have the following argument signature: (NSUInteger result, NSError *error)
Declared In
EVDataStore.hcountForFetchRequest:target:selector:
Retrieves the count of objects that meet the criteria specified by a given fetch request.
- (void)countForFetchRequest:(EVFetchRequest *)request target:(id)target selector:(SEL)selectorParameters
- request
A fetch request that specifies the search criteria for the fetch.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(NSUInteger)result error:(NSError*)error. error will be nill on success.
Declared In
EVDataStore.hcreate:block:
Creates a new EVObject in background.
- (void)create:(id)object block:(EVObjectResultBlock)blockParameters
- object
The object to be created.
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.hcreate:target:selector:
Saves a new EVObject in background.
- (void)create:(id)object target:(id)target selector:(SEL)selectorParameters
- object
The object instance to be created in everlive.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(id)result error:(NSError*)error. error will be nill on success.
Declared In
EVDataStore.hexecuteFetchRequest:block:
Retrieves an array of objects that meet the criteria specified by a given fetch request.
- (void)executeFetchRequest:(EVFetchRequest *)request block:(EVObjectFetchResultBlock)blockParameters
- request
A fetch request that specifies the search criteria for the fetch.
- block
The block to execute. The block should have the following argument signature: (NSArray result, NSError error)
Declared In
EVDataStore.hexecuteFetchRequest:target:selector:
Retrieves an array of objects that meet the criteria specified by a given fetch request.
- (void)executeFetchRequest:(EVFetchRequest *)request target:(id)target selector:(SEL)selectorParameters
- request
A fetch request that specifies the search criteria for the fetch.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(NSArray)result error:(NSError)error. error will be nill on success.
Declared In
EVDataStore.hfetch:uniqueId:block:
Retrieves the EVObject with the specified id in background.
- (void)fetch:(Class)aClass uniqueId:(NSString *)uniqueId block:(EVObjectFetchResultBlock)blockParameters
- aClass
The EVObject type to retreive.
- uniqueId
The id of the item
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.hfetch:uniqueId:target:selector:
Retrieves the EVObject with the specified id in background
- (void)fetch:(Class)aClass uniqueId:(NSString *)uniqueId target:(id)target selector:(SEL)selectorParameters
- aClass
The EVObject type to retrieve
- uniqueId
The id of the item
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(NSArray)result error:(NSError)error. error will be nill on success.
Declared In
EVDataStore.hfetchAll:block:
Retrieves all the EVObject in background.
- (void)fetchAll:(Class)aClass block:(EVObjectFetchResultBlock)blockParameters
- aClass
The EVObject type to retreive.
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.hfetchAll:target:selector:
Retrieves all the EVObject in background.
- (void)fetchAll:(Class)aClass target:(id)target selector:(SEL)selectorParameters
- aClass
The EVObject type to retreive.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(NSArray)result error:(NSError)error. error will be nill on success.
Declared In
EVDataStore.hremove:block:
Removes the EVObject in background.
- (void)remove:(id)object block:(EVObjectResultBlock)blockParameters
- object
The object to be deleted.
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.hremove:target:selector:
Removes the EVObject in background.
- (void)remove:(id)object target:(id)target selector:(SEL)selectorParameters
- object
The object instance to be removed from everlive.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(BOOL)success error:(NSError*)error. error will be nill on success.
Declared In
EVDataStore.hremove:withPredicate:block:
Removes the EVObject in background.
- (void)remove:(Class)aClass withPredicate:(NSPredicate *)predicate block:(EVObjectResultBlock)blockParameters
- aClass
The EVObject type.
- predicate
The filers to be applied.
- block
The block to execute. The block should have the following argument signature:(void)requestCompletedWithResult(BOOL success, NSError *error)
Declared In
EVDataStore.hupdate:block:
updates the EVObject in background.
- (void)update:(id)object block:(EVObjectResultBlock)blockParameters
- object
The object instance to be updated in everlive.
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.hupdate:target:selector:
updates the EVObject in background.
- (void)update:(id)object target:(id)target selector:(SEL)selectorParameters
- object
The object instance to be updated in everlive.
- target
The object to call selector on.
- selector
The selector to call. It should have the following signature: (void)requestCompletedWithResult:(BOOL)success error:(NSError*)error. error will be nill on success.
Declared In
EVDataStore.hupdate:withPredicate:block:
updates the EVObject in background.
- (void)update:(id)object withPredicate:(NSPredicate *)predicate block:(EVObjectResultBlock)blockParameters
- object
The object instance to be updated in everlive.
- predicate
The filers to be applied
- block
The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)
Declared In
EVDataStore.h