// ============================================================
 // <T>加载行记录。</T>
 //
 // @param row 行记录
 // ============================================================
 @Override
 public void load(FRow row) {
   super.load(row);
   for (IStringPair pair : row) {
     // 获得名称
     String name = pair.name();
     if (RString.isEmpty(name)) {
       throw new FFatalError("Row format is invalid. (row={1})", row.dump());
     }
     // 获得内容
     String value = pair.value();
     // 设置内容
     switch (name) {
       case "ouid":
         __ouid = RLong.parse(value);
         _ouid = __ouid;
         break;
       case "ovld":
         __ovld = RBoolean.parse(value);
         _ovld = __ovld;
         break;
       case "guid":
         __guid = value;
         _guid = __guid;
         break;
       case "member_id":
         __memberId = RLong.parse(value);
         _memberId = __memberId;
         break;
       case "product_code":
         __productCode = value;
         _productCode = __productCode;
         break;
       case "time_section":
         __timeSection = value;
         _timeSection = __timeSection;
         break;
       case "pv":
         __pv = RInteger.parse(value);
         _pv = __pv;
         break;
       case "create_user_id":
         __createUserId = RLong.parse(value);
         _createUserId = __createUserId;
         break;
       case "create_date":
         __createDate.parse(value);
         _createDate.assign(__createDate);
         break;
       case "update_user_id":
         __updateUserId = RLong.parse(value);
         _updateUserId = __updateUserId;
         break;
       case "update_date":
         __updateDate.parse(value);
         _updateDate.assign(__updateDate);
         break;
     }
   }
 }
 // ============================================================
 // <T>加载行记录。</T>
 //
 // @param row 行记录
 // ============================================================
 @Override
 public void load(FRow row) {
   super.load(row);
   for (IStringPair pair : row) {
     // 获得名称
     String name = pair.name();
     if (RString.isEmpty(name)) {
       throw new FFatalError("Row format is invalid. (row={1})", row.dump());
     }
     // 获得内容
     String value = pair.value();
     // 设置内容
     switch (name) {
       case "ouid":
         __ouid = RLong.parse(value);
         _ouid = __ouid;
         break;
       case "ovld":
         __ovld = RBoolean.parse(value);
         _ovld = __ovld;
         break;
       case "guid":
         __guid = value;
         _guid = __guid;
         break;
       case "link_parent_id":
         __linkParentId = RLong.parse(value);
         _linkParentId = __linkParentId;
         break;
       case "link_id":
         __linkId = RLong.parse(value);
         _linkId = __linkId;
         break;
       case "code":
         __code = value;
         _code = __code;
         break;
       case "name":
         __name = value;
         _name = __name;
         break;
       case "label":
         __label = value;
         _label = __label;
         break;
       case "department_id":
         __departmentId = RInteger.parse(value);
         _departmentId = __departmentId;
         break;
       case "department_label":
         __departmentLabel = value;
         _departmentLabel = __departmentLabel;
         break;
       case "region_id":
         __regionId = RInteger.parse(value);
         _regionId = __regionId;
         break;
       case "region_label":
         __regionLabel = value;
         _regionLabel = __regionLabel;
         break;
       case "level":
         __level = RInteger.parse(value);
         _level = __level;
         break;
       case "leader_id":
         __leaderId = RLong.parse(value);
         _leaderId = __leaderId;
         break;
       case "leader_label":
         __leaderLabel = value;
         _leaderLabel = __leaderLabel;
         break;
       case "leader_phone":
         __leaderPhone = value;
         _leaderPhone = __leaderPhone;
         break;
       case "province_id":
         __provinceId = RInteger.parse(value);
         _provinceId = __provinceId;
         break;
       case "province_label":
         __provinceLabel = value;
         _provinceLabel = __provinceLabel;
         break;
       case "city_id":
         __cityId = RInteger.parse(value);
         _cityId = __cityId;
         break;
       case "city_label":
         __cityLabel = value;
         _cityLabel = __cityLabel;
         break;
       case "detail_address":
         __detailAddress = value;
         _detailAddress = __detailAddress;
         break;
       case "location_longitude":
         __locationLongitude = RDouble.parse(value);
         _locationLongitude = __locationLongitude;
         break;
       case "location_latitude":
         __locationLatitude = RDouble.parse(value);
         _locationLatitude = __locationLatitude;
         break;
       case "department_phone":
         __departmentPhone = value;
         _departmentPhone = __departmentPhone;
         break;
       case "build_date":
         __buildDate.parse(value);
         _buildDate.assign(__buildDate);
         break;
       case "note":
         __note = value;
         _note = __note;
         break;
       case "create_user_id":
         __createUserId = RLong.parse(value);
         _createUserId = __createUserId;
         break;
       case "create_date":
         __createDate.parse(value);
         _createDate.assign(__createDate);
         break;
       case "update_user_id":
         __updateUserId = RLong.parse(value);
         _updateUserId = __updateUserId;
         break;
       case "update_date":
         __updateDate.parse(value);
         _updateDate.assign(__updateDate);
         break;
     }
   }
 }
Пример #3
0
 // ============================================================
 // <T>加载行记录。</T>
 //
 // @param row 行记录
 // ============================================================
 @Override
 public void load(FRow row) {
   super.load(row);
   for (IStringPair pair : row) {
     // 获得名称
     String name = pair.name();
     if (RString.isEmpty(name)) {
       throw new FFatalError("Row format is invalid. (row={1})", row.dump());
     }
     // 获得内容
     String value = pair.value();
     // 设置内容
     switch (name) {
       case "ouid":
         __ouid = RLong.parse(value);
         _ouid = __ouid;
         break;
       case "ovld":
         __ovld = RBoolean.parse(value);
         _ovld = __ovld;
         break;
       case "guid":
         __guid = value;
         _guid = __guid;
         break;
       case "user_id":
         __userId = RLong.parse(value);
         _userId = __userId;
         break;
       case "project_id":
         __projectId = RLong.parse(value);
         _projectId = __projectId;
         break;
       case "resource_id":
         __resourceId = RLong.parse(value);
         _resourceId = __resourceId;
         break;
       case "code":
         __code = value;
         _code = __code;
         break;
       case "label":
         __label = value;
         _label = __label;
         break;
       case "content":
         __content = value;
         _content = __content;
         break;
       case "note":
         __note = value;
         _note = __note;
         break;
       case "create_user_id":
         __createUserId = RLong.parse(value);
         _createUserId = __createUserId;
         break;
       case "create_date":
         __createDate.parse(value);
         _createDate.assign(__createDate);
         break;
       case "update_user_id":
         __updateUserId = RLong.parse(value);
         _updateUserId = __updateUserId;
         break;
       case "update_date":
         __updateDate.parse(value);
         _updateDate.assign(__updateDate);
         break;
     }
   }
 }