CSSynchronousDataTransaction
@objc
public final class CSSynchronousDataTransaction : CSBaseDataTransaction, CoreStoreObjectiveCType
The CSSynchronousDataTransaction serves as the Objective-C bridging type for SynchronousDataTransaction.
See also
SynchronousDataTransaction
-
Saves the transaction changes and waits for completion synchronously. This method should not be used after the
-commitAndWaitWithError:method was already called once.Declaration
Swift
@objc public func commitAndWait(error: NSErrorPointer) -> BoolParameters
errorthe
CSErrorpointer that indicates the reason in case of an failureReturn Value
YESif the commit succeeded,NOif the commit failed. IfNO, theerrorargument will hold error information.
-
Creates a new
NSManagedObjectwith the specified entity type.Declaration
Swift
@objc public override func createInto(_ into: CSInto) -> AnyParameters
intothe
CSIntoclause indicating the destinationNSManagedObjectentity type and the destination configurationReturn Value
a new
NSManagedObjectinstance of the specified entity type. -
Returns an editable proxy of a specified
NSManagedObject. This method should not be used after the-commitAndWaitmethod was already called once.Declaration
Swift
@objc public override func editObject(_ object: NSManagedObject?) -> Any?Parameters
objectthe
NSManagedObjecttype to be editedReturn Value
an editable proxy for the specified
NSManagedObject. -
Returns an editable proxy of the object with the specified
NSManagedObjectID. This method should not be used after the-commitAndWaitmethod was already called once.Declaration
Swift
@objc public override func editInto(_ into: CSInto, objectID: NSManagedObjectID) -> Any?Parameters
intoa
CSIntoclause specifying the entity typeobjectIDthe
NSManagedObjectIDfor the object to be editedReturn Value
an editable proxy for the specified
NSManagedObject. -
Deletes a specified
NSManagedObject. This method should not be used after the-commitAndWaitmethod was already called once.Declaration
Swift
@objc public override func deleteObject(_ object: NSManagedObject?)Parameters
objectthe
NSManagedObjecttype to be deleted -
Deletes the specified
NSManagedObjects.Declaration
Swift
public override func deleteObjects(_ objects: [NSManagedObject])Parameters
objectsthe
NSManagedObjects to be deleted
-
Declaration
Swift
public typealias SwiftType = SynchronousDataTransaction -
Declaration
Swift
public var bridgeToSwift: SynchronousDataTransaction { get } -
Declaration
Swift
public required init(_ swiftValue: SynchronousDataTransaction)
View on GitHub
CSSynchronousDataTransaction Class Reference