The ejbFindLargeAccounts(..) method must convert the ResultSet into a collection of primary keys,
and return the collection as a method result. The Container converts the collection of primary keys
to a collection of object references, and returns the collection of ORs to the client.
 
Vlada
-----Original Message-----
From: Damon Williams <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, March 03, 1999 12:57 PM
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."
 
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."
 
I don't understand the discrepancy!  Is this a typo?  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?
 
 
---------------------------------------------------
Damon Williams
Simplified Telesys
Sun Certified Java Programmer
www.simpletel.com
 

 

Reply via email to