public abstract int getMaxRows () throws SQLException

Retrieves the maximum number of rows that a ResultSet object produced by this Statement object can contain. If this limit is exceeded, the excess rows are silently dropped.

Returns:  the current maximum number of rows for a ResultSet object produced by this Statement object; zero means there is no limit

Exceptions:
SQLException    if a database access error occurs or this method is called on a closed Statement

See also:
setMaxRows