SFSDKSoqlMutator Class Reference

Inherits from NSObject
Declared in SFSDKSoqlMutator.h

+ withSoql:

Initialize this SOQLMutator with the soql query to manipulate

+ (SFSDKSoqlMutator *)withSoql:(NSString *)soql

Parameters

soql

Original soql query.

Declared In

SFSDKSoqlMutator.h

– replaceSelectFields:

Replace selecg fields

- (SFSDKSoqlMutator *)replaceSelectFields:(NSString *)commaSeparatedFields

Parameters

commaSeparatedFields

Comma separated fields to use in top level query’s select.

Declared In

SFSDKSoqlMutator.h

– addSelectFields:

Add fields to select

- (SFSDKSoqlMutator *)addSelectFields:(NSString *)commaSeparatedFields

Parameters

commaSeparatedFields

Comma separated fields to add to top level query’s select.

Declared In

SFSDKSoqlMutator.h

– addWherePredicates:

Add predicates to where clause

- (SFSDKSoqlMutator *)addWherePredicates:(NSString *)commaSeparatedPredicates

Parameters

commaSeparatedPredicates

Comma separated predicates to add to top level query’s where.

Declared In

SFSDKSoqlMutator.h

– replaceOrderBy:

Replace order by clause (or add one if none)

- (SFSDKSoqlMutator *)replaceOrderBy:(NSString *)commaSeparatedFields

Parameters

commaSeparatedFields

Comma separated fields to add to top level query’s select.

Declared In

SFSDKSoqlMutator.h

– isOrderingBy:

Check if query is ordering by given fields

- (BOOL)isOrderingBy:(NSString *)commaSeparatedFields

Parameters

commaSeparatedFields

Comma separated fields to look for.

Return Value

YES if it is the case.

Declared In

SFSDKSoqlMutator.h

– hasOrderBy

Check if query has order by clause

- (BOOL)hasOrderBy

Return Value

YES if it is the case.

Declared In

SFSDKSoqlMutator.h

– isSelectingField:

Check if query is selecting by given field

- (BOOL)isSelectingField:(NSString *)field

Parameters

field

Field to look for.

Return Value

YES if it is the case.

Declared In

SFSDKSoqlMutator.h

– asBuilder

a SOQL builder with mutations applied

- (SFSDKSoqlBuilder *)asBuilder

Return Value

a SOQL builder with mutations applied

Declared In

SFSDKSoqlMutator.h