tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuaki Miyauchi <miyau...@gmail.com>
Subject Re: Easy get method of record number
Date Thu, 25 Sep 2014 08:51:24 GMT
2014-09-24 22:46 GMT+09:00 Stuart Thiel <stuart.thiel@gmail.com>:
> However, taglibs aside, I understand your concern. The main reason is
> that the ResultSet can start getting processed immediately under some
> conditions, thus it makes sense not to know the final number of
> records because the database might not have counted the final number
> of records.

 Thanks for your immediate reply, but,
 Using Apache Commons DbUtils, there is length function which show the
final number of records as following.

Object[] pi = (Object[])qr.query(
 for (int i=0; i<pi.length; i++){

 So, the database might return the number of records at first, I suppose.

 Regards.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
For additional commands, e-mail: taglibs-user-help@tomcat.apache.org


Mime
View raw message