fetchSize = 1;
    public void isc_dsql_fetch(isc_stmt_handle stmt_handle,                              int da_version,                              XSQLDA xsqlda, int fetchSize) throws GDSException        {        isc_stmt_handle_impl stmt = (isc_stmt_handle_impl) stmt_handle;        isc_db_handle_impl db = stmt.getRsr_rdb();         synchronized(db)            {            if (stmt_handle == null) {                throw new GDSException(ISCConstants.isc_bad_req_handle);            }            if (xsqlda == null) {                throw new GDSException(ISCConstants.isc_dsql_sqlda_err);            }            if (fetchSize <= 0) {                throw new GDSException(ISCConstants.isc_dsql_sqlda_err);            }            // Apply fetchSize                        //Fetch next batch of rows            stmt.ensureCapacity(fetchSize);            for( int i = 0; i < fetchSize; i++ )                {                boolean isRowPresent = native_isc_dsql_fetch( stmt_handle, da_version, xsqlda, fetchSize );                if( isRowPresent )                    {                    readSQLData( xsqlda, stmt );                    }                else                    {                    stmt.setAllRowsFetched(true);                    return;                    }                }            }        }