Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Large finders on entity beans refactored

Moore, Gary

2003-09-16

Replies:

Large finders on entity beans refactored
Katz,
 
    My understanding for this warning is that the finder methods return a collection of remote interfaces, this can be a huge performance and resource issue if the finder method returns a large number or results from persistent storage.
 
    You are correct, this can pose a reusability issue.  To minimize this, I use the DAO pattern and if I choose Entity beans, I would delegate the data access to the DAO.
 
Just my $0.02
Gary
-----Original Message-----
From: Katz Guy [mailto:Guy_Katz@ICOMVERSE.COM]
Sent: Sunday, September 14, 2003 1:42 AM
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Large finders on entity beans refactored

Hi;
Going through the core patterns book.
There is a bad practice dedicated to not using finder methods when large result is expected but use a DAO instead.
My understanding is that the authors want to have a 'dual interface' for access to the same data, Modeling the data itself as entity beans yet using DAO for the search. Is this correct?

If so, wouldn't this be in contrast to resusability? Also, isnt this a good place to put your money on vendor container optimiations?

_______________________
Guy Katz
Software Architect, CAP-IFS
Comverse
guy.katz@comverse.com
+972 3 7663686

==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.