|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.eocontrol.EOQualifier.ComparisonSupport
The Java Client EOQualifier.ComparisonSupport class provides default implementations of the EOQualifierComparison interface.
The Java Client EOCustomObject uses EOQualifier.ComparisonSupport's default implementations. Typically the custom enterprise object classes inherit from EOCustomObject and inherit the default implementations. If the custom enterprise object class doesn't inherit from EOCustomObject, you should implement the EOQualifierComparison interface directly.
Constructor Summary | |
EOQualifier.ComparisonSupport()
|
Method Summary | |
static boolean |
compareValues(Object left,
Object right,
NSSelector selector)
Compares the two objects using selector. |
boolean |
doesContain(Object left,
Object right)
Returns true if receiver contains right, false if it doesn't. |
boolean |
isCaseInsensitiveLike(Object left,
Object right)
Returns true if receiver is a case insensitive match for right,
false if it isn't. |
boolean |
isEqualTo(Object left,
Object right)
Invokes equals and returns the result. |
boolean |
isGreaterThan(Object left,
Object right)
Invokes compare and returns true if the result is NSComparator.OrderedDescending. |
boolean |
isGreaterThanOrEqualTo(Object left,
Object right)
Invokes compare and returns true if the result is NSComparator.OrderedDescending
or NSComparator.OrderedSame. |
boolean |
isLessThan(Object left,
Object right)
Invokes compare and returns true if the result is NSComparator.OrderedAscending. |
boolean |
isLessThanOrEqualTo(Object left,
Object right)
Invokes compare and returns true if the result is NSComparator.OrderedAscending or NSComparator.OrderedSame. |
boolean |
isLike(Object left,
Object right)
Returns true if receiver matches right according to the semantics of the SQL like comparison operator, false if it doesn't. |
boolean |
isNotEqualTo(Object left,
Object right)
Invokes equals, inverts the result, and returns it. |
static void |
setSupportForClass(EOQualifier.ComparisonSupport support,
Class aClass)
Sets aClass as the support class to be used for comparing instances of aClass. |
static EOQualifier.ComparisonSupport |
supportForClass(Class aClass)
Returns the support class used for doing sort ordering comparisons for instances of aClass. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EOQualifier.ComparisonSupport()
Method Detail |
public static boolean compareValues(Object left, Object right, NSSelector selector)
left
- One of the objects to be comparedright
- One of the objects to be comparedselector
- The array to compare objectspublic boolean doesContain(Object left, Object right)
true
if receiver contains right, false
if it doesn't.
NSObject's implementation of this method returns true
only if
receiver is a kind of NSArray and contains right. In all other
cases it returns false
. This method is used in the Framework only
by EOQualifier for in-memory evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isCaseInsensitiveLike(Object left, Object right)
true
if receiver is a case insensitive match for right,
false
if it isn't. This method is used
in the Framework only by EOQualifier for in-memory evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isEqualTo(Object left, Object right)
left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isGreaterThan(Object left, Object right)
true
if the result is NSComparator.OrderedDescending.
This method is used in the Framework only by EOQualifier for in-memory
evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isGreaterThanOrEqualTo(Object left, Object right)
true
if the result is NSComparator.OrderedDescending
or NSComparator.OrderedSame. This method is used in the Framework
only by EOQualifier for in-memory evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isLessThan(Object left, Object right)
true
if the result is NSComparator.OrderedAscending.
This method is used in the Framework only by EOQualifier for in-memory
evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isLessThanOrEqualTo(Object left, Object right)
left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isLike(Object left, Object right)
false
if it doesn't.
This method is used in the Framework only by
EOQualifier for in-memory evaluation.left
- One of the objects to be comparedright
- One of the objects to be comparedpublic boolean isNotEqualTo(Object left, Object right)
left
- One of the objects to be comparedright
- One of the objects to be comparedpublic static void setSupportForClass(EOQualifier.ComparisonSupport support, Class aClass)
supportClass
- support class to be used for comparingaClass
- the class to be comparedpublic static EOQualifier.ComparisonSupport supportForClass(Class aClass)
aClass
- The input class to be compared
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |