Renat Zubairov wrote:
>
> Hello
>
> You may have a look on the implementation of the GridDataSource for
> Hibernate
>
> http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java?view=markup
>
> BR
> Renat
>
>
Not very helpful. I don't know Hibernate but as I understand there are two
methods used in this impl. of GridDataSource:
Integer result = (Integer) criteria.uniqueResult(); - which returns
number of rows
and
preparedResults = crit.list(); - which do the actual query.
As I mentioned in my first post, search engine which I use doesn't have
suchmethods. The only one I have is Query({query_params}) which returns
given portion of results and the total number of results.
I can perform Query in getAvailableRows(), but then I would have to send ALL
results through XML-RPC and limit them in prepare method - I don't think
it's a good idea...
regards,
Shymon
--
View this message in context:
http://www.nabble.com/Grid-component-and-available-rows-number-tp19964529p19968644.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]