Return type of ejbFind methods

Discussions

EJB programming & troubleshooting: Return type of ejbFind methods

  1. Return type of ejbFind methods (2 messages)

    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?

    Threaded Messages (2)

  2. Return type of ejbFind methods[ Go to top ]

    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
  3. Return type of ejbFind methods[ Go to top ]

    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