Hi,

Depends on the vendor.  For most, NO Entity Beans are tied to the Collection
(or Enumeration for EJB 1.0) of EJBObjects at the time of the return from
the finder method.  The container will not pair up a Bean instance with an
EJBObject until actually the client evokes the business method of the one or
more EJBObjects.

Most vendors implement finders this way so no extraneous ejbLoads are called
unless the client actually requests data.  However, some vendors have allow
flag-able option (Weblogic for one) that tells CMP finders to "flesh out"
all the beans in a bulk SQL call so that after the initial finder
invocation, future perusal of the EJBObjects will not incur any further db
hits.

Gene

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
To: [EMAIL PROTECTED]
Sent: 8/25/00 8:52 PM
Subject: Finder method in Entity Bean

Hi,
I have one query regarding finder methods in Entity Beans.
When a client invokes a finder method say, findByPrice(int
startingAmount,int finalAmount), more than one row can be returned.
In this case, enumeration of EJBObjects(containing refernces of primary
class objects) will be returned to the user.
What there be one Entity Bean tied to that many EJBObjects or will there
be
entity bean corresponding to each EJBObject ie each EJBObject tied to
one
entity bean?

Thanks,
Harish Taneja

========================================================================
===
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