27 #define ASSIGN(VAR, VAL) [(VAR) autorelease], (VAR)=[(VAL) retain]
30 #define DESTROY(VAR) [(VAR) release], (VAR)=nil
33 #define TEST_RELEASE(VAR) if(VAR) [(VAR) release]
40 #import <CoreData/CoreData.h>
41 #import "CoreDataUtilities.h"
43 @interface NSAttributeDescription (GSCoreDataPrivate)
45 - (void) _setAttributeValueClassName: (NSString *) aClassName;
49 @interface NSPropertyDescription (GSCoreDataPrivate)
51 - (void) _setEntity: (NSEntityDescription *) entity;
52 - (void) _ensureEditableWithReason: (NSString *) aReason;
56 @interface NSEntityDescription (GSCoreDataPrivate)
58 - (void) _addReferenceToManagedObjectModel: (NSManagedObjectModel *) aModel;
59 - (NSDictionary *) _fetchedPropertiesByName;
60 - (NSDictionary *) _filteredPropertiesOfClass: (Class) aClass;
61 - (void) _removeReferenceToManagedObjectModel: (NSManagedObjectModel *) aModel;
62 - (void) _setSuperentity: (NSEntityDescription *) anEntityDescription;
66 @interface NSManagedObject (GSCoreDataPrivate)
68 - (id) _initAsFaultWithEntity: (NSEntityDescription *) entity
69 ownedByContext: (NSManagedObjectContext *) context;
73 - (void) _setDeleted: (BOOL) flag;
74 - (void) _setFault: (BOOL) flag;
76 - (void) _insertedIntoContext: (NSManagedObjectContext *) context;
77 - (void) _removedFromContext;
78 - (NSPropertyDescription *) _validatedPropertyForKey: (NSString *) key;
83 - (NSArray *) _allPropertiesOfSubclass: (Class) aClass;
85 - (BOOL) _validateValue: (
id *) value
86 forKey: (NSString *) key
87 error: (NSError **) error
88 property: (NSPropertyDescription *) desc;
90 - (id) _primitiveValueForKey: (NSString *) key doValidation: (BOOL) flag;
92 - (void) _setPrimitiveValue: (
id) value
93 forKey: (NSString *) key
94 doValidation: (BOOL) validationFlag;
100 @interface NSManagedObjectID (GSCoreDataPrivate)
105 - (id) _initWithEntity: (NSEntityDescription *) entity;
108 - (id) _initWithEntity: (NSEntityDescription *) entity
110 value: (
unsigned long long) value;
113 - (
unsigned long long) _value;
118 @interface NSManagedObjectModel (GSCoreDataPrivate)
122 - (id) _initWithContentsOfFile: (NSString *) aFilePath;
127 - (NSDictionary *) _configurationsByName;
131 - (void) _removeFetchRequestTemplateForName: (NSString *) aName;
134 - (NSDictionary *) _fetchRequestsByName;
148 - (BOOL) _isEditable;
152 - (void) _incrementUseCount;
154 - (void) _decrementUseCount;
158 @interface NSPersistentStoreCoordinator (GSCoreDataPrivate)
170 + (void) _addPersistentStoreType: (NSString *) newStoreType
171 handledByClass: (Class) aClass;
176 + (NSArray *) _supportedPersistentStoreTypes;
Nn abstract superclass from which concrete implementations of various persistent store types are subc...
For implementation notes see "Documentation/NSManagedObjectID.txt" in the source distribution of the ...