public Q setMaxRows ( final int maxRows ) { checkNotClosed ( ) ; this . maxRows = maxRows ; if ( statement != null ) { try { statement . setMaxRows ( maxRows ) ; } catch ( SQLException sex ) { throw new DbSqlException ( this , "Unable to set max rows: " + maxRows , sex ) ; } } return _this ( ) ; }
Sets the limit for the maximum number of rows that any ResultSet object can contain to the given number . If the limit is exceeded the excess rows are silently dropped . Zero means there is no limit .