Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FinderException

 
sanjeev mehra
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic