public class CKModifyRecordsOperation extends CKDatabaseOperation
| Modifier and Type | Class and Description |
|---|---|
static interface |
CKModifyRecordsOperation.Block_modifyRecordsCompletionBlock_ret |
static interface |
CKModifyRecordsOperation.Block_perRecordCompletionBlock_ret |
static interface |
CKModifyRecordsOperation.Block_perRecordDeleteBlock_ret |
static interface |
CKModifyRecordsOperation.Block_perRecordProgressBlock_ret |
static interface |
CKModifyRecordsOperation.Block_perRecordSaveBlock_ret |
static interface |
CKModifyRecordsOperation.Block_setModifyRecordsCompletionBlock |
static interface |
CKModifyRecordsOperation.Block_setPerRecordCompletionBlock |
static interface |
CKModifyRecordsOperation.Block_setPerRecordDeleteBlock |
static interface |
CKModifyRecordsOperation.Block_setPerRecordProgressBlock |
static interface |
CKModifyRecordsOperation.Block_setPerRecordSaveBlock |
CKOperation.Block_longLivedOperationWasPersistedBlock_ret, CKOperation.Block_setLongLivedOperationWasPersistedBlockNSOperation.Block_completionBlock_ret, NSOperation.Block_setCompletionBlockNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CKModifyRecordsOperation(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static CKModifyRecordsOperation |
alloc() |
static CKModifyRecordsOperation |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
atomic()
Determines whether the batch should fail atomically or not.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSData |
clientChangeTokenData()
This property is kept by the server to identify the last known request from this client.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
CKModifyRecordsOperation |
init() |
CKModifyRecordsOperation |
initWithRecordsToSaveRecordIDsToDelete(NSArray<? extends CKRecord> records,
NSArray<? extends CKRecordID> recordIDs) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
CKModifyRecordsOperation.Block_modifyRecordsCompletionBlock_ret |
modifyRecordsCompletionBlock()
This block is called when the operation completes.
|
static CKModifyRecordsOperation |
new_objc() |
CKModifyRecordsOperation.Block_perRecordCompletionBlock_ret |
perRecordCompletionBlock()
Called on success or failure for each record.
|
CKModifyRecordsOperation.Block_perRecordDeleteBlock_ret |
perRecordDeleteBlock()
Called on success or failure of a record deletion
|
CKModifyRecordsOperation.Block_perRecordProgressBlock_ret |
perRecordProgressBlock()
Indicates the progress for each record.
|
CKModifyRecordsOperation.Block_perRecordSaveBlock_ret |
perRecordSaveBlock()
Called on success or failure of a record save
|
NSArray<? extends CKRecordID> |
recordIDsToDelete() |
NSArray<? extends CKRecord> |
recordsToSave() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
savePolicy()
The default value is @c CKRecordSaveIfServerRecordUnchanged.
|
void |
setAtomic(boolean value)
Determines whether the batch should fail atomically or not.
|
void |
setClientChangeTokenData(NSData value)
This property is kept by the server to identify the last known request from this client.
|
void |
setModifyRecordsCompletionBlock(CKModifyRecordsOperation.Block_setModifyRecordsCompletionBlock value)
This block is called when the operation completes.
|
void |
setPerRecordCompletionBlock(CKModifyRecordsOperation.Block_setPerRecordCompletionBlock value)
Called on success or failure for each record.
|
void |
setPerRecordDeleteBlock(CKModifyRecordsOperation.Block_setPerRecordDeleteBlock value)
Called on success or failure of a record deletion
|
void |
setPerRecordProgressBlock(CKModifyRecordsOperation.Block_setPerRecordProgressBlock value)
Indicates the progress for each record.
|
void |
setPerRecordSaveBlock(CKModifyRecordsOperation.Block_setPerRecordSaveBlock value)
Called on success or failure of a record save
|
void |
setRecordIDsToDelete(NSArray<? extends CKRecordID> value) |
void |
setRecordsToSave(NSArray<? extends CKRecord> value) |
void |
setSavePolicy(long value)
The default value is @c CKRecordSaveIfServerRecordUnchanged.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
database, setDatabaseallowsCellularAccess, configuration, container, group, isLongLived, longLivedOperationWasPersistedBlock, operationID, setAllowsCellularAccess, setConfiguration, setContainer, setGroup, setLongLived, setLongLivedOperationWasPersistedBlock, setTimeoutIntervalForRequest, setTimeoutIntervalForResource, timeoutIntervalForRequest, timeoutIntervalForResourceaddDependency, cancel, completionBlock, dependencies, isAsynchronous, isCancelled, isConcurrent, isExecuting, isFinished, isReady, main, name, qualityOfService, queuePriority, removeDependency, setCompletionBlock, setName, setQualityOfService, setQueuePriority, setThreadPriority, start, threadPriority, waitUntilFinishedaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected CKModifyRecordsOperation(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static CKModifyRecordsOperation alloc()
public static CKModifyRecordsOperation allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CKModifyRecordsOperation new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public boolean atomic()
YES by default. Server-side write atomicity is only enforced on zones that have @c CKRecordZoneCapabilityAtomic. If @c isAtomic is YES, client-side checks are enforced regardless of the zone's capabilities. (For example, if a record is malformed, and cannot be sent to the server, the client will forcibly fail all other records-to-be-modified in that zone)
public NSData clientChangeTokenData()
public CKModifyRecordsOperation init()
init in class CKDatabaseOperationpublic CKModifyRecordsOperation initWithRecordsToSaveRecordIDsToDelete(NSArray<? extends CKRecord> records, NSArray<? extends CKRecordID> recordIDs)
public CKModifyRecordsOperation.Block_modifyRecordsCompletionBlock_ret modifyRecordsCompletionBlock()
The @code -[NSOperation completionBlock] @endcode will also be called if both are set. If the error is @c CKErrorPartialFailure, the error's userInfo dictionary contains a dictionary of recordIDs to errors keyed off of @c CKPartialErrorsByItemIDKey. [@c] savedRecords, @c deletedRecordIDs and any @c CKPartialErrorsByItemIDKey errors are repeats of the data sent back in previous @c perRecordSaveBlock and @c perRecordDeleteBlock invocations This call happens as soon as the server has seen all record changes, and may be invoked while the server is processing the side effects of those changes. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public CKModifyRecordsOperation.Block_perRecordCompletionBlock_ret perRecordCompletionBlock()
Will not be invoked if @c perRecordSaveBlock is set. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public CKModifyRecordsOperation.Block_perRecordProgressBlock_ret perRecordProgressBlock()
This method is called at least once with a progress of 1.0 for every record. Intermediate progress is only reported for records that contain assets. It is possible for progress to regress when a retry is automatically triggered. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public NSArray<? extends CKRecordID> recordIDsToDelete()
public long savePolicy()
public void setAtomic(boolean value)
YES by default. Server-side write atomicity is only enforced on zones that have @c CKRecordZoneCapabilityAtomic. If @c isAtomic is YES, client-side checks are enforced regardless of the zone's capabilities. (For example, if a record is malformed, and cannot be sent to the server, the client will forcibly fail all other records-to-be-modified in that zone)
public void setClientChangeTokenData(NSData value)
public void setModifyRecordsCompletionBlock(CKModifyRecordsOperation.Block_setModifyRecordsCompletionBlock value)
The @code -[NSOperation completionBlock] @endcode will also be called if both are set. If the error is @c CKErrorPartialFailure, the error's userInfo dictionary contains a dictionary of recordIDs to errors keyed off of @c CKPartialErrorsByItemIDKey. [@c] savedRecords, @c deletedRecordIDs and any @c CKPartialErrorsByItemIDKey errors are repeats of the data sent back in previous @c perRecordSaveBlock and @c perRecordDeleteBlock invocations This call happens as soon as the server has seen all record changes, and may be invoked while the server is processing the side effects of those changes. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public void setPerRecordCompletionBlock(CKModifyRecordsOperation.Block_setPerRecordCompletionBlock value)
Will not be invoked if @c perRecordSaveBlock is set. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public void setPerRecordProgressBlock(CKModifyRecordsOperation.Block_setPerRecordProgressBlock value)
This method is called at least once with a progress of 1.0 for every record. Intermediate progress is only reported for records that contain assets. It is possible for progress to regress when a retry is automatically triggered. Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public void setRecordIDsToDelete(NSArray<? extends CKRecordID> value)
public void setSavePolicy(long value)
public CKModifyRecordsOperation.Block_perRecordDeleteBlock_ret perRecordDeleteBlock()
Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public CKModifyRecordsOperation.Block_perRecordSaveBlock_ret perRecordSaveBlock()
Following a successful record save, this callback will be invoked with a nonnull @c record, and a nil @c error. Following a save failure due to a per-item error (@c CKErrorServerRecordChanged, for example), this callback will be invoked with a nil @c record, and a nonnull @c error Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public void setPerRecordDeleteBlock(CKModifyRecordsOperation.Block_setPerRecordDeleteBlock value)
Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.
public void setPerRecordSaveBlock(CKModifyRecordsOperation.Block_setPerRecordSaveBlock value)
Following a successful record save, this callback will be invoked with a nonnull @c record, and a nil @c error. Following a save failure due to a per-item error (@c CKErrorServerRecordChanged, for example), this callback will be invoked with a nil @c record, and a nonnull @c error Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations.