DITWriteTransactionPendingIDSpecificOperation
@interface DITWriteTransactionPendingIDSpecificOperation : NSObject
These objects are returned when using findByID functionality on DITScopedWriteTransactions.
You can use them to perform updates on a document and remove or evict a document.
-
Execute the find operation to return the document with the matching ID.
Declaration
Objective-C
- (DITDocument *_Nullable)exec;Return Value
The
DITDocumentwith the ID provided in thefindByIDcall ornilif the document was not found. -
Remove the document with the matching ID.
Declaration
Objective-C
- (BOOL)remove;Return Value
trueif the document was found and removed.falseif the document wasn’t found and therefore wasn’t removed. -
Evict the document with the matching ID.
Declaration
Objective-C
- (BOOL)evict;Return Value
trueif the document was found and evicted.falseif the document wasn’t found and therefore wasn’t evicted. -
Update the document with the matching ID.
Declaration
Objective-C
- (nonnull NSArray<DITUpdateResult *> *)updateWithBlock: (nonnull void (^)(DITMutableDocument *_Nullable))block;Parameters
blockA block that gets called with the document matching the ID. If found, the document is a
DITMutableDocument, so you can call update-related functions on it. If the document is not found then the value provided to the block will benil.Return Value
A list of
DITUpdateResults that describe the updates that were performed on the document.
DITWriteTransactionPendingIDSpecificOperation Class Reference