예제 #1
0
  /// new v-2
  public List<ProteinBean> searchProtein(String accession, int expId, List<ProteinBean> protList) {

    ProteinBean pb = db.searchProtein(accession, expId);
    if (pb != null && protList != null) {
      protList.add(pb);
    }
    if (protList != null) {
      protList = db.searchOtherProteins(accession, expId, protList);
    } else {
      protList = new ArrayList<ProteinBean>();
      protList.add(pb);
    }
    return protList;
  }