API  0.9.10
CPComparisonPredicate_Constants.j File Reference

Go to the source code of this file.

Variables

 CPAllPredicateModifier = 1
 
 CPAnyPredicateModifier = 2
 
 CPBeginsWithPredicateOperatorType = 8
 
 CPBetweenPredicateOperatorType = 100
 
 CPCaseInsensitivePredicateOption = 1
 
 CPContainsPredicateOperatorType = 99
 
 CPCustomSelectorPredicateOperatorType = 11
 
 CPDiacriticInsensitivePredicateOption = 2
 
 CPDiacriticInsensitiveSearch = 128
 
 CPDirectPredicateModifier = 0
 
 CPEndsWithPredicateOperatorType = 9
 
 CPEqualToPredicateOperatorType = 4
 
 CPGreaterThanOrEqualToPredicateOperatorType = 3
 
 CPGreaterThanPredicateOperatorType = 2
 
 CPInPredicateOperatorType = 10
 
 CPLessThanOrEqualToPredicateOperatorType = 1
 
 CPLessThanPredicateOperatorType = 0
 
 CPLikePredicateOperatorType = 7
 
 CPMatchesPredicateOperatorType = 6
 
 CPNotEqualToPredicateOperatorType = 5
 

Variable Documentation

◆ CPAllPredicateModifier

CPAllPredicateModifier = 1

A predicate to compare all entries in the destination of a to-many relationship.

The left hand side must be a collection. The corresponding predicate compares each value in the left hand side with the right hand side, and returns NO when it finds the first mismatch—or YES if all match.

Definition at line 36 of file CPComparisonPredicate_Constants.j.

◆ CPAnyPredicateModifier

CPAnyPredicateModifier = 2

A predicate to match with any entry in the destination of a to-many relationship.

The left hand side must be a collection. The corresponding predicate compares each value in the left hand side against the right hand side and returns YES when it finds the first match—or NO if no match is found.

Definition at line 43 of file CPComparisonPredicate_Constants.j.

◆ CPBeginsWithPredicateOperatorType

CPBeginsWithPredicateOperatorType = 8

A begins-with predicate.

Definition at line 101 of file CPComparisonPredicate_Constants.j.

◆ CPBetweenPredicateOperatorType

CPBetweenPredicateOperatorType = 100

A predicate to determine if the right hand side lies between bounds specified by the left hand side.

Returns YES if [lhs between rhs]; the right hand side must be an array in which the first element sets the lower bound and the second element the upper, inclusive. Comparison is performed using compare: or the class-appropriate equivalent.

Definition at line 134 of file CPComparisonPredicate_Constants.j.

◆ CPCaseInsensitivePredicateOption

CPCaseInsensitivePredicateOption = 1

A case-insensitive predicate.

Definition at line 49 of file CPComparisonPredicate_Constants.j.

◆ CPContainsPredicateOperatorType

CPContainsPredicateOperatorType = 99

A predicate to determine if the left hand side contains the right hand side.

Returns YES if [lhs contains rhs]; the left hand side must be a CPExpression object that evaluates to a collection

Definition at line 127 of file CPComparisonPredicate_Constants.j.

◆ CPCustomSelectorPredicateOperatorType

CPCustomSelectorPredicateOperatorType = 11

Predicate that uses a custom selector that takes a single argument and returns a BOOL value.

The selector is invoked on the left hand side with the right hand side.

Definition at line 120 of file CPComparisonPredicate_Constants.j.

◆ CPDiacriticInsensitivePredicateOption

CPDiacriticInsensitivePredicateOption = 2

A diacritic-insensitive predicate.

Definition at line 54 of file CPComparisonPredicate_Constants.j.

◆ CPDiacriticInsensitiveSearch

CPDiacriticInsensitiveSearch = 128

Definition at line 55 of file CPComparisonPredicate_Constants.j.

◆ CPDirectPredicateModifier

CPDirectPredicateModifier = 0

A predicate to directly compare the left and right hand sides.

Definition at line 29 of file CPComparisonPredicate_Constants.j.

◆ CPEndsWithPredicateOperatorType

CPEndsWithPredicateOperatorType = 9

An ends-with predicate.

Definition at line 106 of file CPComparisonPredicate_Constants.j.

◆ CPEqualToPredicateOperatorType

CPEqualToPredicateOperatorType = 4

An equal-to predicate.

Definition at line 81 of file CPComparisonPredicate_Constants.j.

◆ CPGreaterThanOrEqualToPredicateOperatorType

CPGreaterThanOrEqualToPredicateOperatorType = 3

A greater-than-or-equal-to predicate.

Definition at line 76 of file CPComparisonPredicate_Constants.j.

◆ CPGreaterThanPredicateOperatorType

CPGreaterThanPredicateOperatorType = 2

A greater-than predicate.

Definition at line 71 of file CPComparisonPredicate_Constants.j.

◆ CPInPredicateOperatorType

CPInPredicateOperatorType = 10

A predicate to determine if the left hand side is in the right hand side.

For strings, returns YES if the left hand side is a substring of the right hand side. For collections, returns YES if the left hand side is in the right hand side.

Definition at line 113 of file CPComparisonPredicate_Constants.j.

◆ CPLessThanOrEqualToPredicateOperatorType

CPLessThanOrEqualToPredicateOperatorType = 1

A less-than-or-equal-to predicate.

Definition at line 66 of file CPComparisonPredicate_Constants.j.

◆ CPLessThanPredicateOperatorType

CPLessThanPredicateOperatorType = 0

A less-than predicate.

Definition at line 61 of file CPComparisonPredicate_Constants.j.

◆ CPLikePredicateOperatorType

CPLikePredicateOperatorType = 7

A simple subset of the matches predicate, similar in behavior to SQL LIKE.

Definition at line 96 of file CPComparisonPredicate_Constants.j.

◆ CPMatchesPredicateOperatorType

CPMatchesPredicateOperatorType = 6

A full regular expression matching predicate.

Definition at line 91 of file CPComparisonPredicate_Constants.j.

◆ CPNotEqualToPredicateOperatorType

CPNotEqualToPredicateOperatorType = 5

A not-equal-to predicate.

Definition at line 86 of file CPComparisonPredicate_Constants.j.