• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

ValueListHandler Design Pattern

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • 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.


 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!