if (!stmt.getAllRowsFetched() && (rowsArray == null || rowsArray.length == rowPosition)){
if (!stmt.getAllRowsFetched() && (rowsArray == null || size == rowPosition)){
    public void fetch() throws SQLException {        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.getAllRowsFetched() && (rowsArray == null || rowsArray.length == rowPosition)){            try {                c.fetch(stmt, fetchSize);                rowPosition = 0;					 rowsArray = stmt.getRows();					 size = stmt.size();            }            catch (GDSException ge) {                throw new FBSQLException(ge);            }        }        if (rowsArray!=null && size > rowPosition) {            nextRow = (byte[][]) rowsArray[rowPosition];            // help the garbage collector            rowsArray[rowPosition] = null;            rowPosition++;        }        else            nextRow = null;    }