PATH |
Inherits from: Object
Package: com.webobjects.eocontrol
The Java Client EOQualifier.ComparisonSupport class provides default implementations of the EOQualifierComparison interface.
The Java Client EOCustomObject uses EOQualifier.ComparisonSupport's default implementations. Typically your custom enterprise object classes inherit from EOCustomObject and inherit the default implementations. If your custom enterprise object class doesn't inherit from EOCustomObject, you should implement the EOQualifierComparison interface directly.
Setting up automatic support setSupportForClass supportForClass Comparing two objects compareValues EOQualifierComparison methods doesContain isCaseInsensitiveLike isEqualTo isGreaterThan isGreaterThanOrEqualTo isLessThan isLessThanOrEqualTo isLike isNotEqualTo
public static int compareValues( Object anObject, Object anotherObject, NSSelector selector)
public static void setSupportForClass( EOSortOrdering.ComparisonSupport supportClass, Class aClass)
public static EOSortOrdering.ComparisonSupport supportForClass(Class aClass)
public boolean doesContain( Object receiver, Object anObject)
true
if receiver contains anObject, false
if it doesn't. NSObject's implementation of this method returns true
only if receiver is a kind of NSArray and contains anObject. In all other cases it returns false
. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isCaseInsensitiveLike( Object receiver, Object anObject)
true
if receiver is a case-insensitive match for anObject, false
if it isn't. See "Using Wildcards and the like Operator" (page 99) for the wildcard characters allowed. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isEqualTo( Object receiver, Object anObject)
public boolean isGreaterThan( Object receiver, Object anObject)
true
if the result is NSComparitor.OrderedDescending
. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isGreaterThanOrEqualTo( Object receiver, Object anObject)
true
if the result is NSComparitor.OrderedDescending
or NSComparitor.OrderedSame
. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isLessThan( Object receiver, Object anObject)
true
if the result is NSComparator.OrderedAscending
. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isLessThanOrEqualTo( Object receiver, Object anObject)
true
if the result is NSComparator.OrderedAscending
or NSComparator.OrderedSame
. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isLike( Object receiver, Object anObject)
true
if receiver matches anObject according to the semantics of the SQL like comparison operator, false
if it doesn't. See "Using Wildcards and the like Operator" (page 99) for the wildcard characters allowed. This method is used in the Framework only by EOQualifier for in-memory evaluation.
public boolean isNotEqualTo( Object receiver, Object anObject)
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)