How would this not be germane to CMP? Lets say I create an entity bean with
the method:
Bean.getAddressesOrderedByName()
If we have EJB QL ORDER BY clause, then CMP as well as BMP can implement
this.
As a client who invokes this method, I expect n Addresses returned, but may
only want to look at the 1st m Addresses until I find something to my
liking. Ordering by Name may increase the chance of find the Address I want
(minimizing m).
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of James Cook
Sent: Tuesday, May 01, 2001 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: EJB 2.0: EJB QL no ORDER BY clause
Granted that this is useful, but not in a CMP bean. This is stuff specific
to
BMP or session beans.
jim
----- Original Message -----
From: "Gene Chuang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2001 3:05 PM
Subject: Re: EJB 2.0: EJB QL no ORDER BY clause
> I think having an ORDER BY clause is important, i.e. sorting at fetch time
> as opposed to "container-izing" time. For example, what if I want the row
> with a greatest field value, examine it, and either take it or get the
next
> row with the 2nd greatest field value, examine it, etc...
>
> Many vendors implement lazy-load ResultSet, which will further promotes
the
> performance of fetching a group of sorted rows but only retrieve the data
> from each row on a as-needed basis.
>
> Gene
>
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of James Cook
> Sent: Tuesday, May 01, 2001 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EJB 2.0: EJB QL no ORDER BY clause
>
>
> Barring something that I have overlooked, I don't think a reliance on an
> order
> by clause is a good practice. Ordering is something that should be done
> after
> the collection is realized.
>
> jim
>
>
> ----- Original Message -----
> From: "Jay Walters" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 01, 2001 12:22 PM
> Subject: Re: EJB 2.0: EJB QL no ORDER BY clause
>
>
> > This may seem tangential, but are Java 2 Collections considered ordered?
> > There is clearly no restriction that they can't be ordered, but somebody
> for
> > some reason decided to use Collection for the return type of
multi-object
> > finders instead of List.
> >
> > Cheers
> > Jay
> >
> > -----Original Message-----
> > From: Richard Monson-Haefel [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 30, 2001 1:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: EJB 2.0: EJB QL no ORDER BY clause
> >
> >
> > EJB QL is missing an ORDER BY clause. I think this is an important
> > omissions. This feature should be supported by just about every target
> > environment, so why isn't included in EJB QL?
> >
> > NOTE:
> > If you are interested in debating the virtues of EJB QL itself, kindly
> > do so in a separate thread. I'm just looking for feedback on this one
> > issue.
> >
> > Thanks,
> >
> > Richard
> > --
> > Richard Monson-Haefel
> > Author of Enterprise JavaBeans, 2nd Edition (O'Reilly 2000)
> > Co-Author of Java Message Service (O'Reilly 2000)
> > http://www.jMiddleware.com
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".