-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJxCoreDataStore.h
More file actions
executable file
·37 lines (24 loc) · 1.03 KB
/
JxCoreDataStore.h
File metadata and controls
executable file
·37 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// JxCoreDataStore.h
//
// Created by Jeanette Müller on 10/31/13.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#define kStoreDidChangeNotification @"kStoreDidChangeNotification"
@interface JxCoreDataStore : NSObject
@property (nonatomic,strong,readonly) NSManagedObjectContext* mainManagedObjectContext;
- (id)initWithStoreName:(NSString *)storeName andTeamID:(NSString *)teamID;
- (void)setiCloudSyncAllowed:(BOOL)allowedSync;
- (BOOL)iCloudSyncAllowed;
- (NSManagedObjectContext *)mainManagedObjectContext;
- (NSManagedObjectContext*)newPrivateContext;
- (void)saveContext;
- (void)flushStore;
- (void)deleteAllObjects:(NSString *)entityDescription;
- (NSString *)getDBFileName;
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator;
- (BOOL)replaceCurrentSQLiteDBWithNewDB:(NSURL *)pathToNewDBFile;
- (NSURL *)getURIPrepresentationForID:(NSString *)idString andEntityName:(NSString *)entityName;
- (NSString *)getStringPrepresentationForID:(NSString *)idString andEntityName:(NSString *)entityName;
@end