コード例 #1
0
  public ViewPerformanceAppraisalLevels toEscapedModel() {
    if (isEscapedModel()) {
      return (ViewPerformanceAppraisalLevels) this;
    } else {
      ViewPerformanceAppraisalLevels model = new ViewPerformanceAppraisalLevelsImpl();

      model.setNew(isNew());
      model.setEscapedModel(true);

      model.setId(HtmlUtil.escape(getId()));
      model.setLevelId(getLevelId());
      model.setNumberOrder(getNumberOrder());
      model.setCompetencyId(getCompetencyId());
      model.setRootId(getRootId());
      model.setLevelName(HtmlUtil.escape(getLevelName()));
      model.setPaId(getPaId());
      model.setUserId(getUserId());
      model.setPeriodId(getPeriodId());
      model.setTotalLevelPoint(getTotalLevelPoint());
      model.setIsPassed(getIsPassed());

      model =
          (ViewPerformanceAppraisalLevels)
              Proxy.newProxyInstance(
                  ViewPerformanceAppraisalLevels.class.getClassLoader(),
                  new Class[] {ViewPerformanceAppraisalLevels.class},
                  new ReadOnlyBeanHandler(model));

      return model;
    }
  }
コード例 #2
0
  public static ViewPerformanceAppraisalLevels toModel(
      ViewPerformanceAppraisalLevelsSoap soapModel) {
    ViewPerformanceAppraisalLevels model = new ViewPerformanceAppraisalLevelsImpl();

    model.setId(soapModel.getId());
    model.setLevelId(soapModel.getLevelId());
    model.setNumberOrder(soapModel.getNumberOrder());
    model.setCompetencyId(soapModel.getCompetencyId());
    model.setRootId(soapModel.getRootId());
    model.setLevelName(soapModel.getLevelName());
    model.setPaId(soapModel.getPaId());
    model.setUserId(soapModel.getUserId());
    model.setPeriodId(soapModel.getPeriodId());
    model.setTotalLevelPoint(soapModel.getTotalLevelPoint());
    model.setIsPassed(soapModel.getIsPassed());

    return model;
  }