Package com.hygj.bean

Examples of com.hygj.bean.JobBean


  public void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    String name=request.getParameter("name");
    String min=request.getParameter("min");
    String max=request.getParameter("max");
    JobBean jobbean= new JobBean(name,Integer.parseInt(min),Integer.parseInt(max));
    boolean flag=new JobsService().insertJob(jobbean);
    if(flag){
      response.sendRedirect("index.jsp");
    }
    else{
View Full Code Here


    try {
      call=conn.prepareCall("{call proc_chaxun}");
      rs=call.executeQuery();
      jobs=new ArrayList();
      while(rs.next()){
        JobBean jobBean = new JobBean(rs.getInt(1),rs.getString(2),rs.getInt(3),rs.getInt(4));
        jobs.add(jobBean);
      }
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

    try {
      call=conn.prepareCall("{call proc_chaxunById(?)}");
      call.setInt(1,jobId);
      rs=call.executeQuery();
      if(rs.next()){
        job=new JobBean(rs.getInt(1),rs.getString(2),rs.getInt(3),rs.getInt(4));
      }
     
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.hygj.bean.JobBean

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.