mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Add task markup for Core Data category comments
This commit is contained in:
@@ -15,6 +15,10 @@
|
||||
*/
|
||||
@interface NSManagedObject (RKAdditions)
|
||||
|
||||
///--------------------------------------
|
||||
/// @name Inspecting Managed Object State
|
||||
///--------------------------------------
|
||||
|
||||
/**
|
||||
Determines if the receiver has been deleted from the persistent store
|
||||
and removed from the object graph.
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
*/
|
||||
@interface NSManagedObjectContext (RKAdditions)
|
||||
|
||||
///---------------------------------
|
||||
/// @name Inserting a Managed Object
|
||||
///---------------------------------
|
||||
|
||||
/**
|
||||
Inserts a new managed object for the entity for the given name.
|
||||
|
||||
@@ -28,6 +32,10 @@
|
||||
*/
|
||||
- (id)insertNewObjectForEntityForName:(NSString *)entityName;
|
||||
|
||||
///-------------------------------
|
||||
/// @name Counting Managed Objects
|
||||
///-------------------------------
|
||||
|
||||
/**
|
||||
Convenience method for performing a count of the number of instances of an entity with the given name.
|
||||
|
||||
@@ -46,6 +54,10 @@
|
||||
*/
|
||||
- (NSUInteger)countForEntityForName:(NSString *)entityName predicate:(NSPredicate *)predicate error:(NSError **)error;
|
||||
|
||||
///----------------------------------------------
|
||||
/// @name Fetching Managed Objects by Primary Key
|
||||
///----------------------------------------------
|
||||
|
||||
/**
|
||||
Fetches a single managed object for the given entity with the given value for the primary key attribute
|
||||
in the receiver.
|
||||
@@ -66,6 +78,10 @@
|
||||
*/
|
||||
- (id)fetchObjectForEntityForName:(NSString *)entityName withValueForPrimaryKeyAttribute:(id)primaryKeyValue;
|
||||
|
||||
///-------------------------------------------------
|
||||
/// @name Saving the Context to the Persistent Store
|
||||
///-------------------------------------------------
|
||||
|
||||
/**
|
||||
Saves the receiver and then traverses up the parent context chain until a parent managed object context
|
||||
with a nil parent is found. If the final ancestor context does not have a reference to the persistent store
|
||||
|
||||
Reference in New Issue
Block a user