SFSoqlSyncDownTarget Class Reference

Inherits from SFSyncDownTarget : SFSyncTarget : NSObject
Declared in SFSoqlSyncDownTarget.h

Other Methods

  query

@property (nonatomic, copy) NSString *query

  maxBatchSize

@property (nonatomic, assign) NSInteger maxBatchSize

+ newSyncTarget:

Factory methods

+ (SFSoqlSyncDownTarget *)newSyncTarget:(NSString *)query

Declared In

SFSoqlSyncDownTarget.h

+ newSyncTarget:maxBatchSize:

+ (SFSoqlSyncDownTarget *)newSyncTarget:(NSString *)query maxBatchSize:(NSInteger)maxBatchSize

– getQueryToRun

query to run

- (NSString *)getQueryToRun

Return Value

query to run

Declared In

SFSoqlSyncDownTarget.h

– getQueryToRun:

max time stamp to use in query (can be 0)

- (NSString *)getQueryToRun:(long long)maxTimeStamp

Parameters

maxTimeStamp

max time stamp to use in query (can be 0)

Return Value

query to run taking into account max time stamp

Declared In

SFSoqlSyncDownTarget.h

Extension Methods

– startFetch:queryToRun:errorBlock:completeBlock:

- (void)startFetch:(SFMobileSyncSyncManager *)syncManager queryToRun:(NSString *)queryToRun errorBlock:(SFSyncDownTargetFetchErrorBlock)errorBlock completeBlock:(SFSyncDownTargetFetchCompleteBlock)completeBlock

– parseIdsFromResponse:

- (NSSet<NSString*> *)parseIdsFromResponse:(NSArray *)records

– getRecordsFromResponse:

- (NSArray<NSDictionary*> *)getRecordsFromResponse:(NSDictionary *)responseJson

– getLatestModificationTimeStamp:modificationDateFieldName:

- (long long)getLatestModificationTimeStamp:(NSArray *)records modificationDateFieldName:(NSString *)modificationDateFieldName