Package com.narirelays.ems.persistence.orm

Examples of com.narirelays.ems.persistence.orm.TaskParamV


      } else {
        TaskInfo taskInfo = taskInfoDAO.findById(jobid);
        if (taskInfo == null) {
          result.setFailed(TASK_INFO_NOTEXIST, jobid);
        } else {
          TaskParamV taskParamV = new TaskParamV();
          try {
            BeanUtils.populate(taskParamV, properties);
            taskParamV.setId(new TaskParamVId(jobid, param_id));
            taskParamV.setTaskInfo(taskInfo);
            taskParamVDAO.merge(taskParamV);
          } catch (IllegalAccessException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
          result.setSucceed();
          result.setData(taskParamV.getId());
        }
      }
    }
    // }
    return result;
View Full Code Here


      result.setFailed(TASK_PARAM_REQUIRE_ID);
    } else {
      if (jobid == null) {
        result.setFailed(TASK_INFO_REQUIRE_ID);
      } else {
        TaskParamV taskParamV = taskParamVDAO
            .findById(new TaskParamVId(jobid, param_name));
        if (taskParamV == null) {
          result.setFailed(TASK_PARAM_V_NOTEXIST, jobid, param_name);
        } else {
          taskParamVDAO.delete(taskParamV);
View Full Code Here

      } else {
        TaskInfo taskInfo = taskInfoDAO.findById(jobid);
        if(taskInfo==null){
          result.setFailed(TASK_INFO_NOTEXIST,jobid);
        }else{
          TaskParamV taskParamV = taskParamVDAO
              .findById(new TaskParamVId(jobid, param_name));
          try {
            if (taskParamV == null) {
              taskParamV = new TaskParamV();
              BeanUtils.populate(taskParamV, properties);
              taskParamV.setId(new TaskParamVId(jobid, param_name));
              taskParamV.setTaskInfo(taskInfo);
              taskParamVDAO.merge(taskParamV);
            } else {
              BeanUtils.populate(taskParamV, properties);
              taskParamVDAO.merge(taskParamV);
            }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.persistence.orm.TaskParamV

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.