if (log.isDebugEnabled()) log.debug("FBResultSet next - FBStatementFetcher");
log.debug("FBResultSet next - FBStatementFetcher");
        public boolean next() throws SQLException {            isBeforeFirst = false;            isFirst = false;            isLast = false;            isAfterLast = false;                            if (log.isDebugEnabled())                log.debug("FBResultSet next - FBStatementFetcher");                                if (isEmpty)                return false;            else if (nextRow == null || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)){                isAfterLast = true;                rowNum=0;                return false;            }            else {                try {                    row = nextRow;                    nextRow = c.fetch(stmt);                    rowNum++;                    copyToSQLVAR(row);                                        if(rowNum==1)                        isFirst=true;                                        if((nextRow==null) || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows))                        isLast = true;                                            return true;                }                catch (GDSException ge) {                    throw new SQLException("fetch problem: " + ge.toString());                }            }        }