Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOQualifier.ComparisonSupport


Inherits from:
Object
Package:
com.apple.client.eocontrol


Class Description


The com.apple.client.eocontrol EOQualifier.ComparisonSupport class provides default implementations of the EOQualifierComparison interface.


Note: This class doesn't exist in the com.apple.yellow.eocontrol package.

The com.apple.client.eocontrol 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)

Compares the two objects using selector. You should use this method to compare value objects instead of calling selector directly. This method is the entry point for the comparison support, and calls methods in support classes if appropriate.

setSupportForClass

public static void setSupportForClass( EOSortOrdering.ComparisonSupport supportClass, Class aClass)

Sets supportClass as the support class to be used for comparing instances of aClass. When compareValues is called, the methods in supportClass are used to do the comparison for instances of aClass.

supportForClass

public static EOSortOrdering.ComparisonSupport supportForClass(Class aClass)

Returns the support class used for doing sort ordering comparisons for instances of aClass.


Instance Methods



doesContain

public boolean doesContain( Object receiver, Object anObject)

Returns 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)

Returns true if receiver is a case-insensitive match for anObject, false if it isn't. See "Using Wildcards and the like Operator" 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)

Invokes equals and returns the result. This method is used in the Framework only by EOQualifier for in-memory evaluation.

isGreaterThan

public boolean isGreaterThan( Object receiver, Object anObject)

Invokes compare and returns 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)

Invokes compare and returns 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)

Invokes compare and returns 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)

Invokes compare and returns 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)

Returns 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" 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)

Invokes equals, inverts the result, and returns it. This method is used in the Framework only by EOQualifier for in-memory evaluation.


Table of Contents