Rujith de Silva wrote:

> The server duly calls personBean.ejbFindByName("bob").
>
> Using a single SQL SELECT statement that looks like:
>
>     SELECT id FROM person WHERE name like "bob%"
>
> the 20 people called "bob" are found, so this returns an Enumeration
> containing the primary keys for those twenty entities.
>
> [[I'm guessing here]] The server then calls
> personBean.ejbFindByPrimaryKey(keyI) 20 times to build an enumeration
> of those twenty people.  Each call may involve a single SQL SELECT
> statement, but it will be executed twenty times:
>
>     SELECT name, address, phone FROM person
>     WHERE id = ?

I think this is implementation dependant..
For example Ejipt, will return a Collection containing proxies of Entity Beans
when you do a findByName. So ejbLoad will be called only when the client
actually use the bean just before a method call..

St�phane

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