Instance Method

referenceObject(for:)

Returns the reference data used to construct a given object ID.

Declaration

func referenceObject(for objectID: NSManagedObjectID) -> Any

Parameters

objectID

An object ID created by the receiver.

Return Value

The reference data used to construct objectID.

Discussion

This method raises an invalidArgumentException if the object ID was not created by the receiving store.

You should not override this method.

See Also

Manipulating Managed Objects

func execute(NSPersistentStoreRequest, with: NSManagedObjectContext?) -> Any

Returns a value as appropriate for the given request, or nil if the request cannot be completed.

func newValuesForObject(with: NSManagedObjectID, with: NSManagedObjectContext) -> NSIncrementalStoreNode

Returns an incremental store node encapsulating the persistent external values of the object with a given object ID.

func newValue(forRelationship: NSRelationshipDescription, forObjectWith: NSManagedObjectID, with: NSManagedObjectContext?) -> Any

Returns the relationship for the given relationship of the object with a given object ID.

func obtainPermanentIDs(for: [NSManagedObject]) -> [NSManagedObjectID]

Returns an array containing the object IDs for a given array of newly-inserted objects.