Examples of TreeQuality


Examples of org.cipres.treebase.domain.tree.TreeQuality

    if (logger.isInfoEnabled()) {
      logger.info("\n\t\tRunning Test: " + testName);
    }

    String desc = "Unrated";
    TreeQuality result = getFixture().findQualityByDescription(desc);
   
    //verify
    assertTrue(result != null);
    assertTrue(result.getDescription().equals(desc));   

    if (logger.isInfoEnabled()) {
      logger.info(testName + " - end "); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of org.cipres.treebase.domain.tree.TreeQuality

  public TreeQuality findQualityByDescription(String pDescription) {
    if (TreebaseUtil.isEmpty(pDescription)) {
      return null;
    }
   
    TreeQuality returnVal = null;

    Criteria c = getSession().createCriteria(TreeQuality.class).add(
      org.hibernate.criterion.Expression.eq("description", pDescription));

    returnVal = (TreeQuality) c.uniqueResult();
View Full Code Here

Examples of org.cipres.treebase.domain.tree.TreeQuality

          String treeType = atree.getTypeDescription();
          atree.setTreeType(getPhyloTreeHome().findTypeByDescription(treeType));
          String treeKind = atree.getKindDescription();
          atree.setTreeKind(getPhyloTreeHome().findKindByDescription(treeKind));
          String treeQuality = atree.getQualityDescription();
          TreeQuality quality = getPhyloTreeHome().findQualityByDescription(treeQuality);
          atree.setTreeQuality(quality);
        }
        getPhyloTreeService().updateCollection(phyloTrees);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.