Are there any opinions on the best choice of collection classes for
returning?

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Vlada Matena
Sent: Wednesday, November 24, 1999 11:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Multi value ejbFind methods


A multi-object finder should return an empty collection if no object is
found.

Vlada

----- Original Message -----
From: Martin Hebrank <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 24, 1999 8:50 AM
Subject: Re: Multi value ejbFind methods


> On Wed, Nov 24, 1999 at 03:12:21PM +0100, Rickard �berg wrote:
> > Richard Monson-Haefel wrote:
> > > I need a Sun EJB authority to clarify the expected behavior if a multi
> > > value ejbFind method fails to locate any matching entities.  Should it
> > > return null; an empty collection; or throw a FinderException?
> >
> > I would vote for an empty collection. That would make the most sense and
> > require the least nr of special cases in code IMHO.
>
> I would agree and have actually been using this method for all of my
finder
> methods.
>
> ** Martin
>
>
===========================================================================
> 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".

Reply via email to