Package org.uengine.persistence.dao

Examples of org.uengine.persistence.dao.GanttChartDAO


    return sql.toString();
  }
 
  public GanttChartModel makeGanttChart() throws Exception {
    String queryStr = makeGanttChartWebQuery();
    GanttChartDAO task = (GanttChartDAO)GenericDAO.createDAOImpl(DefaultConnectionFactory.create(), queryStr.toString(), GanttChartDAO.class);
    task.set("pd", pd);
   
    String[] endpoints = endpoint.split(";");
    for (int i=0; i<endpoints.length; i++) {     
      task.set("endpoint"+i, endpoints[i]);
    }
   
    String[] pds = pd.split(";");
    for (int i=0; i<pds.length; i++) {
      task.set("pd"+i, pds[i]);
    }
   
    //task.set("endpoint", endpoint);
    task.set("globalcom", globalCom);
    task.select();
   
    GanttChartModel ganttChartModel=new GanttChartModel();
    ganttChartModel.setEndpoint(getEndpoint());
    ganttChartModel.setFirstDate(getFirstDate());
    ganttChartModel.setFirstDayOfMonth(getFirstDayOfMonth());
View Full Code Here


  }
 
 
  public int getGanttChartCount() throws Exception {
    String queryStr = makeGanttChartCountWebQuery();
    GanttChartDAO task = (GanttChartDAO)GenericDAO.createDAOImpl(DefaultConnectionFactory.create(), queryStr.toString(), GanttChartDAO.class);
    task.set("pd", pd);
    task.set("globalcom", globalCom);
   
    String[] endpoints = endpoint.split(";");
    for (int i=0; i<endpoints.length; i++) {
      task.set("endpoint"+i, endpoints[i]);
    }
   
    String[] pds = pd.split(";");
    for (int i=0; i<pds.length; i++) {
      task.set("pd"+i, pds[i]);
    }
   
   
    task.select();
    int totalSize=0;
   
    while(task.next()){
      totalSize=task.getTotalCount();
    }
   
    return totalSize; 
   
  }
View Full Code Here

TOP

Related Classes of org.uengine.persistence.dao.GanttChartDAO

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.