Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Ideal solution to pagination (long lists)?

Manos Batsis

2007-01-04

Replies:


Making a suggestion is difficult without knowing what tools/tiers or
other specifics are involved.

Our MD4J [1] generated DAOs return implementations of a Page interface
[2] for search queries. A Hibernate-based Page implementation [3] is
also available. This serves generic memory and DB access requirements
well (i.e. no caching on application level, only the results to be
rendered are retreived from the DB on each call).

[1] http://md4j.sourceforge.net/
[2]
http://md4j.cvs.sourceforge.net/md4j/md4j/src/java/com/geekologue/md4j/dao/Page.java?view=markup
[3]
http://md4j.cvs.sourceforge.net/md4j/md4j/src/java/com/geekologue/md4j/dao/hibernate/HbmQueryResultPage.java?view=markup

hth,

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.