8.5.32 getFetchSize()
- Organization of this subsection
(1) Function
This method acquires this ResultSet object's fetch size.
(2) Format
public synchronized int getFetchSize() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns the current fetch size of this ResultSet object. The method returns the value set by the setFetchSize method. If no value has been set by the setFetchSize method, the method returns 0.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
This ResultSet object is closed.
This includes the case where the ResultSet object was closed because the Statement object that created this ResultSet object was closed.
-
The Connection used to create the Statement object that created this ResultSet object has been closed.
-
The ResultSet object has become invalid due to transaction settlement.