XMMOfflineStorageManager Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | XMMOfflineStorageManager.h XMMOfflineStorageManager.m |
– save
Saves context.
- (NSError *)saveReturn Value
NSError if something goes wrong.
Declared In
XMMOfflineStorageManager.h
– fetchAll:
Fetches all entities of an entityType.
- (NSArray *)fetchAll:(NSString *)entityTypeParameters
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 *)predicatesParameters
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 *)jsonIDParameters
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 *)IDParameters
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)deleteAllEntitiesDeclared In
XMMOfflineStorageManager.h
– deleteLocalFilesWithSafetyCheck
Deletes
- (void)deleteLocalFilesWithSafetyCheckDeclared In
XMMOfflineStorageManager.h