Пример #1
0
 public AbstractBaseObject getFormData() throws ApplicationException {
   UserRole tmpUserRole = new UserRole();
   tmpUserRole.setID(TextUtility.parseIntegerObj(this.getID()));
   tmpUserRole.setRoleName(this.getRoleName());
   tmpUserRole.setRoleDesc(this.getRoleDesc());
   tmpUserRole.setRoleType(this.getRoleType());
   tmpUserRole.setRecordStatus(this.getRecordStatus());
   tmpUserRole.setUpdateCount(TextUtility.parseIntegerObj(this.getUpdateCount()));
   tmpUserRole.setCreatorID(TextUtility.parseIntegerObj(this.getCreatorID()));
   tmpUserRole.setCreateDate(parseTimestamp(this.getCreateDate()));
   tmpUserRole.setUpdaterID(TextUtility.parseIntegerObj(this.getUpdaterID()));
   tmpUserRole.setUpdateDate(parseTimestamp(this.getUpdateDate()));
   return tmpUserRole;
 }
Пример #2
0
 public void setFormData(AbstractBaseObject baseObj) throws ApplicationException {
   UserRole tmpUserRole = (UserRole) baseObj;
   this.setID(TextUtility.formatIntegerObj(tmpUserRole.getID()));
   this.setRoleName(tmpUserRole.getRoleName());
   this.setRoleDesc(tmpUserRole.getRoleDesc());
   this.setRoleType(tmpUserRole.getRoleType());
   this.setRecordStatus(tmpUserRole.getRecordStatus());
   this.setUpdateCount(TextUtility.formatIntegerObj(tmpUserRole.getUpdateCount()));
   this.setCreatorID(TextUtility.formatIntegerObj(tmpUserRole.getCreatorID()));
   this.setCreateDate(formatTimestamp(tmpUserRole.getCreateDate()));
   this.setUpdaterID(TextUtility.formatIntegerObj(tmpUserRole.getUpdaterID()));
   this.setUpdateDate(formatTimestamp(tmpUserRole.getUpdateDate()));
 }