public void run(){
  log.info("");
  if (m_rs == null)   return;
  try {
    while (m_rs.next()) {
      if (Thread.interrupted()) {
        log.fine("Interrupted");
        close();
        return;
      }
      int recordId=0;
      Object[] rowData=null;
      if (m_virtual)       recordId=m_rs.getInt(getKeyColumnName());
 else       rowData=readData(m_rs);
      MSort sort=m_virtual ? new MSort(recordId,null) : new MSort(m_buffer.size(),null);
      if (!m_virtual) {
        m_buffer.add(rowData);
      }
      m_sort.add(sort);
      if (m_sort.size() % 1000 == 0) {
        try {
          Thread.yield();
          Thread.sleep(10);
        }
 catch (        InterruptedException ie) {
          log.fine("Interrupted while sleeping");
          close();
          return;
        }
        DataStatusEvent evt=createDSE();
        evt.setLoading(m_sort.size());
        fireDataStatusChanged(evt);
      }
    }
  }
 catch (  SQLException e) {
    log.log(Level.SEVERE,"run",e);
  }
 finally {
    close();
  }
  fireDataStatusIEvent("","");
}

public void run ( ) { log . info ( "" ) ; if ( m_rs == null ) return ; try { while ( m_rs . next ( ) ) { if ( Thread . interrupted ( ) ) { log . fine ( "Interrupted" ) ; close ( ) ; return ; } int recordId = 0 ; Object [ ] rowData = null ; if ( m_virtual ) recordId = m_rs . getInt ( getKeyColumnName ( ) ) ; else rowData = readData ( m_rs ) ; MSort sort = m_virtual ? new MSort ( recordId , null ) : new MSort ( m_buffer . size ( ) , null ) ; if ( ! m_virtual ) { m_buffer . add ( rowData ) ; } m_sort . add ( sort ) ; if ( m_sort . size ( ) % 1000 == 0 ) { try { Thread . yield ( ) ; Thread . sleep ( 10 ) ; } catch ( InterruptedException ie ) { log . fine ( "Interrupted while sleeping" ) ; close ( ) ; return ; } DataStatusEvent evt = createDSE ( ) ; evt . setLoading ( m_sort . size ( ) ) ; fireDataStatusChanged ( evt ) ; } } } catch ( SQLException e ) { log . log ( Level . SEVERE , "run" , e ) ; } finally { close ( ) ; } fireDataStatusIEvent ( "" , "" ) ; }
fill buffer to include row
