DADynamicWhereClause

Overview

The DADynamicWhereClause class serves as container for Dynamic Where XML. In its current incarnation, the class is a mere wrapper that contains the XML body of a Dynamic Where clause; in future versions, the class will be expanded to expose an API for dynamically constructing these clauses in code. The class can be used as a parameter for several of the *getDataTable* methods on the DARemoteDataAdapter.

Please refer also to the Filters Sample and the Dynamic Where topic for more details.

Location

 

dynamicWhereClauseWithPredicate:

Creates and returns an instance of the DADynamicWhereClause with the given NSPredicate.

+ (id) dynamicWhereClauseWithPredicate:(NSPredicate *)predicate

Parameters:

  • predicate: NSPredicate instance for building DADynamicWhereClause

dynamicWhereClauseWithXmlString:

Creates and returns an instance of the DADynamicWhereClause with the given XML string.

+ (id) dynamicWhereClauseWithXmlString:(NSString *)string

Parameters:

  • string: Dynamic Where XML string.

initWithPredicate:

Initializes an instance of the DADynamicWhereClause with the given NSPredicate instance. DADynamicWhereXmlGenerator used inside that method for generating proper Dynamic Where xml string from given predicate.

- (id) initWithPredicate:(NSPredicate *)predicate

Parameters:

  • predicate: NSPredicate instance that will be used for initializing DADynamicWhereClause

initWithXmlString:

Initializes an instance of the DADynamicWhereClause with the given XML string.

- (id) initWithXmlString:(NSString *)string

Parameters:

  • string: Dynamic Where XML string.

stringValue

Returns a string representation of the Dynamic Where XML.

@property (readonly) NSString *stringValue

xml

Represents Dynamic Where XML as ROXML instance.

@property (readonly) ROXml *xml

 

stringValue

Returns a string representation of the Dynamic Where XML.

@property (readonly) NSString *stringValue

xml

Represents Dynamic Where XML as ROXML instance.

@property (readonly) ROXml *xml

 

dynamicWhereClauseWithPredicate:

Creates and returns an instance of the DADynamicWhereClause with the given NSPredicate.

+ (id) dynamicWhereClauseWithPredicate:(NSPredicate *)predicate

Parameters:

  • predicate: NSPredicate instance for building DADynamicWhereClause

dynamicWhereClauseWithXmlString:

Creates and returns an instance of the DADynamicWhereClause with the given XML string.

+ (id) dynamicWhereClauseWithXmlString:(NSString *)string

Parameters:

  • string: Dynamic Where XML string.

 

initWithPredicate:

Initializes an instance of the DADynamicWhereClause with the given NSPredicate instance. DADynamicWhereXmlGenerator used inside that method for generating proper Dynamic Where xml string from given predicate.

- (id) initWithPredicate:(NSPredicate *)predicate

Parameters:

  • predicate: NSPredicate instance that will be used for initializing DADynamicWhereClause

initWithXmlString:

Initializes an instance of the DADynamicWhereClause with the given XML string.

- (id) initWithXmlString:(NSString *)string

Parameters:

  • string: Dynamic Where XML string.

See Also