aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes ValueListHandler Design Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "ValueListHandler Design Pattern " Watch "ValueListHandler Design Pattern " New topic
Author

ValueListHandler Design Pattern

Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
Hello,

This helps to avoid having many ejbFind calls...i got this pattern but another question comes out....
Example : 100 records to browse & 5 pages displaying 20 records per page (so, the USER1 sees 1-2-3-4-5 links on this page)
The datas having been loaded in cache and the USER1 is browing the datas by making call to the ValueListHandler, right ?
Only one SQL call has been so far as the patterns suggested.
What does happen ?or how does it work if another USER2 add records in the DB.....i mean the datas are 101 records now...how should it be managed with this pattern to show the '6' link on the USER1 screen at the moment when he is browsing ???
Of course i know to do that...when the USER adds records, i can the cache ValueListHandler too and add there too if it does not exist....so the 6 link will be displayed, but my question how is it managed by default in J2EE design pattern ???

Regards.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ValueListHandler Design Pattern
 
Similar Threads
Is there a default cache?
How i get value?
few doubts in MVC design pattern and EJB Concepts
partII: stateful session bean is necessary to serve as a booking cart?
Cleared Part II/III...99%