コード例 #1
0
 public boolean isEquivalent(Object object) {
   BillingAccount account = (BillingAccount) object;
   return DataUtil.equals(getBillingAccountId(), account.getBillingAccountId())
       && DataUtil.isEquivalent(getBillingAccountType(), account.getBillingAccountType())
       && DataUtil.equals(getDescription(), account.getDescription())
       && DataUtil.equals(getCreatedDate(), account.getCreatedDate());
 }
コード例 #2
0
 /**
  * Check if the data model objects are equivalent to each other.
  *
  * @param left
  * @param right
  * @return
  */
 public static boolean isEquivalent(DataObject left, DataObject right) {
   // if they are both null then return true
   if (left == null && right == null) {
     return true;
   }
   // at this point if either of them is null return false
   if (left == null || right == null) {
     return false;
   }
   // compare the ids
   return DataUtil.equals(left.getId(), right.getId());
 }
コード例 #3
0
 public boolean isEquivalent(Object object) {
   SalesLeadContactMech contactMech = (SalesLeadContactMech) object;
   return DataUtil.equals(getSalesLeadContactMechId(), contactMech.getSalesLeadContactMechId())
       && DataUtil.isEquivalent(getSalesLead(), contactMech.getSalesLead())
       && DataUtil.isEquivalent(getContactMech(), contactMech.getContactMech())
       && DataUtil.isEquivalent(getContactMechPurpose(), contactMech.getContactMechPurpose())
       && DataUtil.equals(getFromDate(), contactMech.getFromDate())
       && DataUtil.equals(getThruDate(), contactMech.getThruDate());
 }
コード例 #4
0
 public String toString() {
   return "SalesLeadContactMech("
       + "salesLeadContactMechId="
       + getSalesLeadContactMechId()
       + ",salesLeadId="
       + DataUtil.getId(getSalesLead())
       + ",contactMech="
       + getContactMech()
       + ",contactMechPurpose="
       + getContactMechPurpose()
       + ",fromDate="
       + getFromDate()
       + ",thruDate="
       + getThruDate()
       + ")";
 }