// ============================================================
 // <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 map 对照表
 // ============================================================
 @Override
 public void saveMap(Map<String, String> map) {
   super.saveMap(map);
   map.put("ouid", RLong.toString(_ouid));
   map.put("ovld", RBoolean.toString(_ovld));
   map.put("guid", _guid);
   map.put("linkParentId", RLong.toString(_linkParentId));
   map.put("linkId", RLong.toString(_linkId));
   map.put("code", _code);
   map.put("name", _name);
   map.put("label", _label);
   map.put("departmentId", RInteger.toString(_departmentId));
   map.put("departmentLabel", _departmentLabel);
   map.put("regionId", RInteger.toString(_regionId));
   map.put("regionLabel", _regionLabel);
   map.put("level", RInteger.toString(_level));
   map.put("leaderId", RLong.toString(_leaderId));
   map.put("leaderLabel", _leaderLabel);
   map.put("leaderPhone", _leaderPhone);
   map.put("provinceId", RInteger.toString(_provinceId));
   map.put("provinceLabel", _provinceLabel);
   map.put("cityId", RInteger.toString(_cityId));
   map.put("cityLabel", _cityLabel);
   map.put("detailAddress", _detailAddress);
   map.put("locationLongitude", RDouble.toString(_locationLongitude));
   map.put("locationLatitude", RDouble.toString(_locationLatitude));
   map.put("departmentPhone", _departmentPhone);
   map.put("buildDate", _buildDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("note", _note);
   map.put("createUserId", RLong.toString(_createUserId));
   map.put("createDate", _createDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("updateUserId", RLong.toString(_updateUserId));
   map.put("updateDate", _updateDate.format("YYYY-MM-DD HH24:MI:SS"));
 }
 // ============================================================
 // <T>反序列化数据到内容。</T>
 //
 // @param input 输入流
 // ============================================================
 @Override
 public void unserialize(IDataInput input) {
   super.unserialize(input);
   _ouid = input.readInt64();
   _ovld = input.readBoolean();
   _guid = input.readString();
   _linkParentId = input.readInt64();
   _linkId = input.readInt64();
   _code = input.readString();
   _name = input.readString();
   _label = input.readString();
   _departmentId = input.readInt32();
   _departmentLabel = input.readString();
   _regionId = input.readInt32();
   _regionLabel = input.readString();
   _level = input.readInt32();
   _leaderId = input.readInt64();
   _leaderLabel = input.readString();
   _leaderPhone = input.readString();
   _provinceId = input.readInt32();
   _provinceLabel = input.readString();
   _cityId = input.readInt32();
   _cityLabel = input.readString();
   _detailAddress = input.readString();
   _departmentPhone = input.readString();
   _buildDate.set(input.readInt64());
   _note = input.readString();
   _createUserId = input.readInt64();
   _createDate.set(input.readInt64());
   _updateUserId = input.readInt64();
   _updateDate.set(input.readInt64());
 }
 // ============================================================
 // <T>序列化内容到数据。</T>
 //
 // @param output 输出流
 // ============================================================
 @Override
 public void serialize(IDataOutput output) {
   super.serialize(output);
   output.writeInt64(_ouid);
   output.writeBoolean(_ovld);
   output.writeString(_guid);
   output.writeInt64(_linkParentId);
   output.writeInt64(_linkId);
   output.writeString(_code);
   output.writeString(_name);
   output.writeString(_label);
   output.writeInt32(_departmentId);
   output.writeString(_departmentLabel);
   output.writeInt32(_regionId);
   output.writeString(_regionLabel);
   output.writeInt32(_level);
   output.writeInt64(_leaderId);
   output.writeString(_leaderLabel);
   output.writeString(_leaderPhone);
   output.writeInt32(_provinceId);
   output.writeString(_provinceLabel);
   output.writeInt32(_cityId);
   output.writeString(_cityLabel);
   output.writeString(_detailAddress);
   output.writeString(_departmentPhone);
   output.writeInt64(_buildDate.get());
   output.writeString(_note);
   output.writeInt64(_createUserId);
   output.writeInt64(_createDate.get());
   output.writeInt64(_updateUserId);
   output.writeInt64(_updateDate.get());
 }
 // ============================================================
 // <T>根据名称获得内容。</T>
 //
 // @param name 名称
 // @return 内容
 // ============================================================
 @Override
 public String get(String name) {
   switch (name) {
     case "ouid":
       return Long.toString(_ouid);
     case "ovld":
       return RBoolean.toString(_ovld);
     case "guid":
       return _guid;
     case "member_id":
       return Long.toString(_memberId);
     case "product_code":
       return _productCode;
     case "time_section":
       return _timeSection;
     case "pv":
       return RInteger.toString(_pv);
     case "create_user_id":
       return Long.toString(_createUserId);
     case "create_date":
       return _createDate.toString();
     case "update_user_id":
       return Long.toString(_updateUserId);
     case "update_date":
       return _updateDate.toString();
   }
   return null;
 }
Пример #6
0
 // ============================================================
 // <T>根据名称获得内容。</T>
 //
 // @param name 名称
 // @return 内容
 // ============================================================
 @Override
 public String get(String name) {
   switch (name) {
     case "ouid":
       return Long.toString(_ouid);
     case "ovld":
       return RBoolean.toString(_ovld);
     case "guid":
       return _guid;
     case "user_id":
       return Long.toString(_userId);
     case "project_id":
       return Long.toString(_projectId);
     case "resource_id":
       return Long.toString(_resourceId);
     case "code":
       return _code;
     case "label":
       return _label;
     case "content":
       return _content;
     case "note":
       return _note;
     case "create_user_id":
       return Long.toString(_createUserId);
     case "create_date":
       return _createDate.toString();
     case "update_user_id":
       return Long.toString(_updateUserId);
     case "update_date":
       return _updateDate.toString();
   }
   return null;
 }
 // ============================================================
 // <T>反序列化数据到内容。</T>
 //
 // @param input 输入流
 // ============================================================
 @Override
 public void unserialize(IDataInput input) {
   super.unserialize(input);
   _ouid = input.readInt64();
   _ovld = input.readBoolean();
   _guid = input.readString();
   _memberId = input.readInt64();
   _productCode = input.readString();
   _timeSection = input.readString();
   _pv = input.readInt32();
   _createUserId = input.readInt64();
   _createDate.set(input.readInt64());
   _updateUserId = input.readInt64();
   _updateDate.set(input.readInt64());
 }
 // ============================================================
 // <T>序列化内容到数据。</T>
 //
 // @param output 输出流
 // ============================================================
 @Override
 public void serialize(IDataOutput output) {
   super.serialize(output);
   output.writeInt64(_ouid);
   output.writeBoolean(_ovld);
   output.writeString(_guid);
   output.writeInt64(_memberId);
   output.writeString(_productCode);
   output.writeString(_timeSection);
   output.writeInt32(_pv);
   output.writeInt64(_createUserId);
   output.writeInt64(_createDate.get());
   output.writeInt64(_updateUserId);
   output.writeInt64(_updateDate.get());
 }
 // ============================================================
 // <T>保存对照表。</T>
 //
 // @param map 对照表
 // ============================================================
 @Override
 public void saveMap(Map<String, String> map) {
   super.saveMap(map);
   map.put("ouid", RLong.toString(_ouid));
   map.put("ovld", RBoolean.toString(_ovld));
   map.put("guid", _guid);
   map.put("memberId", RLong.toString(_memberId));
   map.put("productCode", _productCode);
   map.put("timeSection", _timeSection);
   map.put("pv", RInteger.toString(_pv));
   map.put("createUserId", RLong.toString(_createUserId));
   map.put("createDate", _createDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("updateUserId", RLong.toString(_updateUserId));
   map.put("updateDate", _updateDate.format("YYYY-MM-DD HH24:MI:SS"));
 }
Пример #10
0
 // ============================================================
 // <T>根据名称设置内容。</T>
 //
 // @param name 名称
 // @param value 内容
 // ============================================================
 @Override
 public void set(String name, String value) {
   switch (name) {
     case "ouid":
       _ouid = RLong.parse(value);
       break;
     case "ovld":
       _ovld = RBoolean.parse(value);
       break;
     case "guid":
       _guid = value;
       break;
     case "user_id":
       _userId = RLong.parse(value);
       break;
     case "project_id":
       _projectId = RLong.parse(value);
       break;
     case "resource_id":
       _resourceId = RLong.parse(value);
       break;
     case "code":
       _code = value;
       break;
     case "label":
       _label = value;
       break;
     case "content":
       _content = value;
       break;
     case "note":
       _note = value;
       break;
     case "create_user_id":
       _createUserId = RLong.parse(value);
       break;
     case "create_date":
       _createDate.parse(value);
       break;
     case "update_user_id":
       _updateUserId = RLong.parse(value);
       break;
     case "update_date":
       _updateDate.parse(value);
       break;
   }
 }
Пример #11
0
 // ============================================================
 // <T>保存对照表。</T>
 //
 // @param map 对照表
 // ============================================================
 @Override
 public void saveMap(Map<String, String> map) {
   super.saveMap(map);
   map.put("ouid", RLong.toString(_ouid));
   map.put("ovld", RBoolean.toString(_ovld));
   map.put("guid", _guid);
   map.put("userId", RLong.toString(_userId));
   map.put("projectId", RLong.toString(_projectId));
   map.put("resourceId", RLong.toString(_resourceId));
   map.put("code", _code);
   map.put("label", _label);
   map.put("content", _content);
   map.put("note", _note);
   map.put("createUserId", RLong.toString(_createUserId));
   map.put("createDate", _createDate.format("YYYY-MM-DD HH24:MI:SS"));
   map.put("updateUserId", RLong.toString(_updateUserId));
   map.put("updateDate", _updateDate.format("YYYY-MM-DD HH24:MI:SS"));
 }
Пример #12
0
 // ============================================================
 // <T>反序列化数据到内容。</T>
 //
 // @param input 输入流
 // ============================================================
 @Override
 public void unserialize(IDataInput input) {
   super.unserialize(input);
   _ouid = input.readInt64();
   _ovld = input.readBoolean();
   _guid = input.readString();
   _userId = input.readInt64();
   _projectId = input.readInt64();
   _resourceId = input.readInt64();
   _code = input.readString();
   _label = input.readString();
   _content = input.readString();
   _note = input.readString();
   _createUserId = input.readInt64();
   _createDate.set(input.readInt64());
   _updateUserId = input.readInt64();
   _updateDate.set(input.readInt64());
 }
Пример #13
0
 // ============================================================
 // <T>序列化内容到数据。</T>
 //
 // @param output 输出流
 // ============================================================
 @Override
 public void serialize(IDataOutput output) {
   super.serialize(output);
   output.writeInt64(_ouid);
   output.writeBoolean(_ovld);
   output.writeString(_guid);
   output.writeInt64(_userId);
   output.writeInt64(_projectId);
   output.writeInt64(_resourceId);
   output.writeString(_code);
   output.writeString(_label);
   output.writeString(_content);
   output.writeString(_note);
   output.writeInt64(_createUserId);
   output.writeInt64(_createDate.get());
   output.writeInt64(_updateUserId);
   output.writeInt64(_updateDate.get());
 }
 // ============================================================
 // <T>根据名称设置内容。</T>
 //
 // @param name 名称
 // @param value 内容
 // ============================================================
 @Override
 public void set(String name, String value) {
   switch (name) {
     case "ouid":
       _ouid = RLong.parse(value);
       break;
     case "ovld":
       _ovld = RBoolean.parse(value);
       break;
     case "guid":
       _guid = value;
       break;
     case "member_id":
       _memberId = RLong.parse(value);
       break;
     case "product_code":
       _productCode = value;
       break;
     case "time_section":
       _timeSection = value;
       break;
     case "pv":
       _pv = RInteger.parse(value);
       break;
     case "create_user_id":
       _createUserId = RLong.parse(value);
       break;
     case "create_date":
       _createDate.parse(value);
       break;
     case "update_user_id":
       _updateUserId = RLong.parse(value);
       break;
     case "update_date":
       _updateDate.parse(value);
       break;
   }
 }
 // ============================================================
 // <T>判断更新时间的数据是否改变。</T>
 //
 // @return 数据内容
 // ============================================================
 public boolean isUpdateDateChanged() {
   return !__updateDate.equals(_updateDate);
 }
 // ============================================================
 // <T>判断创建日期的数据是否改变。</T>
 //
 // @return 数据内容
 // ============================================================
 public boolean isCreateDateChanged() {
   return !__createDate.equals(_createDate);
 }
 // ============================================================
 // <T>判断建立日期的数据是否改变。</T>
 //
 // @return 数据内容
 // ============================================================
 public boolean isBuildDateChanged() {
   return !__buildDate.equals(_buildDate);
 }
Пример #18
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;
     }
   }
 }
 // ============================================================
 // <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;
     }
   }
 }
 // ============================================================
 // <T>根据名称设置内容。</T>
 //
 // @param name 名称
 // @param value 内容
 // ============================================================
 @Override
 public void set(String name, String value) {
   switch (name) {
     case "ouid":
       _ouid = RLong.parse(value);
       break;
     case "ovld":
       _ovld = RBoolean.parse(value);
       break;
     case "guid":
       _guid = value;
       break;
     case "link_parent_id":
       _linkParentId = RLong.parse(value);
       break;
     case "link_id":
       _linkId = RLong.parse(value);
       break;
     case "code":
       _code = value;
       break;
     case "name":
       _name = value;
       break;
     case "label":
       _label = value;
       break;
     case "department_id":
       _departmentId = RInteger.parse(value);
       break;
     case "department_label":
       _departmentLabel = value;
       break;
     case "region_id":
       _regionId = RInteger.parse(value);
       break;
     case "region_label":
       _regionLabel = value;
       break;
     case "level":
       _level = RInteger.parse(value);
       break;
     case "leader_id":
       _leaderId = RLong.parse(value);
       break;
     case "leader_label":
       _leaderLabel = value;
       break;
     case "leader_phone":
       _leaderPhone = value;
       break;
     case "province_id":
       _provinceId = RInteger.parse(value);
       break;
     case "province_label":
       _provinceLabel = value;
       break;
     case "city_id":
       _cityId = RInteger.parse(value);
       break;
     case "city_label":
       _cityLabel = value;
       break;
     case "detail_address":
       _detailAddress = value;
       break;
     case "location_longitude":
       _locationLongitude = RDouble.parse(value);
       break;
     case "location_latitude":
       _locationLatitude = RDouble.parse(value);
       break;
     case "department_phone":
       _departmentPhone = value;
       break;
     case "build_date":
       _buildDate.parse(value);
       break;
     case "note":
       _note = value;
       break;
     case "create_user_id":
       _createUserId = RLong.parse(value);
       break;
     case "create_date":
       _createDate.parse(value);
       break;
     case "update_user_id":
       _updateUserId = RLong.parse(value);
       break;
     case "update_date":
       _updateDate.parse(value);
       break;
   }
 }
 // ============================================================
 // <T>根据名称获得内容。</T>
 //
 // @param name 名称
 // @return 内容
 // ============================================================
 @Override
 public String get(String name) {
   switch (name) {
     case "ouid":
       return Long.toString(_ouid);
     case "ovld":
       return RBoolean.toString(_ovld);
     case "guid":
       return _guid;
     case "link_parent_id":
       return Long.toString(_linkParentId);
     case "link_id":
       return Long.toString(_linkId);
     case "code":
       return _code;
     case "name":
       return _name;
     case "label":
       return _label;
     case "department_id":
       return RInteger.toString(_departmentId);
     case "department_label":
       return _departmentLabel;
     case "region_id":
       return RInteger.toString(_regionId);
     case "region_label":
       return _regionLabel;
     case "level":
       return RInteger.toString(_level);
     case "leader_id":
       return Long.toString(_leaderId);
     case "leader_label":
       return _leaderLabel;
     case "leader_phone":
       return _leaderPhone;
     case "province_id":
       return RInteger.toString(_provinceId);
     case "province_label":
       return _provinceLabel;
     case "city_id":
       return RInteger.toString(_cityId);
     case "city_label":
       return _cityLabel;
     case "detail_address":
       return _detailAddress;
     case "location_longitude":
       return RDouble.toString(_locationLongitude);
     case "location_latitude":
       return RDouble.toString(_locationLatitude);
     case "department_phone":
       return _departmentPhone;
     case "build_date":
       return _buildDate.toString();
     case "note":
       return _note;
     case "create_user_id":
       return Long.toString(_createUserId);
     case "create_date":
       return _createDate.toString();
     case "update_user_id":
       return Long.toString(_updateUserId);
     case "update_date":
       return _updateDate.toString();
   }
   return null;
 }
Пример #22
0
 // ============================================================
 // <T>根据名称设置时间内容。</T>
 //
 // @param name 名称
 // @param value 时间内容
 // ============================================================
 public void set(String name, TDateTime value) {
   String dateValue = value.toString();
   set(name, dateValue);
 }