• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

ValueListHandler Design Pattern

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic