Predicate class is used to generate complex filter criteria. This will be used by DataManager to perform multiple filtering operation.
Adds new predicate on existing predicate with “and” condition.
Returns Predicate
Adds new predicate on existing predicate with “and not” condition.
Returns Predicate
Adds new predicate on existing predicate with “or” condition.
Returns Predicate
Adds new predicate on existing predicate with “and not” condition.
Returns Predicate
Converts predicates to plain JavaScript. This method is uses Json stringify when serializing Predicate object.
Returns Object
Validate the record based on the predicates.
Parameter | Type | Description |
---|---|---|
record | Object |
Defines the datasource record. |
Returns boolean
Adds n-number of new predicates on existing predicate with “and” condition.
Parameter | Type | Description |
---|---|---|
args | Object[] |
Defines the collection of predicates. |
Returns Predicate
Adds n-number of new predicates on existing predicate with “and not” condition.
Parameter | Type | Description |
---|---|---|
args | Object[] |
Defines the collection of predicates. |
Returns Predicate
Converts plain JavaScript object to Predicate object.
Parameter | Type | Description |
---|---|---|
json | Predicate[] | Predicate |
Defines single or collection of Predicate. |
Returns Predicate[]
Adds n-number of new predicates on existing predicate with “or” condition.
Parameter | Type | Description |
---|---|---|
args | Object[] |
Defines the collection of predicates. |
Returns Predicate
Adds n-number of new predicates on existing predicate with “and not” condition.
Parameter | Type | Description |
---|---|---|
args | Object[] |
Defines the collection of predicates. |
Returns Predicate