コード例 #1
0
  public String getControlMerInfo() {
    ControlMerInfoService controlMerInfoService =
        SpringContextHolder.getBean("controlMerInfoService");

    List<Object> collection = new ArrayList<Object>();
    Map map = new HashMap();
    collection.addAll(controlMerInfoService.getListByMap(map));

    Set<String> unIncludes = new HashSet<String>();

    return BeanUtil.getCollection2XML(collection, "root", "ControlMerInfo", unIncludes);
  }
コード例 #2
0
  public String saveControlMerInfo(
      String controlMerName, String controlMerNameE, String simpleName, String description) {
    ControlMerInfoService controlMerInfoService =
        SpringContextHolder.getBean("controlMerInfoService");

    ControlMerInfo controlMerInfo = new ControlMerInfo();
    controlMerInfo.setControlMerName(controlMerName);
    controlMerInfo.setControlMerNameE(controlMerNameE);
    controlMerInfo.setSimpleName(simpleName);
    controlMerInfo.setDescription(description);

    controlMerInfoService.save(controlMerInfo);
    return null;
  }