Implementing ejbFindByXX using BMP confusion
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pat_Hardy
Posted On:   Monday, May 6, 2002 01:19 PM

Hello,

I understand that an ejbFindByXX method can return a collection of remote references to beans matching a query. I have done this using CMP. However, what I don't understand is how is this done using BMP? In BMP, am I returning a collection of primary keys and then the caller should execute multiple queries using the primary keys to retrieve information?



Thanks.

Re: Implementing ejbFindByXX using BMP confusion

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, May 7, 2002 01:11 AM

Pat,

Nothing in the specifications prevents you to return a collection of beans, instead of a collection of primary keys. This is up to you and to your design.

The specs do reccomend the developer to use a java.util.Collection as a return value, instead of the 'old' java.util.Enumeration.
About | Sitemap | Contact