PATH |
EOQualifier.ComparisonSupport
Inherits from: Object
Package: com.webobjects.eocontrol
Class Description
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.
Method Types
Setting up automatic support setSupportForClass supportForClass Comparing two objects compareValues EOQualifierComparison methods doesContain isCaseInsensitiveLike isEqualTo isGreaterThan isGreaterThanOrEqualTo isLessThan isLessThanOrEqualTo isLike isNotEqualTo
Static Methods
compareValues
public static int compareValues( Object anObject, Object anotherObject, NSSelector selector)
setSupportForClass
public static void setSupportForClass( EOSortOrdering.ComparisonSupport supportClass, Class aClass)
supportForClass
public static EOSortOrdering.ComparisonSupport supportForClass(Class aClass)
Instance Methods
doesContain
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.
isCaseInsensitiveLike
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.
isEqualTo
public boolean isEqualTo( Object receiver, Object anObject)
isGreaterThan
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.
isGreaterThanOrEqualTo
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.
isLessThan
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.
isLessThanOrEqualTo
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.
isLike
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.
isNotEqualTo
public boolean isNotEqualTo( Object receiver, Object anObject)
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)