Class CKModifyRecordsOperation

    • Constructor Detail

      • CKModifyRecordsOperation

        protected CKModifyRecordsOperation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • atomic

        public boolean atomic()
        Determines whether the batch should fail atomically or not. 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)
      • clientChangeTokenData

        @Nullable
        public @Nullable NSData clientChangeTokenData()
        This property is kept by the server to identify the last known request from this client. Multiple requests from the client with the same change token will be ignored by the server.
      • modifyRecordsCompletionBlock

        @Nullable
        public @Nullable CKModifyRecordsOperation.Block_modifyRecordsCompletionBlock_ret modifyRecordsCompletionBlock()
        This block is called when the operation completes. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
      • perRecordCompletionBlock

        @Nullable
        @Deprecated
        public @Nullable CKModifyRecordsOperation.Block_perRecordCompletionBlock_ret perRecordCompletionBlock()
        Deprecated.
        Called on success or failure for each record. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 8.0 Deprecated-Since: 15.0
      • perRecordProgressBlock

        @Nullable
        public @Nullable CKModifyRecordsOperation.Block_perRecordProgressBlock_ret perRecordProgressBlock()
        Indicates the progress for each record. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
      • recordIDsToDelete

        @Nullable
        public @Nullable NSArray<? extends CKRecordID> recordIDsToDelete()
      • recordsToSave

        @Nullable
        public @Nullable NSArray<? extends CKRecord> recordsToSave()
      • savePolicy

        public long savePolicy()
        Determines what data is sent to the server and whether the save should succeed even if the record on the server has changed. The default value is @c CKRecordSaveIfServerRecordUnchanged, which is the recommended value for regular use. A @c CKShare record is always treated as @c CKRecordSaveIfServerRecordUnchanged, regardless of the @c savePolicy specified.
      • setAtomic

        public void setAtomic​(boolean value)
        Determines whether the batch should fail atomically or not. 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)
      • setClientChangeTokenData

        public void setClientChangeTokenData​(@Nullable
                                             @Nullable NSData value)
        This property is kept by the server to identify the last known request from this client. Multiple requests from the client with the same change token will be ignored by the server.
      • setModifyRecordsCompletionBlock

        public void setModifyRecordsCompletionBlock​(@Nullable
                                                    @Nullable CKModifyRecordsOperation.Block_setModifyRecordsCompletionBlock value)
        This block is called when the operation completes. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
      • setPerRecordCompletionBlock

        @Deprecated
        public void setPerRecordCompletionBlock​(@Nullable
                                                @Nullable CKModifyRecordsOperation.Block_setPerRecordCompletionBlock value)
        Deprecated.
        Called on success or failure for each record. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 8.0 Deprecated-Since: 15.0
      • setPerRecordProgressBlock

        public void setPerRecordProgressBlock​(@Nullable
                                              @Nullable CKModifyRecordsOperation.Block_setPerRecordProgressBlock value)
        Indicates the progress for each record. 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation.
      • setRecordIDsToDelete

        public void setRecordIDsToDelete​(@Nullable
                                         @Nullable NSArray<? extends CKRecordID> value)
      • setRecordsToSave

        public void setRecordsToSave​(@Nullable
                                     @Nullable NSArray<? extends CKRecord> value)
      • setSavePolicy

        public void setSavePolicy​(long value)
        Determines what data is sent to the server and whether the save should succeed even if the record on the server has changed. The default value is @c CKRecordSaveIfServerRecordUnchanged, which is the recommended value for regular use. A @c CKShare record is always treated as @c CKRecordSaveIfServerRecordUnchanged, regardless of the @c savePolicy specified.
      • perRecordDeleteBlock

        @Nullable
        public @Nullable CKModifyRecordsOperation.Block_perRecordDeleteBlock_ret perRecordDeleteBlock()
        Called on success or failure of a record deletion Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 15.0
      • perRecordSaveBlock

        @Nullable
        public @Nullable CKModifyRecordsOperation.Block_perRecordSaveBlock_ret perRecordSaveBlock()
        Called on success or failure of a record save 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 15.0
      • setPerRecordDeleteBlock

        public void setPerRecordDeleteBlock​(@Nullable
                                            @Nullable CKModifyRecordsOperation.Block_setPerRecordDeleteBlock value)
        Called on success or failure of a record deletion Each @c CKOperation instance has a private serial queue. This queue is used for all callback block invocations. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 15.0
      • setPerRecordSaveBlock

        public void setPerRecordSaveBlock​(@Nullable
                                          @Nullable CKModifyRecordsOperation.Block_setPerRecordSaveBlock value)
        Called on success or failure of a record save 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. This block may share mutable state with other blocks assigned to this operation, but any such mutable state should not be concurrently used outside of blocks assigned to this operation. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.