if (rowNum == rows.size())
if (rowNum == rowsArray.length)
    public boolean next() throws SQLException {        isBeforeFirst = false;        isFirst = false;        isLast = false;        isAfterLast = false;                        if (log!=null) log.debug("FBResultSet next - FBCachedFetcher");        if (isEmpty)            return false;        else         if(rowNum == rows.size()) {            rs.row = null;            rowNum = 0;            isAfterLast = true;            return false;        }        else {            rowNum++;                            if (rowNum == 1)                isFirst = true;            if (rowNum == rows.size())                isLast = true;            rs.row = (byte[][])rows.get(rowNum-1);            // clean the rows element as it is used					             rows.set(rowNum-1,null);                            return true;        }    }