mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
34 lines
968 B
Objective-C
34 lines
968 B
Objective-C
//
|
|
// OTRestManagedObjectStore.h
|
|
// OTRestFramework
|
|
//
|
|
// Created by Blake Watters on 9/22/09.
|
|
// Copyright 2009 Objective 3. All rights reserved.
|
|
//
|
|
|
|
#import <CoreData/CoreData.h>
|
|
|
|
@interface OTRestManagedObjectStore : NSObject {
|
|
NSString* _storeFilename;
|
|
NSManagedObjectModel* _managedObjectModel;
|
|
NSPersistentStoreCoordinator* _persistentStoreCoordinator;
|
|
NSManagedObjectContext* _managedObjectContext;
|
|
}
|
|
|
|
@property (nonatomic, readonly) NSString* storeFilename;
|
|
@property (nonatomic, readonly) NSManagedObjectModel *managedObjectModel;
|
|
@property (nonatomic, readonly) NSManagedObjectContext *managedObjectContext;
|
|
@property (nonatomic, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
|
|
|
|
/**
|
|
* Initialize a new managed object store with a SQLite database with the filename specified
|
|
*/
|
|
- (id)initWithStoreFilename:(NSString*)storeFilename;
|
|
|
|
/**
|
|
* Save the current contents of the managed object store
|
|
*/
|
|
- (NSError*)save;
|
|
|
|
@end
|