Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the question from whizlab

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are true?
1.ejbFind() returns the Primary Key.
2.The find method/s in the Home interface return an EJBObject or an Enumeration.
author's answer is that 1 and 2 are right.
my questions are:
1. I know ejbFindByPrimaryKey(PrimaryKey) but can not understand ejbFind(), what does it find?
2.ejbFindByXXX return Collection (or numeration), the associated finder in home would return Collection (or numeration),why it can return EJBObject?
please help to understand these questions, thanks
 
Jp Vinjamoori
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Author's question is not clear.
By ejbFind(), I think, the author means the finder methods in Bean. He doesn't specify whether its on Home or in Bean.
Finder method in Beans always returns PrimaryKey/Collection of primary keys. Home, interprets this call and returns the apropriate remote references to the Beans (single reference or collection of references)
 
Dragan Milic
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jp Vinjamoori:
Author's question is not clear.
By ejbFind(), I think, the author means the finder methods in Bean. He doesn't specify whether its on Home or in Bean.

ejbFind() can only be in bean. if the ejbFind() method would be in home, it would be a business method (implemented by ejbHomeEjbFind() in bean).
[ March 17, 2003: Message edited by: Dragan Milic ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic