/** * Schema克隆 * * @return Object * @throws CloneNotSupportedException */ public Object clone() throws CloneNotSupportedException { SearchRecordSchema cloned = (SearchRecordSchema) super.clone(); cloned.fDate = (FDate) fDate.clone(); cloned.mErrors = (CErrors) mErrors.clone(); return cloned; }
public SearchRecordSchema getSchema() { SearchRecordSchema aSearchRecordSchema = new SearchRecordSchema(); aSearchRecordSchema.setSchema(this); return aSearchRecordSchema; }
public boolean equals(Object otherObject) { if (otherObject == null) return false; if (this == otherObject) return true; if (this.getClass() != otherObject.getClass()) return false; SearchRecordSchema other = (SearchRecordSchema) otherObject; if (tradeNo == null && other.getTradeNo() != null) return false; if (tradeNo != null && !tradeNo.equals(other.getTradeNo())) return false; if (contNo == null && other.getContNo() != null) return false; if (contNo != null && !contNo.equals(other.getContNo())) return false; if (userCode == null && other.getUserCode() != null) return false; if (userCode != null && !userCode.equals(other.getUserCode())) return false; if (name == null && other.getName() != null) return false; if (name != null && !name.equals(other.getName())) return false; if (gender == null && other.getGender() != null) return false; if (gender != null && !gender.equals(other.getGender())) return false; if (birthday == null && other.getBirthday() != null) return false; if (birthday != null && !fDate.getString(birthday).equals(other.getBirthday())) return false; if (province == null && other.getProvince() != null) return false; if (province != null && !province.equals(other.getProvince())) return false; if (city == null && other.getCity() != null) return false; if (city != null && !city.equals(other.getCity())) return false; if (mobile == null && other.getMobile() != null) return false; if (mobile != null && !mobile.equals(other.getMobile())) return false; if (userIDType == null && other.getUserIDType() != null) return false; if (userIDType != null && !userIDType.equals(other.getUserIDType())) return false; if (userIDNo == null && other.getUserIDNo() != null) return false; if (userIDNo != null && !userIDNo.equals(other.getUserIDNo())) return false; if (riskname == null && other.getRiskname() != null) return false; if (riskname != null && !riskname.equals(other.getRiskname())) return false; if (riskcode == null && other.getRiskcode() != null) return false; if (riskcode != null && !riskcode.equals(other.getRiskcode())) return false; if (userState == null && other.getUserState() != null) return false; if (userState != null && !userState.equals(other.getUserState())) return false; if (userSource == null && other.getUserSource() != null) return false; if (userSource != null && !userSource.equals(other.getUserSource())) return false; if (field1 == null && other.getField1() != null) return false; if (field1 != null && !field1.equals(other.getField1())) return false; if (field2 == null && other.getField2() != null) return false; if (field2 != null && !field2.equals(other.getField2())) return false; if (field3 == null && other.getField3() != null) return false; if (field3 != null && !field3.equals(other.getField3())) return false; if (field4 == null && other.getField4() != null) return false; if (field4 != null && !field4.equals(other.getField4())) return false; if (field5 == null && other.getField5() != null) return false; if (field5 != null && !field5.equals(other.getField5())) return false; if (field6 == null && other.getField6() != null) return false; if (field6 != null && !field6.equals(other.getField6())) return false; if (searchDate == null && other.getSearchDate() != null) return false; if (searchDate != null && !fDate.getString(searchDate).equals(other.getSearchDate())) return false; if (searchTime == null && other.getSearchTime() != null) return false; if (searchTime != null && !searchTime.equals(other.getSearchTime())) return false; if (makedate == null && other.getMakedate() != null) return false; if (makedate != null && !fDate.getString(makedate).equals(other.getMakedate())) return false; if (maketime == null && other.getMaketime() != null) return false; if (maketime != null && !maketime.equals(other.getMaketime())) return false; return true; }
/** * 使用另外一个 SearchRecordSchema 对象给 Schema 赋值 * * @param: aSearchRecordSchema SearchRecordSchema */ public void setSchema(SearchRecordSchema aSearchRecordSchema) { this.tradeNo = aSearchRecordSchema.getTradeNo(); this.contNo = aSearchRecordSchema.getContNo(); this.userCode = aSearchRecordSchema.getUserCode(); this.name = aSearchRecordSchema.getName(); this.gender = aSearchRecordSchema.getGender(); this.birthday = fDate.getDate(aSearchRecordSchema.getBirthday()); this.province = aSearchRecordSchema.getProvince(); this.city = aSearchRecordSchema.getCity(); this.mobile = aSearchRecordSchema.getMobile(); this.userIDType = aSearchRecordSchema.getUserIDType(); this.userIDNo = aSearchRecordSchema.getUserIDNo(); this.riskname = aSearchRecordSchema.getRiskname(); this.riskcode = aSearchRecordSchema.getRiskcode(); this.userState = aSearchRecordSchema.getUserState(); this.userSource = aSearchRecordSchema.getUserSource(); this.field1 = aSearchRecordSchema.getField1(); this.field2 = aSearchRecordSchema.getField2(); this.field3 = aSearchRecordSchema.getField3(); this.field4 = aSearchRecordSchema.getField4(); this.field5 = aSearchRecordSchema.getField5(); this.field6 = aSearchRecordSchema.getField6(); this.searchDate = fDate.getDate(aSearchRecordSchema.getSearchDate()); this.searchTime = aSearchRecordSchema.getSearchTime(); this.makedate = fDate.getDate(aSearchRecordSchema.getMakedate()); this.maketime = aSearchRecordSchema.getMaketime(); }