Joe Hanink wrote:

> in a TYPE_SCROLL_SENSITIVE resultset, the record count could indeed change
> during its lifetime, so I can see how this might impose some limitations on
> its ability to know its size.  Yet, for a TYPE_FORWARD_ONLY, there must then
> be some other reason it is not built in.  Does anyone expect this capability
> to be available in JDBC 3?
I don't think so. It's completely off-specs. The resultset is cached.
It's size is <= FETCH_SIZE which means unless you move to the last row,
there is no way to know the number of record sin the ResultSet beyond
FETCH_SIZE.

Sven

--
======================================================================================
Sven van 't Veer                                              http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
======================================================================================

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to