@Override public void processRow(ResultSet resultSet) throws SQLException {
  String upi=resultSet.getString(1);
  String sequence=resultSet.getString(2);
  if (sequence == null || sequence.length() == 0) {
    sequence=resultSet.getString(3);
  }
  if (sequence == null) {
    throw new IllegalArgumentException("Ugh - found a UPI with no associated sequence!");
  }
  sequenceLoader.store(sequence,null,upi);
}

@ Override public void processRow ( ResultSet resultSet ) throws SQLException { String upi = resultSet . getString ( 1 ) ; String sequence = resultSet . getString ( 2 ) ; if ( sequence == null || sequence . length ( ) == 0 ) { sequence = resultSet . getString ( 3 ) ; } if ( sequence == null ) { throw new IllegalArgumentException ( "Ugh - found a UPI with no associated sequence!" ) ; } sequenceLoader . store ( sequence , null , upi ) ; }
processes one row returned from : select upi , seq_short , seq_long from uniparc . protein and upi > ? and rownum < = ? order by upi asc
