Package com.vsked.bean

Examples of com.vsked.bean.TbDirectory


          Configurations.free(conn);
        }
        return tbDirectoryList;
    }
    public TbDirectory getTbDirectory(ResultSet rs) throws Exception{
        TbDirectory tbDirectory = new TbDirectory();
        tbDirectory.setDirectoryId(rs.getInt("directoryId"));
        tbDirectory.setDirectoryName(rs.getString("directoryName"));
        tbDirectory.setDirectoryLevel(rs.getInt("directoryLevel"));
        tbDirectory.setParentDirectoryId(rs.getInt("parentDirectoryId"));
        tbDirectory.setUserId(rs.getString("userId"));
        tbDirectory.setCreateTime(rs.getString("createTime"));
        tbDirectory.setDirectoryId(rs.getInt("directoryId"));
        tbDirectory.setDirectoryName(rs.getString("directoryName"));
        tbDirectory.setDirectoryLevel(rs.getInt("directoryLevel"));
        tbDirectory.setParentDirectoryId(rs.getInt("parentDirectoryId"));
        tbDirectory.setUserId(rs.getString("userId"));
        tbDirectory.setCreateTime(rs.getString("createTime"));
        return tbDirectory;
    }
View Full Code Here


    public int getDirectoryId(int inDirectoryId){
      if(new TbDirectoryDAO().isExistSon(inDirectoryId)){
        int tempId=-2;
        List<TbDirectory> tdList=new TbDirectoryDAO().getTbDirectoryByParentId(inDirectoryId);
        for(int i=0;i<tdList.size();i++){
          TbDirectory td=tdList.get(i);
          System.out.println(td.getDirectoryId()+":"+td.getDirectoryName()+":"+td.getDirectoryLevel()+":"+td.getParentDirectoryId());
          if(getDirectoryId(td.getDirectoryId())==-2 || new TbDirectoryDAO().isExistSon(td.getDirectoryId()))
            tempId=td.getDirectoryId();
          else{
            tempId=getDirectoryId(td.getDirectoryId());
          }
        }
        return tempId;
      }else{
        return -2;
View Full Code Here

    }
    public static void main(String[] args) {
      TbDirectoryDAO tdDAO=new TbDirectoryDAO();
      List<TbDirectory> tdList=tdDAO.getTbDirectoryAllTop();
      for(int i=0;i<tdList.size();i++){
        TbDirectory td=tdList.get(i);
        System.out.println(td.getDirectoryId()+":"+td.getDirectoryName()+":"+td.getDirectoryLevel()+":"+td.getParentDirectoryId());
        tdDAO.getDirectoryId(td.getDirectoryId());       
      }//end for i
  }
View Full Code Here

TOP

Related Classes of com.vsked.bean.TbDirectory

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.