Inherits from NSManagedObject
Declared in TICDSSyncChange.h

Overview

TICDSSyncChange objects are used to describe changes made to synchronized objects within a synchronized managed object.

Tasks

Class Factory Method

Persistent Properties

  •   changeType

    The type of the change.

    property
  •   objectEntityName

    The name of the entity for this sync change.

    property
  •   objectSyncID

    The sync ID (ticdsSyncID attribute) of the managed object to which this sync change refers.

    property
  •   relevantKey

    The relevant key that was changed if this is sync change represents an attribute change.

    property
  •   changedAttributes

    The changed values of the attributes (used for attribute change, and insertion).

    property
  •   changedRelationships

    The changed relationships for a relationship sync change.

    property
  •   relatedObjectEntityName

    The name of the related entity.

    property
  •   localTimeStamp

    The local timestamp of this change; note this is used only to sort sync changes when they are being applied. The last modification date of the entire sync change set determines the order in which change sets are applied.

    property

Non-Persisted Properties.

Properties

changeType

The type of the change.

@property (nonatomic, strong) NSNumber *changeType

Discussion

See TICDSTypesAndEnums.h for the list of possible change types.

Declared In

TICDSSyncChange.h

changedAttributes

The changed values of the attributes (used for attribute change, and insertion).

@property (nonatomic, strong) id changedAttributes

Declared In

TICDSSyncChange.h

changedRelationships

The changed relationships for a relationship sync change.

@property (nonatomic, strong) id changedRelationships

Declared In

TICDSSyncChange.h

localTimeStamp

The local timestamp of this change; note this is used only to sort sync changes when they are being applied. The last modification date of the entire sync change set determines the order in which change sets are applied.

@property (nonatomic, strong) NSDate *localTimeStamp

Declared In

TICDSSyncChange.h

objectEntityName

The name of the entity for this sync change.

@property (nonatomic, copy) NSString *objectEntityName

Declared In

TICDSSyncChange.h

objectSyncID

The sync ID (ticdsSyncID attribute) of the managed object to which this sync change refers.

@property (nonatomic, copy) NSString *objectSyncID

Declared In

TICDSSyncChange.h

relatedObjectEntityName

The name of the related entity.

@property (nonatomic, copy) NSString *relatedObjectEntityName

Declared In

TICDSSyncChange.h

relevantKey

The relevant key that was changed if this is sync change represents an attribute change.

@property (nonatomic, copy) NSString *relevantKey

Declared In

TICDSSyncChange.h

relevantManagedObject

The managed object instance to which this sync change refers.

@property (nonatomic, weak) NSManagedObject *relevantManagedObject

Declared In

TICDSSyncChange.h

Class Methods

syncChangeOfType:inManagedObjectContext:

Create a sync change of the specified type in the given managed object context.

+ (id)syncChangeOfType:(TICDSSyncChangeType)aType inManagedObjectContext:(NSManagedObjectContext *)aMoc

Parameters

aType

The type of the change (see TICDSTypesAndEnums.h for possible values).

aMoc

The managed object context in which to create the sync change.

Return Value

A suitably-configured TICDSSyncChange object for the given change.

Declared In

TICDSSyncChange.h