Yes and no. We use EOGenerate (gap pattern) and ERXKey in our apps to take 
advantage of the nice Wonder features and eclipse code completion. The 
ERXKey.between() method calls ERXQ.between() which builds and returns a 
ERXAndQualifier.

Both ERXKey.between() and ERXQ.between() are declared to return a EOQualifier. 
The API would be consistent if ERXKey.between() and or ERXQ.between() returned 
a ERXAndQualifier or a ERXBetweenQualifier.

JR


From: Theodore Petrosky <[email protected]<mailto:[email protected]>>
Date: Wednesday, June 24, 2015 at 12:22 PM
To: JR Ruggentaler 
<[email protected]<mailto:[email protected]>>
Cc: WebObjects-Dev 
<[email protected]<mailto:[email protected]>>
Subject: Re: Building a qualifier with ERXKey.between(startDate, endDate)

Does ERXBetweenQualifier help?



On Jun 24, 2015, at 10:53 AM, Ruggentaler, JR 
<[email protected]<mailto:[email protected]>> wrote:

Why does the ERXKey.between() method return a EOQualifier and most of the other 
ERXKey methods return a chain-able ERX<something>Qualifier?

I am trying to do something like:

EOQualifier qual = Foo.START_DATE.between(startDate, endDate)
    .and(Bar.DATE_DELETED.isNull());

instead of:

EOQualifier qual = Foo.START_DATE.greaterThanOrEqualTo(startDate)

    .and(Foo.START_DATE.lessThanOrEqualTo(endDate))
.and(Bar.DATE_DELETED.isNull());

Is there another method like ERXKey.between() that return a chain-able 
ERXQualifier?

JR
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com

This email sent to [email protected]<mailto:[email protected]>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to