tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Trivial Update of "Tapestry5HibernateGridDatasource2" by JulienHenry
Date Wed, 26 Mar 2008 12:51:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The following page has been changed by JulienHenry:
http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource2

------------------------------------------------------------------------------
  import org.hibernate.criterion.Projections;
  import org.hibernate.criterion.Restrictions;
  
- /** Grid data source that queries hiberante. It caches count and results, and is not suitable
for reuse.*/
+ /** Grid data source that queries hibernate. It caches count and results, and is not suitable
for reuse.*/
  public class  HibernateEntityDataSource<T> implements GridDataSource {
  
      private final Class<T> persistentClass;
@@ -112, +112 @@

          criteria.add(criterion);
      }
  
-     /** The index must be between startIndex and endIndex provided in {@link #prepare(int,
int, PropertyModel, boolean)} implemented from {@link GridDataSource#prepare(int, int, PropertyModel,
boolean)}*/
+     /** The index must be between startIndex and endIndex provided in {@link #prepare(int,
int, List<SortConstraint>)} implemented from {@link GridDataSource#prepare(int, int,
List<SortConstraint>)}*/
      public Object getRowValue(int index) {
          return data.get(index-startIndex);
      }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message