public final class CoreData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
NSFetchRequestExpressionType |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
NSAddedPersistentStoresKey()
The object values for NSAddedPersistentStoresKey and NSRemovedPersistentStoresKey will be arrays containing added/removed stores
|
static java.lang.String |
NSAffectedObjectsErrorKey()
objects prompting an error
|
static java.lang.String |
NSAffectedStoresErrorKey()
stores prompting an error
|
static java.lang.String |
NSBinaryStoreInsecureDecodingCompatibilityOption()
Indicate that the binary store should be decoded insecurely.
|
static java.lang.String |
NSBinaryStoreSecureDecodingClasses()
Allows developers to provide an additional set of classes (which must implement NSSecureCoding) that should be used while
decoding a binary store.
|
static java.lang.String |
NSBinaryStoreType() |
static java.lang.String |
NSCoreDataCoreSpotlightDelegateIndexDidUpdateNotification()
* When a change occurs to an entity or entities that are indexed in Spotlight
* using NSCoreDataCoreSpotlightDelegate, that index is updated asynchronously.
|
static java.lang.String |
NSCoreDataCoreSpotlightExporter()
Spotlight indexing and external record support keys
|
static double |
NSCoreDataVersionNumber()
Framework version
|
static java.lang.String |
NSDeletedObjectIDsKey() |
static java.lang.String |
NSDeletedObjectsKey() |
static java.lang.String |
NSDetailedErrorsKey()
if multiple validation errors occur in one operation, they are collected in an array and added with this key to the "top-level error" of the operation
|
static java.lang.Object |
NSErrorMergePolicy()
Default policy for all managed object contexts - save returns with an error that contains the object IDs of the objects that had conflicts(NSInsertedObjectsKey, NSUpdatedObjectsKey).
|
static java.lang.String |
NSIgnorePersistentStoreVersioningOption()
Options key to ignore the built-in versioning provided by Core Data.
|
static java.lang.String |
NSInferMappingModelAutomaticallyOption()
When combined with NSMigratePersistentStoresAutomaticallyOption, coordinator will attempt to infer a mapping model if none can be found
|
static java.lang.String |
NSInMemoryStoreType() |
static java.lang.String |
NSInsertedObjectIDsKey()
User info keys for NSManagedObjectContextDidSaveObjectIDsNotification: the values for these keys are sets of objectIDs
|
static java.lang.String |
NSInsertedObjectsKey()
User info keys for NSManagedObjectContextObjectsDidChangeNotification: the values for these keys are sets of managed objects
|
static java.lang.String |
NSInvalidatedAllObjectsKey()
All objects in the context have been invalidated
|
static java.lang.String |
NSInvalidatedObjectIDsKey() |
static java.lang.String |
NSInvalidatedObjectsKey() |
static java.lang.String |
NSManagedObjectContextDidMergeChangesObjectIDsNotification() |
static java.lang.String |
NSManagedObjectContextDidSaveNotification() |
static java.lang.String |
NSManagedObjectContextDidSaveObjectIDsNotification()
Notification when objects in a context changed: the user info dictionary contains information about the objectIDs that changed
|
static java.lang.String |
NSManagedObjectContextObjectsDidChangeNotification()
Notification when objects in a context changed: the user info dictionary contains information about the objects that changed and what changed
|
static java.lang.String |
NSManagedObjectContextQueryGenerationKey() |
static java.lang.String |
NSManagedObjectContextWillSaveNotification()
Notifications immediately before and immediately after the context saves.
|
static java.lang.Object |
NSMergeByPropertyObjectTrumpMergePolicy()
This singleton policy merges conflicts between the persistent store's version of the object and the current in memory version.
|
static java.lang.Object |
NSMergeByPropertyStoreTrumpMergePolicy()
This singleton policy merges conflicts between the persistent store's version of the object and the current in memory version.
|
static java.lang.String |
NSMigratePersistentStoresAutomaticallyOption()
Options key to automatically attempt to migrate versioned stores.
|
static java.lang.String |
NSMigrationDestinationObjectKey() |
static java.lang.String |
NSMigrationEntityMappingKey() |
static java.lang.String |
NSMigrationEntityPolicyKey() |
static java.lang.String |
NSMigrationManagerKey()
To access the entity migration policy keys in property mapping value expressions implemented in source code use the constants as declared.
|
static java.lang.String |
NSMigrationPropertyMappingKey() |
static java.lang.String |
NSMigrationSourceObjectKey() |
static java.lang.Object |
NSOverwriteMergePolicy()
This singleton policy overwrites all state for the changed objects in conflict The current object's state is pushed upon the persistent store.
|
static java.lang.String |
NSPersistentCloudKitContainerEventChangedNotification() |
static java.lang.String |
NSPersistentCloudKitContainerEventUserInfoKey() |
static java.lang.String |
NSPersistentHistoryTokenKey() |
static java.lang.String |
NSPersistentHistoryTrackingKey()
Dictionary key for enabling persistent history - default is NO
|
static java.lang.String |
NSPersistentStoreConnectionPoolMaxSizeKey()
User info key specifying the maximum connection pool size that should be used on a store that supports concurrent request handling, the value should be an NSNumber.
|
static java.lang.String |
NSPersistentStoreCoordinatorStoresDidChangeNotification()
user info dictionary contains information about the stores that were added or removed
|
static java.lang.String |
NSPersistentStoreCoordinatorStoresWillChangeNotification()
A notification posted before the list of open persistent stores changes, similar to NSPersistentStoreCoordinatorStoresDidChangeNotification.
|
static java.lang.String |
NSPersistentStoreCoordinatorWillRemoveStoreNotification()
sent during the invocation of NSPersistentStore's willRemoveFromPersistentStoreCoordinator during store deallocation or removal
|
static java.lang.String |
NSPersistentStoreDidImportUbiquitousContentChangesNotification()
Notification sent after records are imported from the ubiquity store.
|
static java.lang.String |
NSPersistentStoreFileProtectionKey()
Key to represent the protection class for the persistent store.
|
static java.lang.String |
NSPersistentStoreForceDestroyOption()
store option for the destroy...
|
static java.lang.String |
NSPersistentStoreOSCompatibility()
Key to represent the earliest version of MacOS X the persistent store should support.
|
static java.lang.String |
NSPersistentStoreRebuildFromUbiquitousContentOption()
NSNumber boolean indicating that the receiver should erase the local store file and rebuild it from the iCloud data in Mobile Documents.
|
static java.lang.String |
NSPersistentStoreRemoteChangeNotification()
NSPersistentStoreRemoteChangeNotification is posted for all cross process writes to the store
The payload is the store UUID (NSStoreUUIDKey), store URL (NSPersistentStoreURLKey), and NSPersistentHistoryToken for the transaction (if NSPersistentHistoryTrackingKey was also set)
|
static java.lang.String |
NSPersistentStoreRemoteChangeNotificationPostOptionKey()
When NSPersistentStoreRemoteChangeNotificationPostOptionKey is set to YES, a NSPersistentStoreRemoteChangeNotification is posted for every
write to the store, this includes writes that are done by other processes
|
static java.lang.String |
NSPersistentStoreRemoveUbiquitousMetadataOption()
NSNumber boolean indicating that the receiver should remove all associated ubiquity metadata from a persistent store.
|
static java.lang.String |
NSPersistentStoreSaveConflictsErrorKey()
key in NSError's userInfo specifying the NSArray of NSMergeConflict
|
static java.lang.String |
NSPersistentStoreTimeoutOption()
Options key specifying the connection timeout for Core Data stores.
|
static java.lang.String |
NSPersistentStoreUbiquitousContainerIdentifierKey()
NSString specifying the iCloud container identifier Core Data should pass to -URLForUbiquitousContainerIdentifier:
|
static java.lang.String |
NSPersistentStoreUbiquitousContentNameKey()
option indicating that a persistent store has a given name in ubiquity, this option is required for ubiquity to function
|
static java.lang.String |
NSPersistentStoreUbiquitousContentURLKey()
option indicating the log path to use for ubiquity logs, this option is optional for ubiquity, a default path will be generated for the store if none is provided
|
static java.lang.String |
NSPersistentStoreUbiquitousPeerTokenOption()
Optionally specified string which will be mixed in to Core Data’s identifier for each iCloud peer.
|
static java.lang.String |
NSPersistentStoreUbiquitousTransitionTypeKey()
In the NSPersistentStoreCoordinatorStoresWillChangeNotification / NSPersistentStoreCoordinatorStoresDidChangeNotification userInfo dictionaries, this identifies the type of event.
|
static java.lang.String |
NSPersistentStoreURLKey()
Keys found in the UserInfo for a NSPersistentStoreRemoteChangeNotification
|
static java.lang.String |
NSReadOnlyPersistentStoreOption()
flag indicating whether a store is treated as read-only or not - default is NO
|
static java.lang.String |
NSRefreshedObjectIDsKey() |
static java.lang.String |
NSRefreshedObjectsKey() |
static java.lang.String |
NSRemovedPersistentStoresKey() |
static java.lang.Object |
NSRollbackMergePolicy()
This singleton policy discards all state for the changed objects in conflict.
|
static java.lang.String |
NSSQLiteAnalyzeOption()
Option key to run an analysis of the store data to optimize indices based on statistical information when the store is added to the coordinator.
|
static java.lang.String |
NSSQLiteErrorDomain()
Predefined domain for SQLite errors, value of "code" will correspond to preexisting values in SQLite.
|
static java.lang.String |
NSSQLiteManualVacuumOption()
Option key to rebuild the store file, forcing a database wide defragmentation when the store is added to the coordinator.
|
static java.lang.String |
NSSQLitePragmasOption()
Options key for a dictionary of sqlite pragma settings with pragma values indexed by pragma names as keys.
|
static java.lang.String |
NSSQLiteStoreType()
Persistent store types supported by Core Data:
|
static java.lang.String |
NSStoreModelVersionHashesKey()
Key to represent the version hash information (dictionary) for the model used to create a persistent store.
|
static java.lang.String |
NSStoreModelVersionIdentifiersKey()
Key to represent the version identifier for the model used to create the store.
|
static java.lang.String |
NSStoreTypeKey()
key in the metadata dictionary to identify the store type
|
static java.lang.String |
NSStoreUUIDKey()
key in the metadata dictionary to identify the store UUID - the store UUID is useful to identify stores through URI representations, but it is NOT guaranteed to be unique (while the UUID generated for new stores is unique, users can freely copy files and thus the UUID stored inside, so developers that track/reference stores explicitly do need to be aware of duplicate UUIDs and potentially override the UUID when a new store is added to the list of known stores in their application)
|
static java.lang.String |
NSUpdatedObjectIDsKey() |
static java.lang.String |
NSUpdatedObjectsKey() |
static java.lang.String |
NSUUIDChangedPersistentStoresKey()
The object value for NSUUIDChangedPersistentStoresKey will be an array where the object at index 0 will be the old store instance, and the object at index 1 the new
|
static java.lang.String |
NSValidationKeyErrorKey()
key that failed to validate for a validation error
|
static java.lang.String |
NSValidationObjectErrorKey()
object that failed to validate for a validation error
|
static java.lang.String |
NSValidationPredicateErrorKey()
for predicate-based validation, the predicate for the condition that failed to validate
|
static java.lang.String |
NSValidationValueErrorKey()
if non-nil, the value for the key that failed to validate for a validation error
|
public static final long NSFetchRequestExpressionType
public static double NSCoreDataVersionNumber()
public static java.lang.String NSDetailedErrorsKey()
public static java.lang.String NSValidationObjectErrorKey()
public static java.lang.String NSValidationKeyErrorKey()
public static java.lang.String NSValidationPredicateErrorKey()
public static java.lang.String NSValidationValueErrorKey()
public static java.lang.String NSAffectedStoresErrorKey()
public static java.lang.String NSAffectedObjectsErrorKey()
public static java.lang.String NSPersistentStoreSaveConflictsErrorKey()
public static java.lang.String NSSQLiteErrorDomain()
public static java.lang.String NSManagedObjectContextWillSaveNotification()
public static java.lang.String NSManagedObjectContextDidSaveNotification()
public static java.lang.String NSManagedObjectContextObjectsDidChangeNotification()
public static java.lang.String NSInsertedObjectsKey()
public static java.lang.String NSUpdatedObjectsKey()
public static java.lang.String NSDeletedObjectsKey()
public static java.lang.String NSRefreshedObjectsKey()
public static java.lang.String NSInvalidatedObjectsKey()
public static java.lang.String NSManagedObjectContextQueryGenerationKey()
public static java.lang.String NSInvalidatedAllObjectsKey()
public static java.lang.Object NSErrorMergePolicy()
public static java.lang.Object NSMergeByPropertyStoreTrumpMergePolicy()
public static java.lang.Object NSMergeByPropertyObjectTrumpMergePolicy()
public static java.lang.Object NSOverwriteMergePolicy()
public static java.lang.Object NSRollbackMergePolicy()
public static java.lang.String NSSQLiteStoreType()
public static java.lang.String NSBinaryStoreType()
public static java.lang.String NSInMemoryStoreType()
public static java.lang.String NSStoreTypeKey()
public static java.lang.String NSStoreUUIDKey()
public static java.lang.String NSPersistentStoreCoordinatorStoresWillChangeNotification()
public static java.lang.String NSPersistentStoreCoordinatorStoresDidChangeNotification()
public static java.lang.String NSPersistentStoreCoordinatorWillRemoveStoreNotification()
public static java.lang.String NSAddedPersistentStoresKey()
public static java.lang.String NSRemovedPersistentStoresKey()
public static java.lang.String NSUUIDChangedPersistentStoresKey()
public static java.lang.String NSReadOnlyPersistentStoreOption()
public static java.lang.String NSPersistentStoreTimeoutOption()
public static java.lang.String NSSQLitePragmasOption()
public static java.lang.String NSSQLiteAnalyzeOption()
public static java.lang.String NSSQLiteManualVacuumOption()
public static java.lang.String NSIgnorePersistentStoreVersioningOption()
public static java.lang.String NSMigratePersistentStoresAutomaticallyOption()
public static java.lang.String NSInferMappingModelAutomaticallyOption()
public static java.lang.String NSStoreModelVersionHashesKey()
public static java.lang.String NSStoreModelVersionIdentifiersKey()
public static java.lang.String NSPersistentStoreOSCompatibility()
public static java.lang.String NSPersistentStoreConnectionPoolMaxSizeKey()
public static java.lang.String NSPersistentStoreForceDestroyOption()
public static java.lang.String NSPersistentStoreFileProtectionKey()
public static java.lang.String NSPersistentStoreUbiquitousContentNameKey()
public static java.lang.String NSPersistentStoreUbiquitousContentURLKey()
public static java.lang.String NSPersistentStoreDidImportUbiquitousContentChangesNotification()
public static java.lang.String NSPersistentStoreUbiquitousTransitionTypeKey()
public static java.lang.String NSPersistentStoreUbiquitousPeerTokenOption()
public static java.lang.String NSPersistentStoreRemoveUbiquitousMetadataOption()
public static java.lang.String NSPersistentStoreUbiquitousContainerIdentifierKey()
public static java.lang.String NSPersistentStoreRebuildFromUbiquitousContentOption()
public static java.lang.String NSMigrationManagerKey()
public static java.lang.String NSMigrationSourceObjectKey()
public static java.lang.String NSMigrationDestinationObjectKey()
public static java.lang.String NSMigrationEntityMappingKey()
public static java.lang.String NSMigrationPropertyMappingKey()
public static java.lang.String NSMigrationEntityPolicyKey()
public static java.lang.String NSCoreDataCoreSpotlightExporter()
public static java.lang.String NSPersistentHistoryTrackingKey()
public static java.lang.String NSBinaryStoreSecureDecodingClasses()
public static java.lang.String NSBinaryStoreInsecureDecodingCompatibilityOption()
public static java.lang.String NSPersistentStoreRemoteChangeNotificationPostOptionKey()
public static java.lang.String NSPersistentStoreRemoteChangeNotification()
public static java.lang.String NSPersistentStoreURLKey()
public static java.lang.String NSPersistentHistoryTokenKey()
public static java.lang.String NSManagedObjectContextDidSaveObjectIDsNotification()
public static java.lang.String NSManagedObjectContextDidMergeChangesObjectIDsNotification()
public static java.lang.String NSInsertedObjectIDsKey()
public static java.lang.String NSUpdatedObjectIDsKey()
public static java.lang.String NSDeletedObjectIDsKey()
public static java.lang.String NSRefreshedObjectIDsKey()
public static java.lang.String NSInvalidatedObjectIDsKey()
public static java.lang.String NSPersistentCloudKitContainerEventChangedNotification()
public static java.lang.String NSPersistentCloudKitContainerEventUserInfoKey()
public static java.lang.String NSCoreDataCoreSpotlightDelegateIndexDidUpdateNotification()
* NSStoreUUIDKey: A NSString UUID of the store that contains the * NSCoreDataCoreSpotlightDelegate that updated its index. * NSPersistentHistoryTokenKey: The NSPersistentHistoryToken of the store that * contains the NSCoreDataCoreSpotlightDelegate that updated its index.