Package com.google.code.lightssh.project.tree.entity

Examples of com.google.code.lightssh.project.tree.entity.Node


    return nodeDao.read(node);
  }
 
  public void save(Tree t) {
    if( t.isInsert() ){
      Node root = new Node("root","tree root node!");
      t.setRoot(root);
      dao.create(t);
    }else{
      Tree db_tree = dao.read(t);
      if( db_tree != null){
View Full Code Here


   
    if(node.getParent()==null ||
        StringUtil.clean(node.getParent().getIdentity())==null ){
      node.setParent( db_tree.getRoot() );
    }else{
      Node parent = nodeDao.read(node.getParent());
      if( parent == null )
        throw new ApplicationException("父结点(id="
            +node.getParent().getIdentity()+")已不存在!");
    }
   
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.project.tree.entity.Node

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.