Re: [JBoss-user] what if no beans are found by a finder ?
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 Gardais wrote: IG Hi, IG What happens if a finder doesn't find any beans matching its query ? IG Does a FinderException is thrown or does a null value is returned ? IG Thanks, IG Ionel IG --- IG This SF.Net email sponsored by: Free pre-built ASP.NET sites including IG Data Reports, E-commerce, Portals, and Forums are available now. IG Download today and enter to win an XBOX or Visual Studio .NET. IG http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 IG ___ IG JBoss-user mailing list IG [EMAIL PROTECTED] IG https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] what if no beans are found by a finder ?
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 these returned Colelctions. But i read some were that there is some performance difference iterating over Collection, Map, Set...can u just take few mins to eloborate..these things regards jani -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Alexey Loubyansky Gesendet: Montag, 28. Juli 2003 08:00 An: Ionel Gardais Betreff: Re: [JBoss-user] what if no beans are found by a finder ? 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 Gardais wrote: IG Hi, IG What happens if a finder doesn't find any beans matching its query ? IG Does a FinderException is thrown or does a null value is returned ? IG Thanks, IG Ionel IG --- IG This SF.Net email sponsored by: Free pre-built ASP.NET sites including IG Data Reports, E-commerce, Portals, and Forums are available now. IG Download today and enter to win an XBOX or Visual Studio .NET. IG http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 IG ___ IG JBoss-user mailing list IG [EMAIL PROTECTED] IG https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] what if no beans are found by a finder ?
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 or atleast the default JB finders. Or is there a way to make it return a Set. If yes, then is there a JB performance gain between the two return types..and we extensivley use JB iterators over these returned Colelctions. But i read some were that there JB is some performance difference iterating over Collection, Map, Set...can u JB just take few mins to eloborate..these things JB regards JB jani JB -Ursprungliche Nachricht- JB Von: [EMAIL PROTECTED] JB [mailto:[EMAIL PROTECTED] Auftrag von Alexey JB Loubyansky JB Gesendet: Montag, 28. Juli 2003 08:00 JB An: Ionel Gardais JB Betreff: Re: [JBoss-user] what if no beans are found by a finder ? JB Hello Ionel, JB if finder's return type is a local interface then if the entity is not JB found, FinderException is thrown. JB If finder's return type is Collection or Set then if no entity is JB found an empty Collection or Set is returned (w/o exception). JB alex JB Friday, July 25, 2003, 4:53:08 PM, Ionel Gardais wrote: IG Hi, IG What happens if a finder doesn't find any beans matching its query ? IG Does a FinderException is thrown or does a null value is returned ? IG Thanks, IG Ionel IG --- IG This SF.Net email sponsored by: Free pre-built ASP.NET sites including IG Data Reports, E-commerce, Portals, and Forums are available now. IG Download today and enter to win an XBOX or Visual Studio .NET. IG JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 IG ___ IG JBoss-user mailing list IG [EMAIL PROTECTED] IG https://lists.sourceforge.net/lists/listinfo/jboss-user JB --- JB This SF.Net email sponsored by: Free pre-built ASP.NET sites including JB Data Reports, E-commerce, Portals, and Forums are available now. JB Download today and enter to win an XBOX or Visual Studio .NET. JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 JB ___ JB JBoss-user mailing list JB [EMAIL PROTECTED] JB https://lists.sourceforge.net/lists/listinfo/jboss-user JB --- JB This SF.Net email sponsored by: Free pre-built ASP.NET sites including JB Data Reports, E-commerce, Portals, and Forums are available now. JB Download today and enter to win an XBOX or Visual Studio .NET. JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 JB ___ JB JBoss-user mailing list JB [EMAIL PROTECTED] JB https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] what if no beans are found by a finder ?
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 Mobile: +353 86 824 9736 Alexey Loubyansky [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 28.07.2003 09:27 Please respond to jboss-user To: Janardhan Burugupalli [EMAIL PROTECTED] cc: Subject:Re: AW: [JBoss-user] what if no beans are found by a finder ? 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 or atleast the default JB finders. Or is there a way to make it return a Set. If yes, then is there a JB performance gain between the two return types..and we extensivley use JB iterators over these returned Colelctions. But i read some were that there JB is some performance difference iterating over Collection, Map, Set...can u JB just take few mins to eloborate..these things JB regards JB jani JB -Ursprungliche Nachricht- JB Von: [EMAIL PROTECTED] JB [mailto:[EMAIL PROTECTED] Auftrag von Alexey JB Loubyansky JB Gesendet: Montag, 28. Juli 2003 08:00 JB An: Ionel Gardais JB Betreff: Re: [JBoss-user] what if no beans are found by a finder ? JB Hello Ionel, JB if finder's return type is a local interface then if the entity is not JB found, FinderException is thrown. JB If finder's return type is Collection or Set then if no entity is JB found an empty Collection or Set is returned (w/o exception). JB alex JB Friday, July 25, 2003, 4:53:08 PM, Ionel Gardais wrote: IG Hi, IG What happens if a finder doesn't find any beans matching its query ? IG Does a FinderException is thrown or does a null value is returned ? IG Thanks, IG Ionel IG --- IG This SF.Net email sponsored by: Free pre-built ASP.NET sites including IG Data Reports, E-commerce, Portals, and Forums are available now. IG Download today and enter to win an XBOX or Visual Studio .NET. IG JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 IG ___ IG JBoss-user mailing list IG [EMAIL PROTECTED] IG https://lists.sourceforge.net/lists/listinfo/jboss-user JB --- JB This SF.Net email sponsored by: Free pre-built ASP.NET sites including JB Data Reports, E-commerce, Portals, and Forums are available now. JB Download today and enter to win an XBOX or Visual Studio .NET. JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 JB ___ JB JBoss-user mailing list JB [EMAIL PROTECTED] JB https://lists.sourceforge.net/lists/listinfo/jboss-user JB --- JB This SF.Net email sponsored by: Free pre-built ASP.NET sites including JB Data Reports, E-commerce, Portals, and Forums are available now. JB Download today and enter to win an XBOX or Visual Studio .NET. JB http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 JB ___ JB JBoss-user mailing list JB [EMAIL PROTECTED] JB https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] what if no beans are found by a finder ?
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, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user