public int compareTo(ViewPerformanceAppraisalLevels viewPerformanceAppraisalLevels) { int value = 0; if (getNumberOrder() < viewPerformanceAppraisalLevels.getNumberOrder()) { value = -1; } else if (getNumberOrder() > viewPerformanceAppraisalLevels.getNumberOrder()) { value = 1; } else { value = 0; } if (value != 0) { return value; } return 0; }
public boolean equals(Object obj) { if (obj == null) { return false; } ViewPerformanceAppraisalLevels viewPerformanceAppraisalLevels = null; try { viewPerformanceAppraisalLevels = (ViewPerformanceAppraisalLevels) obj; } catch (ClassCastException cce) { return false; } String pk = viewPerformanceAppraisalLevels.getPrimaryKey(); if (getPrimaryKey().equals(pk)) { return true; } else { return false; } }
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; }
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; } }