[JBoss-user] [Persistence & CMP/JBoss] - Re: finder exception is not thrown

2004-08-26 Thread elich11
When will the cmp engine will throw a finder exception (in case of finder that returns 
a collection) ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846286#3846286

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846286


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: finder exception is not thrown

2004-08-26 Thread darranl
What makes you think that the home interface says that the exception should be thrown 
if no results are found.

Having no data returned from a query is a valid response, it says that there was 
nothing that matched the search criteria.  It is only in the context of your 
application that you can decide if this is an error situation.

>From the EJB specification: -

The Container throws the FinderException (or subclass of FinderException) from the 
implementation of a finder or select method to indicate an application-level error in 
the finder or select method.

If the finder method was only supposed to return a single value and multiple were 
returned this would be a situation that an application error needs reporting.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846283#3846283

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846283


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: finder exception is not thrown

2004-08-26 Thread elich11
I know that, the question is should jboss throw a finder exception in this situation 
(hint: the HomeInterface says it should)

  | public Collection findByName(String name) throws FinderException;
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846281#3846281

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846281


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: finder exception is not thrown

2004-08-25 Thread timshaw
I thought that this was correct. The Collection return will return the empty 
Collection if no matches are found. Just check for empty instead of a try/catch.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846128#3846128

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846128


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user