Hi all,
why ejbFind methods should only return Primary key,
enumeration or Collection? why not Hashtable ?
can ejbFind have return type as primitive data types?
-
Return type of ejbFind methods (2 messages)
- Posted by: P S Vinay Ram
- Posted on: September 19 2001 03:33 EDT
Threaded Messages (2)
- Return type of ejbFind methods by Fabrizio Russo on September 19 2001 06:44 EDT
- Return type of ejbFind methods by Gal Binyamini on September 19 2001 18:34 EDT
-
Return type of ejbFind methods[ Go to top ]
- Posted by: Fabrizio Russo
- Posted on: September 19 2001 06:44 EDT
- in response to P S Vinay Ram
because,
if the SELECT is too big, how many object should be allocated in the appServer ?
How of the object returned from the query do you realy need ?
> can ejbFind have return type as primitive data types?
No, is out of specification -
Return type of ejbFind methods[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: September 19 2001 18:34 EDT
- in response to P S Vinay Ram
What would you expect the Hashtable keys would be? The PKs?
This makes sense for something like ejbFindByPK, but is quite comfusing for ejbFindByName... I would assume names are the keys of the Hashtable...
Anyway, EJB supports only the basic Collection datatypes. Enumeration for Java1 and Collection for Java2.
EJB finders find beans, not primitives. So they can only return beans (either one bean or a collection of beans).
Gal