DARemoteDataAdapter

Overview

The DARemoteDataAdapter class serves as a mediator between DataAbstractService and your client side. DARemoteDataAdapter knows where service resides and how to connect to it. DARemoteDataAdapter performs login if a service requires it. DARemoteDataAdapter can prepare and execute any kind of requests supported by DataAbstractService. Requests can be both - synchronous and asynchronous.

Read more about the Remote Data Adapter at Remote Data Adapter and Data Tables (Xcode).

Below, you can find a simple sample of using DARemoteDataAdapter:

ROMessage *message = [[ROBinMessage alloc] init];
ROHTTPClientChannel *channel = 
   [[ROHTTPClientChannel alloc] initWithTargetUrl:@"http://myserver:8099/bin"];
RORemoteService *dataService =
   [[RORemoteService alloc] initWithMessage:message channel:channel serviceName:@"DataService"];
RORemoteService *loginService = 
   [[RORemoteService alloc] initWithMessage:message channel:channel serviceName:@"LoginService"];
DARemoteDataAdapter *adapter = 
   [[DARemoteDataAdapter alloc] initWithDataService:dataService loginService:loginService];
[channel setDelegate:adapter];

// get table from the server
DADataTable *table = [[adapter getDataTable:@"MyTable"] retain];

// perform some changes in table
...

// apply changes on server
[adapter applyChangesForTable:table];

Tasks

Creating DARemoteDataAdapter

  • adapterWithTargetURL:
  • adapterWithTargetURL:dataServiceName:
  • adapterWithTargetURL:dataServiceName:loginServiceName:

  • initWithTargetURL:

  • initWithTargetURL:dataServiceName:
  • initWithTargetURL:dataServiceName:loginServiceName:

Login & LogOut

  • loginWithUsername:password:
  • loginWithUsername:password:connectionName:
  • loginWithString:
  • logout

Server calls

  • getSchema
  • beginGetSchema
  • beginGetSchemaWithBlock:

Getting data - synchronous

  • getDataTable:
  • getDataTable:select:where:
  • getDataTables:
  • getDataTables:select:where:

  • getDataTableWithSQL:

  • getDataTable:withSQL:
  • getDataTables:withSQL:

Getting data - asynchronous

  • beginGetDataTable:start:
  • beginGetDataTable:select:where:start:
  • beginGetDataTable:select:where:withBlock:
  • beginGetDataTables:start:
  • beginGetDataTables:select:where:start:
  • beginGetDataTables:select:where:withBlock:

  • beginGetDataTableWithSQL:start:

  • beginGetDataTableWithSQL:withBlock:
  • beginGetDataTable:withSQL:start:
  • beginGetDataTable:withSQL:withBlock:
  • beginGetDataTables:withSQL:start:
  • beginGetDataTables:withSQL:withBlock:

Applying changes - synchronous

  • applyChangesForTable:
  • applyChangesForTables:

Applying changes - asynchronous

  • beginApplyChangesForTable:
  • beginApplyChangesForTable:start:
  • beginApplyChangesForTables:
  • beginApplyChangesForTables:start

Executing Schema Commands - synchronous

  • executeCommand:withParameters:
  • executeCommand:withParameterValuesAndNames:
  • executeCommandEx:withParameters:outputParameters:

Executing Schema Commands - asynchronous

  • beginExecuteCommand:withParameters:start:
  • beginExecuteCommand:withParameters:withBlock:
  • beginExecuteCommandEx:withParameters:start:
  • beginExecuteCommandEx:withParameters:withBlock:

Location


 

adapterWithTargetUrl:  deprecated

+ (nonnull id) adapterWithTargetUrl:(nonnull NSString *)url

Parameters:

  • url:

adapterWithTargetURL:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url

Parameters:

  • url:

adapterWithTargetURL:dataServiceName:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName

Parameters:

  • url:
  • dataServiceName:

adapterWithTargetURL:dataServiceName:loginServiceName:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName loginServiceName:(nonnull NSString *)loginServiceName

Parameters:

  • url:
  • dataServiceName:
  • loginServiceName:

applyChanges:

- (void) applyChanges:(NSArray *)aTables

Parameters:

  • aTables:

applyChangesForTable:

- (void) applyChangesForTable:(nonnull DADataTable *)dataTable

Parameters:

  • dataTable:

applyChangesForTables:

- (void) applyChangesForTables:(nonnull NSArray_DataTable *)dataTables

Parameters:

  • dataTables:

beginApplyChangesForTable:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable

Parameters:

  • dataTable:

beginApplyChangesForTable:start:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable start:(BOOL)start

Parameters:

  • dataTable:
  • start:

beginApplyChangesForTable:withBlock:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable withBlock:(nullable void^)block

Parameters:

  • dataTable:
  • block:

beginApplyChangesForTables:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables

Parameters:

  • dataTables:

beginApplyChangesForTables:start:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables start:(BOOL)start

Parameters:

  • dataTables:
  • start:

beginApplyChangesForTables:withBlock:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables withBlock:(nullable void^)block

Parameters:

  • dataTables:
  • block:

beginExecuteCommand:withParameters:start:

- (nonnull DAAsyncRequest *) beginExecuteCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params start:(BOOL)start

Parameters:

  • commandName:
  • params:
  • start:

beginExecuteCommand:withParameters:withBlock:

- (nonnull DAAsyncRequest *) beginExecuteCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params withBlock:(nonnull void(^)(int, NSDictionary * __nonnull))block

Parameters:

  • commandName:
  • params:
  • block:

beginExecuteCommandEx:withParameters:start:

- (nonnull DAAsyncRequest *) beginExecuteCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params start:(BOOL)start

Parameters:

  • commandName:
  • params:
  • start:

beginExecuteCommandEx:withParameters:withBlock:

- (nonnull DAAsyncRequest *) beginExecuteCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params withBlock:(nonnull void(^)(int, NSDictionary * __nonnull))block

Parameters:

  • commandName:
  • params:
  • block:

beginGetDataForSQL:

- (DAAsyncRequest *) beginGetDataForSQL:(NSString *)sql

Parameters:

  • sql:

beginGetDataForSQL:start:

- (DAAsyncRequest *) beginGetDataForSQL:(NSString *)sql start:(BOOL)start

Parameters:

  • sql:
  • start:

beginGetDataForTable:select:where:start:

- (DAAsyncRequest *) beginGetDataForTable:(NSString *)tableName select:(NSArray *)fields where:(DADynamicWhereClause *)where start:(BOOL)start

Parameters:

  • tableName:
  • fields:
  • where:
  • start:

beginGetDataForTables:start:

- (DAAsyncRequest *) beginGetDataForTables:(NSArray *)tableNames start:(BOOL)start

Parameters:

  • tableNames:
  • start:

beginGetDataForTables:withSQL:start:

- (DAAsyncRequest *) beginGetDataForTables:(NSArray *)tableNames withSQL:(NSArray *)sqlQueries start:(BOOL)start

Parameters:

  • tableNames:
  • sqlQueries:
  • start:

beginGetDataTable:select:where:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause start:(BOOL)start

Parameters:

  • tableName:
  • fieldList:
  • whereClause:
  • start:

beginGetDataTable:select:where:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • fieldList:
  • whereClause:
  • block:

beginGetDataTable:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName start:(BOOL)start

Parameters:

  • tableName:
  • start:

beginGetDataTable:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • block:

beginGetDataTable:withSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql start:(BOOL)start

Parameters:

  • tableName:
  • sql:
  • start:

beginGetDataTable:withSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • sql:
  • block:

beginGetDataTables:select:where:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses start:(BOOL)start

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:
  • start:

beginGetDataTables:select:where:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses withBlock:(nonnull void(^)(NSDictionary_String_DataTable * __nonnull))block

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:
  • block:

beginGetDataTables:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames start:(BOOL)start

Parameters:

  • tableNames:
  • start:

beginGetDataTables:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withBlock:(nonnull void(^)(NSDictionary * __nonnull))block

Parameters:

  • tableNames:
  • block:

beginGetDataTables:withSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries start:(BOOL)start

Parameters:

  • tableNames:
  • sqlQueries:
  • start:

beginGetDataTables:withSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries withBlock:(nonnull void(^)(NSDictionary_String_DataTable * __nonnull))block

Parameters:

  • tableNames:
  • sqlQueries:
  • block:

beginGetDataTableWithSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTableWithSQL:(nonnull NSString *)sql start:(BOOL)start

Parameters:

  • sql:
  • start:

beginGetDataTableWithSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTableWithSQL:(nonnull NSString *)sql withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • sql:
  • block:

beginGetSchema

- (nonnull DAAsyncRequest *) beginGetSchema

beginGetSchemaWithBlock:

- (nonnull DAAsyncRequest *) beginGetSchemaWithBlock:(nonnull void(^)(DASchema * __nonnull))block

Parameters:

  • block:

checkForErrors:

- (void) checkForErrors:(NSArray *)dDeltas

Parameters:

  • dDeltas:

dataService  nonatomic retain

Reference to a data service.

@property (nonatomic, retain) nullable RORemoteService *dataService

dataStreamer  retain

Reference to data streamer. Currently we support DABin2DataStreamer only.

@property (retain) nullable DADataStreamer *dataStreamer

delegate  assign

A delegate that wants to receive notifications of events that happen within the DARemoteDataAdapter, such as receiving a request to login, or any kind of failure.

@property (assign) id<DARemoteDataAdapterDelegate> delegate

executeCommand:withParameters:

- (int) executeCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params

Parameters:

  • commandName:
  • params:

executeCommand:withParameterValuesAndNames:

- (int) executeCommand:(nonnull NSString *)commandName withParameterValuesAndNames:(nullable id)value , ... NS_REQUIRES_NIL_TERMINATION

Parameters:

  • commandName:
  • value:

executeCommandEx:withParameters:outputParameters:

- (int) executeCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params outputParameters:(NSDictionary * __nonnull * __nonnull)outParams

Parameters:

  • commandName:
  • params:
  • outParams:

getDataForSQL:

- (NSData *) getDataForSQL:(NSString *)sql

Parameters:

  • sql:

getDataForTable:

- (NSData *) getDataForTable:(NSString *)tableName

Parameters:

  • tableName:

getDataForTable:select:where:

- (NSData *) getDataForTable:(NSString *)tableName select:(NSArray *)fields where:(DADynamicWhereClause *)where

Parameters:

  • tableName:
  • fields:
  • where:

getDataForTables:

- (NSData *) getDataForTables:(NSArray *)tableNames

Parameters:

  • tableNames:

getDataForTables:withSQL:

- (NSData *) getDataForTables:(NSArray *)tableNames withSQL:(NSArray *)sqlQueries

Parameters:

  • tableNames:
  • sqlQueries:

getDataTable:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName

Parameters:

  • tableName:

getDataTable:select:where:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause

Parameters:

  • tableName:
  • fieldList:
  • whereClause:

getDataTable:withSQL:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql

Parameters:

  • tableName:
  • sql:

getDataTables:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames

Parameters:

  • tableNames:

getDataTables:select:where:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:

getDataTables:withSQL:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries

Parameters:

  • tableNames:
  • sqlQueries:

getDataTableWithSQL:

- (nonnull DADataTable *) getDataTableWithSQL:(nonnull NSString *)sql

Parameters:

  • sql:

getSchema

- (nonnull DASchema *) getSchema

init

- (nonnull instancetype) init

initWithDataService:

- (nonnull instancetype) initWithDataService:(nonnull RORemoteService *)dataService

Parameters:

  • dataService:

initWithDataService:loginService:

- (nonnull instancetype) initWithDataService:(nonnull RORemoteService *)dataService loginService:(nonnull RORemoteService *)loginService

Parameters:

  • dataService:
  • loginService:

initWithTargetUrl:  deprecated

- (nonnull instancetype) initWithTargetUrl:(nonnull NSString *)url

Parameters:

  • url:

initWithTargetURL:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url

Parameters:

  • url:

initWithTargetURL:dataServiceName:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName

Parameters:

  • url:
  • dataServiceName:

initWithTargetURL:dataServiceName:loginServiceName:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName loginServiceName:(nonnull NSString *)loginServiceName

Parameters:

  • url:
  • dataServiceName:
  • loginServiceName:

login

Method that performs login to secured server. For login it uses or loginString value or username and password properties.

- (BOOL) login

loginService  nonatomic retain

Reference to the login service. Optionally, it can be nil if authentication is not required.

@property (nonatomic, retain) nullable RORemoteService *loginService

loginString  copy nonatomic

a preformatted LoginEx string.

@property (copy, nonatomic) nullable NSString *loginString

loginWithString:

- (BOOL) loginWithString:(nonnull NSString *)aConnectionString

Parameters:

  • aConnectionString:

loginWithUsername:password:

- (BOOL) loginWithUsername:(nonnull NSString *)userName password:(nonnull NSString *)password

Parameters:

  • userName:
  • password:

loginWithUsername:password:connectionName:

- (BOOL) loginWithUsername:(nonnull NSString *)userName password:(nonnull NSString *)password connectionName:(nonnull NSString *)connectionName

Parameters:

  • userName:
  • password:
  • connectionName:

logout

This method performs the log out.

- (void) logout

mergeDelta:forTable:

- (void) mergeDelta:(DADelta *)aDelta forTable:(DADataTable *)aTable

Parameters:

  • aDelta:
  • aTable:

password  copy nonatomic

Password value for login to secured server.

@property (copy, nonatomic) nullable NSString *password

username  copy nonatomic

User name for login to secured server

@property (copy, nonatomic) nullable NSString *username

 

dataService  nonatomic retain

Reference to a data service.

@property (nonatomic, retain) nullable RORemoteService *dataService

dataStreamer  retain

Reference to data streamer. Currently we support DABin2DataStreamer only.

@property (retain) nullable DADataStreamer *dataStreamer

delegate  assign

A delegate that wants to receive notifications of events that happen within the DARemoteDataAdapter, such as receiving a request to login, or any kind of failure.

@property (assign) id<DARemoteDataAdapterDelegate> delegate

loginService  nonatomic retain

Reference to the login service. Optionally, it can be nil if authentication is not required.

@property (nonatomic, retain) nullable RORemoteService *loginService

loginString  copy nonatomic

a preformatted LoginEx string.

@property (copy, nonatomic) nullable NSString *loginString

password  copy nonatomic

Password value for login to secured server.

@property (copy, nonatomic) nullable NSString *password

username  copy nonatomic

User name for login to secured server

@property (copy, nonatomic) nullable NSString *username

 

adapterWithTargetUrl:  deprecated

+ (nonnull id) adapterWithTargetUrl:(nonnull NSString *)url

Parameters:

  • url:

adapterWithTargetURL:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url

Parameters:

  • url:

adapterWithTargetURL:dataServiceName:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName

Parameters:

  • url:
  • dataServiceName:

adapterWithTargetURL:dataServiceName:loginServiceName:

+ (nonnull id) adapterWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName loginServiceName:(nonnull NSString *)loginServiceName

Parameters:

  • url:
  • dataServiceName:
  • loginServiceName:

 

applyChanges:

- (void) applyChanges:(NSArray *)aTables

Parameters:

  • aTables:

applyChangesForTable:

- (void) applyChangesForTable:(nonnull DADataTable *)dataTable

Parameters:

  • dataTable:

applyChangesForTables:

- (void) applyChangesForTables:(nonnull NSArray_DataTable *)dataTables

Parameters:

  • dataTables:

beginApplyChangesForTable:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable

Parameters:

  • dataTable:

beginApplyChangesForTable:start:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable start:(BOOL)start

Parameters:

  • dataTable:
  • start:

beginApplyChangesForTable:withBlock:

- (nonnull DAAsyncRequest *) beginApplyChangesForTable:(nonnull DADataTable *)dataTable withBlock:(nullable void^)block

Parameters:

  • dataTable:
  • block:

beginApplyChangesForTables:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables

Parameters:

  • dataTables:

beginApplyChangesForTables:start:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables start:(BOOL)start

Parameters:

  • dataTables:
  • start:

beginApplyChangesForTables:withBlock:

- (nonnull DAAsyncRequest *) beginApplyChangesForTables:(nonnull NSArray_DataTable *)dataTables withBlock:(nullable void^)block

Parameters:

  • dataTables:
  • block:

beginExecuteCommand:withParameters:start:

- (nonnull DAAsyncRequest *) beginExecuteCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params start:(BOOL)start

Parameters:

  • commandName:
  • params:
  • start:

beginExecuteCommand:withParameters:withBlock:

- (nonnull DAAsyncRequest *) beginExecuteCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params withBlock:(nonnull void(^)(int, NSDictionary * __nonnull))block

Parameters:

  • commandName:
  • params:
  • block:

beginExecuteCommandEx:withParameters:start:

- (nonnull DAAsyncRequest *) beginExecuteCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params start:(BOOL)start

Parameters:

  • commandName:
  • params:
  • start:

beginExecuteCommandEx:withParameters:withBlock:

- (nonnull DAAsyncRequest *) beginExecuteCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params withBlock:(nonnull void(^)(int, NSDictionary * __nonnull))block

Parameters:

  • commandName:
  • params:
  • block:

beginGetDataForSQL:

- (DAAsyncRequest *) beginGetDataForSQL:(NSString *)sql

Parameters:

  • sql:

beginGetDataForSQL:start:

- (DAAsyncRequest *) beginGetDataForSQL:(NSString *)sql start:(BOOL)start

Parameters:

  • sql:
  • start:

beginGetDataForTable:select:where:start:

- (DAAsyncRequest *) beginGetDataForTable:(NSString *)tableName select:(NSArray *)fields where:(DADynamicWhereClause *)where start:(BOOL)start

Parameters:

  • tableName:
  • fields:
  • where:
  • start:

beginGetDataForTables:start:

- (DAAsyncRequest *) beginGetDataForTables:(NSArray *)tableNames start:(BOOL)start

Parameters:

  • tableNames:
  • start:

beginGetDataForTables:withSQL:start:

- (DAAsyncRequest *) beginGetDataForTables:(NSArray *)tableNames withSQL:(NSArray *)sqlQueries start:(BOOL)start

Parameters:

  • tableNames:
  • sqlQueries:
  • start:

beginGetDataTable:select:where:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause start:(BOOL)start

Parameters:

  • tableName:
  • fieldList:
  • whereClause:
  • start:

beginGetDataTable:select:where:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • fieldList:
  • whereClause:
  • block:

beginGetDataTable:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName start:(BOOL)start

Parameters:

  • tableName:
  • start:

beginGetDataTable:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • block:

beginGetDataTable:withSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql start:(BOOL)start

Parameters:

  • tableName:
  • sql:
  • start:

beginGetDataTable:withSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • tableName:
  • sql:
  • block:

beginGetDataTables:select:where:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses start:(BOOL)start

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:
  • start:

beginGetDataTables:select:where:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses withBlock:(nonnull void(^)(NSDictionary_String_DataTable * __nonnull))block

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:
  • block:

beginGetDataTables:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames start:(BOOL)start

Parameters:

  • tableNames:
  • start:

beginGetDataTables:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withBlock:(nonnull void(^)(NSDictionary * __nonnull))block

Parameters:

  • tableNames:
  • block:

beginGetDataTables:withSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries start:(BOOL)start

Parameters:

  • tableNames:
  • sqlQueries:
  • start:

beginGetDataTables:withSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries withBlock:(nonnull void(^)(NSDictionary_String_DataTable * __nonnull))block

Parameters:

  • tableNames:
  • sqlQueries:
  • block:

beginGetDataTableWithSQL:start:

- (nonnull DAAsyncRequest *) beginGetDataTableWithSQL:(nonnull NSString *)sql start:(BOOL)start

Parameters:

  • sql:
  • start:

beginGetDataTableWithSQL:withBlock:

- (nonnull DAAsyncRequest *) beginGetDataTableWithSQL:(nonnull NSString *)sql withBlock:(nonnull void(^)(DADataTable * __nonnull))block

Parameters:

  • sql:
  • block:

beginGetSchema

- (nonnull DAAsyncRequest *) beginGetSchema

beginGetSchemaWithBlock:

- (nonnull DAAsyncRequest *) beginGetSchemaWithBlock:(nonnull void(^)(DASchema * __nonnull))block

Parameters:

  • block:

checkForErrors:

- (void) checkForErrors:(NSArray *)dDeltas

Parameters:

  • dDeltas:

executeCommand:withParameters:

- (int) executeCommand:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params

Parameters:

  • commandName:
  • params:

executeCommand:withParameterValuesAndNames:

- (int) executeCommand:(nonnull NSString *)commandName withParameterValuesAndNames:(nullable id)value , ... NS_REQUIRES_NIL_TERMINATION

Parameters:

  • commandName:
  • value:

executeCommandEx:withParameters:outputParameters:

- (int) executeCommandEx:(nonnull NSString *)commandName withParameters:(nonnull NSDictionary *)params outputParameters:(NSDictionary * __nonnull * __nonnull)outParams

Parameters:

  • commandName:
  • params:
  • outParams:

getDataForSQL:

- (NSData *) getDataForSQL:(NSString *)sql

Parameters:

  • sql:

getDataForTable:

- (NSData *) getDataForTable:(NSString *)tableName

Parameters:

  • tableName:

getDataForTable:select:where:

- (NSData *) getDataForTable:(NSString *)tableName select:(NSArray *)fields where:(DADynamicWhereClause *)where

Parameters:

  • tableName:
  • fields:
  • where:

getDataForTables:

- (NSData *) getDataForTables:(NSArray *)tableNames

Parameters:

  • tableNames:

getDataForTables:withSQL:

- (NSData *) getDataForTables:(NSArray *)tableNames withSQL:(NSArray *)sqlQueries

Parameters:

  • tableNames:
  • sqlQueries:

getDataTable:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName

Parameters:

  • tableName:

getDataTable:select:where:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName select:(nullable NSArray_String *)fieldList where:(nullable DADynamicWhereClause *)whereClause

Parameters:

  • tableName:
  • fieldList:
  • whereClause:

getDataTable:withSQL:

- (nonnull DADataTable *) getDataTable:(nonnull NSString *)tableName withSQL:(nonnull NSString *)sql

Parameters:

  • tableName:
  • sql:

getDataTables:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames

Parameters:

  • tableNames:

getDataTables:select:where:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames select:(nullable NSArray_String *)fieldLists where:(nullable NSArray_DynamicWhereClause *)whereClauses

Parameters:

  • tableNames:
  • fieldLists:
  • whereClauses:

getDataTables:withSQL:

- (nonnull NSDictionary_String_DataTable *) getDataTables:(nonnull NSArray_String *)tableNames withSQL:(nonnull NSArray_String *)sqlQueries

Parameters:

  • tableNames:
  • sqlQueries:

getDataTableWithSQL:

- (nonnull DADataTable *) getDataTableWithSQL:(nonnull NSString *)sql

Parameters:

  • sql:

getSchema

- (nonnull DASchema *) getSchema

init

- (nonnull instancetype) init

initWithDataService:

- (nonnull instancetype) initWithDataService:(nonnull RORemoteService *)dataService

Parameters:

  • dataService:

initWithDataService:loginService:

- (nonnull instancetype) initWithDataService:(nonnull RORemoteService *)dataService loginService:(nonnull RORemoteService *)loginService

Parameters:

  • dataService:
  • loginService:

initWithTargetUrl:  deprecated

- (nonnull instancetype) initWithTargetUrl:(nonnull NSString *)url

Parameters:

  • url:

initWithTargetURL:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url

Parameters:

  • url:

initWithTargetURL:dataServiceName:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName

Parameters:

  • url:
  • dataServiceName:

initWithTargetURL:dataServiceName:loginServiceName:

- (nonnull instancetype) initWithTargetURL:(nonnull NSURL *)url dataServiceName:(nonnull NSString *)dataServiceName loginServiceName:(nonnull NSString *)loginServiceName

Parameters:

  • url:
  • dataServiceName:
  • loginServiceName:

login

Method that performs login to secured server. For login it uses or loginString value or username and password properties.

- (BOOL) login

loginWithString:

- (BOOL) loginWithString:(nonnull NSString *)aConnectionString

Parameters:

  • aConnectionString:

loginWithUsername:password:

- (BOOL) loginWithUsername:(nonnull NSString *)userName password:(nonnull NSString *)password

Parameters:

  • userName:
  • password:

loginWithUsername:password:connectionName:

- (BOOL) loginWithUsername:(nonnull NSString *)userName password:(nonnull NSString *)password connectionName:(nonnull NSString *)connectionName

Parameters:

  • userName:
  • password:
  • connectionName:

logout

This method performs the log out.

- (void) logout

mergeDelta:forTable:

- (void) mergeDelta:(DADelta *)aDelta forTable:(DADataTable *)aTable

Parameters:

  • aDelta:
  • aTable: