Re: [JBoss-user] what if no beans are found by a finder ?

2003-07-28 Thread Alexey Loubyansky
Hello Ionel, if finder's return type is a local interface then if the entity is not found, FinderException is thrown. If finder's return type is Collection or Set then if no entity is found an empty Collection or Set is returned (w/o exception). alex Friday, July 25, 2003, 4:53:08 PM, Ionel

AW: [JBoss-user] what if no beans are found by a finder ?

2003-07-28 Thread Janardhan Burugupalli
one short question regarding the return type Collection or Set.. I thought a finder always returns a Collection or atleast the default finders. Or is there a way to make it return a Set. If yes, then is there a performance gain between the two return types..and we extensivley use iterators over

Re: AW: [JBoss-user] what if no beans are found by a finder ?

2003-07-28 Thread Alexey Loubyansky
Hello Janardhan, you're right, Set is not allowed as the return type for a finder. Sorry for confusion. alex Monday, July 28, 2003, 10:47:14 AM, Janardhan Burugupalli wrote: JB one short question regarding the return type Collection or Set.. JB I thought a finder always returns a Collection

Re: AW: [JBoss-user] what if no beans are found by a finder ?

2003-07-28 Thread Jonathan . O'Connor
Further clarification: I thought that if you specify DISTINCT in the EJBQL query then the system creates a Set underneath, but returns it as a Collection. This, of course, is fine as Set extends/implements Collection. Ciao, Jonathan O'Connor Development Manager XCOM Dublin Phone: +353 1 872 3305

[JBoss-user] what if no beans are found by a finder ?

2003-07-27 Thread Ionel Gardais
Hi, What happens if a finder doesn't find any beans matching its query ? Does a FinderException is thrown or does a null value is returned ? Thanks, Ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports,