Package apple.cloudkit.enums
Class CKRecordSavePolicy
- java.lang.Object
-
- apple.cloudkit.enums.CKRecordSavePolicy
-
public final class CKRecordSavePolicy extends java.lang.Object[@enum] CKRecordSavePolicy [@constant] CKRecordSaveIfServerRecordUnchanged Locally-edited keys are sent to the server. If the record on the server has been modified, fail the write and return an error. A CKShare's participants array is always treated as @c CKRecordSaveIfServerRecordUnchanged, regardless of the @c savePolicy of the operation that modifies the share. [@constant] CKRecordSaveChangedKeys Locally-edited keys are written to the server. Any unseen changes on the server will be overwritten to the locally-edited value. [@constant] CKRecordSaveAllKeys All local keys are written to the server. Any unseen changes on the server will be overwritten to the local values. Keys present only on the server remain unchanged. There are two common ways in which a server record will contain keys not present locally: 1 - Since you've fetched this record, another client has added a new key to the record. 2 - The presence of @c desiredKeys on the fetch / query that returned this record meant that only a portion of the record's keys were downloaded.
-
-
Field Summary
Fields Modifier and Type Field Description static longAllKeysstatic longChangedKeysstatic longIfServerRecordUnchanged
-
-
-
Field Detail
-
IfServerRecordUnchanged
public static final long IfServerRecordUnchanged
- See Also:
- Constant Field Values
-
ChangedKeys
public static final long ChangedKeys
- See Also:
- Constant Field Values
-
AllKeys
public static final long AllKeys
- See Also:
- Constant Field Values
-
-