We want the signature of the findByPrimaryKey to have the exact types
for the input argument and the return value. This makes it impossible to
include the method in the home interface because each enterprise bean
needs a different signature.

Vlada

-----Original Message-----
From: Saurabh Sahai <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, March 25, 1999 10:03 PM
Subject: Re: findByPrimaryKey


>Thanks Vlada.
>
>>Yes, the home interface of every entity bean must have the
>>findByPrimaryKey method, and every entity class with bean
>>managed persistence must define the ejbFindByPrimaryKey
>>method.
>>
>>The implementation of the ejbFindByPrimaryKey should verify
>>that the entity with the given primary key exists.
>>
>
>
>That is precisely what my point is. If every BMP entity bean has to have an
>ejbFindByPrimaryKey method, should'nt this be a method on the EntityBean
>interface. (Maybe we need a BMPEntityBean class).
>
>I am saying this because from a container's point, even though the container
>knows that it is dealing with a BMP entity bean, it cannot do something like
>:
>
>    EntityBean bean;
>    .........
>    bean.ejbFindByPrimaryKey(...)
>
>It will need to use reflection to get the find method and invoke it.
>
>Thanks.
>
>-Saurabh
>
>===========================================================================
>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