/** * 使用另外一个 LEPCalModeSchema 对象给 Schema 赋值 * * @param: aLEPCalModeSchema LEPCalModeSchema */ public void setSchema(LEPCalModeSchema aLEPCalModeSchema) { this.calCode = aLEPCalModeSchema.getCalCode(); this.riskCode = aLEPCalModeSchema.getRiskCode(); this.type = aLEPCalModeSchema.getType(); this.calSQL = aLEPCalModeSchema.getCalSQL(); this.remark = aLEPCalModeSchema.getRemark(); }
public boolean equals(Object otherObject) { if (otherObject == null) return false; if (this == otherObject) return true; if (this.getClass() != otherObject.getClass()) return false; LEPCalModeSchema other = (LEPCalModeSchema) otherObject; if (calCode == null && other.getCalCode() != null) return false; if (calCode != null && !calCode.equals(other.getCalCode())) return false; if (riskCode == null && other.getRiskCode() != null) return false; if (riskCode != null && !riskCode.equals(other.getRiskCode())) return false; if (type == null && other.getType() != null) return false; if (type != null && !type.equals(other.getType())) return false; if (calSQL == null && other.getCalSQL() != null) return false; if (calSQL != null && !calSQL.equals(other.getCalSQL())) return false; if (remark == null && other.getRemark() != null) return false; if (remark != null && !remark.equals(other.getRemark())) return false; return true; }