see below

> -----Original Message-----
> From: Damon Williams [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 03, 1999 2:52 PM
> To:   [EMAIL PROTECTED]
> Subject:      ejbFind() method return types
>
> On page 71 of the Spec (1.0), in section 9.7.5:
>
> "The return type of a finder method must be the enterprise Bean's primary
> key type, or a collection of objects of the primary key type."
        [Chip Wilson]
        This is the ejbFind method in the bean class
>
> On page 72 in section 9.7.8:
>
> "The return type for a finder method must be the enterprise Bean's remote
> interface type, or a collection thereof."
        [Chip Wilson]
        This is the find method in the home interface.
>
> I don't understand the discrepancy!  Is this a typo?
        [Chip Wilson]
        Nope.  Different types.

>   Also, let's say we define an ejbFindLargeAccounts(double amount) method,
> in the body of which we execute the SQL query and receive a ResultSet back
> with a selection of rows from the database.  How then do we turn this data
> into a collection of Entity Bean remote interfaces, which is what section
> 9.7.8 requires us to return?
        [Chip Wilson]
        The bean class returns an enumeration of a collection of primary
keys.  It is the container's responsibility to instantiate an entity bean
for each PK and return the remote interfaces to the client.
>
> ---------------------------------------------------
> Damon Williams
> Simplified Telesys
> Sun Certified Java Programmer
> www.simpletel.com <http://www.simpletel.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".

Reply via email to