Re: Easy get method of record number
Kazuaki Miyauchi <[email protected]> Thu, 25 Sep 2014 17:51:24 +0900
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <CAFLYOCEVhBbk6auMBMF8DOXYoBWZh-jcbsTTx0+Cfq+1-5g3OQ@mail.gmail.com> |
2014-09-24 22:46 GMT+09:00 Stuart Thiel <[email protected]>: > 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.