The container will turn around and instantiate the individual beans returned
from the finder through ejbSetEntityContext and ejbLoad calls... It's kind
of inefficient since the SQL typically all gets fired again for each bean.
Better to cache the results of the initial SQL call and have the ejbLoad
calls read from the cache...
-Chris.
> -----Original Message-----
> From: Amaresh Rajasekharan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, April 10, 2000 10:52 PM
> To: [EMAIL PROTECTED]
> Subject:
>
> Hello All,
> I have a very basic question about accessing the data through BMP entity
> bean. Say there is a table with six columns and one of them is primary
> key. I
> am writing a finder method that searches for a particular data in, say
> fourth
> column.
> Typically I will write a finder function, fire an SQL statement and from
> the result set, get the primary key column, instantiate the PrimaryKey
> class
> and return an enumeration of that objects to the container.
> This way, I get the primary key data. However, how can I access the other
> columns?
> Basically, my problem is because I can send only the primary key to the
> container. How can the container send me the remote instances with all the
> six of my bean variables filled? Do I need to add some code for this? Is
> ejbLoad right place to do that?
> Any help will be gratefully acknowledged.
> Thanks and Regards
> Amaresh
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
> http://webmail.netscape.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".