Package org.cipres.treebase.domain.tree

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


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

    String desc = TreeKind.KIND_AREA;
    TreeKind result = getFixture().findKindByDescription(desc);
   
    //verify
    assertTrue(result != null);
    assertTrue(result.getDescription().equals(desc));   

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


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

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

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

TOP

Related Classes of org.cipres.treebase.domain.tree.TreeKind

Copyright © 2018 www.massapicom. 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.