mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Merge remote branch 'origin/0.9' into core-data-cleanup
Conflicts: Code/CoreData/CoreData.h Code/CoreData/RKManagedObjectStore.h Code/CoreData/RKManagedObjectStore.m Code/CoreData/RKObjectSeeder.h Code/CoreData/RKObjectSeeder.m Code/ObjectMapping/RKObjectLoader.m Code/ObjectMapping/RKObjectManager.m Code/ObjectMapping/RKObjectMapper.m RestKit.xcodeproj/project.pbxproj
This commit is contained in:
@@ -24,9 +24,20 @@ extern NSString* const RKManagedObjectStoreDidFailSaveNotification;
|
||||
NSObject<RKManagedObjectCache>* _managedObjectCache;
|
||||
}
|
||||
|
||||
// The filename of the database backing this object store
|
||||
@property (nonatomic, readonly) NSString* storeFilename;
|
||||
|
||||
// The full path to the database backing this object store
|
||||
@property (nonatomic, readonly) NSString* pathToStoreFile;
|
||||
|
||||
// Core Data
|
||||
@property (nonatomic, readonly) NSManagedObjectModel* managedObjectModel;
|
||||
@property (nonatomic, readonly) NSPersistentStoreCoordinator* persistentStoreCoordinator;
|
||||
|
||||
/**
|
||||
* Managed object cache provides support for automatic removal of objects pruned
|
||||
* from a server side load. Also used to provide offline object loading
|
||||
*/
|
||||
@property (nonatomic, retain) NSObject<RKManagedObjectCache>* managedObjectCache;
|
||||
|
||||
/*
|
||||
@@ -39,7 +50,20 @@ extern NSString* const RKManagedObjectStoreDidFailSaveNotification;
|
||||
/**
|
||||
* Initialize a new managed object store with a SQLite database with the filename specified
|
||||
*/
|
||||
- (id)initWithStoreFilename:(NSString*)storeFilename;
|
||||
+ (RKManagedObjectStore*)objectStoreWithStoreFilename:(NSString*)storeFilename;
|
||||
|
||||
/**
|
||||
* Initialize a new managed object store backed by a SQLite database with the specified filename. If a seed database name is provided
|
||||
* and no existing database is found, initialize the store by copying the seed database from the main bundle. If the managed object model
|
||||
* provided is nil, all models will be merged from the main bundle for you.
|
||||
*/
|
||||
+ (RKManagedObjectStore*)objectStoreWithStoreFilename:(NSString *)storeFilename usingSeedDatabaseName:(NSString *)nilOrNameOfSeedDatabaseInMainBundle managedObjectModel:(NSManagedObjectModel*)nilOrManagedObjectModel;
|
||||
|
||||
/**
|
||||
* Initialize a new managed object store with a SQLite database with the filename specified
|
||||
* @deprecated
|
||||
*/
|
||||
- (id)initWithStoreFilename:(NSString*)storeFilename DEPRECATED_ATTRIBUTE;
|
||||
|
||||
/**
|
||||
* Save the current contents of the managed object store
|
||||
|
||||
Reference in New Issue
Block a user