XMMOfflineStorageManager Class Reference

Inherits from NSObject
Declared in XMMOfflineStorageManager.h
XMMOfflineStorageManager.m

Overview

XMMOfflineStoreManager is used to fetch and delete entities from Core Data.

– save

Saves context.

- (NSError *)save

Return Value

NSError if something goes wrong.

Declared In

XMMOfflineStorageManager.h

– fetchAll:

Fetches all entities of an entityType.

- (NSArray *)fetchAll:(NSString *)entityType

Parameters

entityType

Type of the entity.

Return Value

array of entities.

Declared In

XMMOfflineStorageManager.h

– fetch:predicates:

Fetches all entities of an entityType with a predicate.

- (NSArray *)fetch:(NSString *)entityType predicates:(NSArray *)predicates

Parameters

entityType

Type of the entity.

predicates

NSPredicate to filter results.

Declared In

XMMOfflineStorageManager.h

– fetch:jsonID:

Fetches all entities with a given jsonID.

- (NSArray *)fetch:(NSString *)entityType jsonID:(NSString *)jsonID

Parameters

entityType

Type of the entity.

jsonID

ID from the xamoom cloud to identify object.

Declared In

XMMOfflineStorageManager.h

– deleteEntity:ID:

Delets entity by ID. This will automatically delete files that are save to delete by calling deleteLocalFilesWithSafetyCheck.

- (void)deleteEntity:(Class)entityClass ID:(NSString *)ID

Parameters

entityClass

Class of the entity.

ID

JsonID of the entity to delete.

Declared In

XMMOfflineStorageManager.h

– deleteAllEntities

Deletes all entities and all of their files.

- (void)deleteAllEntities

Declared In

XMMOfflineStorageManager.h

– deleteLocalFilesWithSafetyCheck

Deletes

- (void)deleteLocalFilesWithSafetyCheck

Declared In

XMMOfflineStorageManager.h