if (!stmt.allRowsFetched && stmt.rows.size() == 0){
int maxRows = 0; if (fbStatement.maxRows != 0) maxRows = fbStatement.maxRows - rowNum; int fetchSize = fbStatement.fetchSize; if (fetchSize == 0) fetchSize = MAX_FETCH_ROWS; if (maxRows != 0 && fetchSize > maxRows) fetchSize = maxRows;  if (!stmt.allRowsFetched && (rowsArray == null || rowsArray.length == rowPosition)){
    public void fetch() throws SQLException {        if (!stmt.allRowsFetched && stmt.rows.size() == 0){            try {                c.fetch(stmt);				}            catch (GDSException ge) {                throw new FBSQLException(ge);            }        }        if (stmt.rows.size() > 0) {            nextRow = (byte[][]) stmt.rows.remove(0);        }        else            nextRow = null;    }