public OrthologyPair(ResultSet rs, OrthologyLoader loader) throws NotFoundException { try { dbid = rs.getInt(1); int mappingID = rs.getInt(2); mapping = loader.loadMapping(mappingID); name1 = rs.getString(3); int gid1 = rs.getInt(4); name2 = rs.getString(5); int gid2 = rs.getInt(6); genome1 = Organism.findGenome(gid1); genome2 = Organism.findGenome(gid2); } catch (SQLException se) { throw new DatabaseException("Error: " + se.getMessage(), se); } }