It's not a secret anymore!*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes FinderException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "FinderException " Watch "FinderException " New topic
Author

FinderException

sanjeev mehra
Ranch Hand

Joined: Feb 12, 2001
Posts: 93
Simple question,
HF page 274 Last paragraph
Note: a client will not get an exception if a multi-entity finder can't find any mathces! Instead, the client will still get a Colection, but it simply be empty.

HF page 275
public Collection findByCity(String city) throws FinderException, RemoteException;

pls. let me know what exactly I am missing here.

Thanks.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Find methods that return an Enumeration or Collection type (multi-entity finders) return an empty collection (not a null reference) if no matching beans can be found or throw a FinderException if an application error occurs.
 
GeeCON Prague 2014
 
subject: FinderException