Inherits from NSObject
Declared in EVDataStore.h

Overview

An Everlive framework object that is the local abstraction of the store in Everlive cloud.

Tasks

Class Methods

sharedInstance

Returns the shared instance of the local data store.

+ (id)sharedInstance

Declared In

EVDataStore.h

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)block

Parameters

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.h

countForFetchRequest: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)selector

Parameters

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.h

create:block:

Creates a new EVObject in background.

- (void)create:(id)object block:(EVObjectResultBlock)block

Parameters

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.h

create:target:selector:

Saves a new EVObject in background.

- (void)create:(id)object target:(id)target selector:(SEL)selector

Parameters

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.h

executeFetchRequest:block:

Retrieves an array of objects that meet the criteria specified by a given fetch request.

- (void)executeFetchRequest:(EVFetchRequest *)request block:(EVObjectFetchResultBlock)block

Parameters

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.h

executeFetchRequest: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)selector

Parameters

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.h

fetch:uniqueId:block:

Retrieves the EVObject with the specified id in background.

- (void)fetch:(Class)aClass uniqueId:(NSString *)uniqueId block:(EVObjectFetchResultBlock)block

Parameters

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.h

fetch:uniqueId:target:selector:

Retrieves the EVObject with the specified id in background

- (void)fetch:(Class)aClass uniqueId:(NSString *)uniqueId target:(id)target selector:(SEL)selector

Parameters

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.h

fetchAll:block:

Retrieves all the EVObject in background.

- (void)fetchAll:(Class)aClass block:(EVObjectFetchResultBlock)block

Parameters

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.h

fetchAll:target:selector:

Retrieves all the EVObject in background.

- (void)fetchAll:(Class)aClass target:(id)target selector:(SEL)selector

Parameters

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.h

remove:block:

Removes the EVObject in background.

- (void)remove:(id)object block:(EVObjectResultBlock)block

Parameters

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.h

remove:target:selector:

Removes the EVObject in background.

- (void)remove:(id)object target:(id)target selector:(SEL)selector

Parameters

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.h

remove:withPredicate:block:

Removes the EVObject in background.

- (void)remove:(Class)aClass withPredicate:(NSPredicate *)predicate block:(EVObjectResultBlock)block

Parameters

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.h

update:block:

updates the EVObject in background.

- (void)update:(id)object block:(EVObjectResultBlock)block

Parameters

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.h

update:target:selector:

updates the EVObject in background.

- (void)update:(id)object target:(id)target selector:(SEL)selector

Parameters

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.h

update:withPredicate:block:

updates the EVObject in background.

- (void)update:(id)object withPredicate:(NSPredicate *)predicate block:(EVObjectResultBlock)block

Parameters

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