VaultMobileSDK  18R3
iOS framework for Vault API
Class Methods | Properties | List of all members
VEVVaultQueryCriteria Class Reference

Instances of this class are used to constuct a VEVVaultLocalQuery. Each instance represents a field/value search clause in the search expression represented by the VEVVaultLocalQuery that contains it. More...

Inherits NSObject.

Class Methods

(instancetype) + criteriaWithField:equalTo:
 Constructs an 'equal to' criteria to be used in a VEVVaultJSONCache query. It matches cached responses where the value for the field is equal to value. More...
 
(instancetype) + criteriaWithField:like:
 Constructs a 'like' criteria to be used in a VEVVaultJSONCache query. It matches cached responses where the string value for the field contains the substring value. More...
 

Properties

NSString * field
 The name of the field to search on.
 
id value
 The value to query on.
 

Detailed Description

Instances of this class are used to constuct a VEVVaultLocalQuery. Each instance represents a field/value search clause in the search expression represented by the VEVVaultLocalQuery that contains it.

See also
+ openCacheWithName:vault:fields: (VEVVaultJSONCache)
- query:handler: (VEVVaultJSONCache)
VEVVaultLocalQuery

Method Documentation

◆ criteriaWithField:equalTo:()

+ (instancetype) criteriaWithField: (NSString *)  field
equalTo: (id)  value 

Constructs an 'equal to' criteria to be used in a VEVVaultJSONCache query. It matches cached responses where the value for the field is equal to value.

Parameters
fieldThe cache field name to compare to the value.
valueThe value to compare to the value in the cache field.

◆ criteriaWithField:like:()

+ (instancetype) criteriaWithField: (NSString *)  field
like: (id)  value 

Constructs a 'like' criteria to be used in a VEVVaultJSONCache query. It matches cached responses where the string value for the field contains the substring value.

Parameters
fieldThe cache field to compare to the value.
valueThe value to compare to the value in the cache field.

The documentation for this class was generated from the following file: