getDeletedList.put( dr.getId(), dr.getDeletedDate().getTime() );
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof DeletedRecord)) return false; DeletedRecord other = (DeletedRecord) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.deletedDate == null && other.getDeletedDate() == null) || (this.deletedDate != null && this.deletedDate.equals(other.getDeletedDate()))) && ((this.id == null && other.getId() == null) || (this.id != null && this.id.equals(other.getId()))); __equalsCalc = null; return _equals; }
public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getDeletedDate() != null) { _hashCode += getDeletedDate().hashCode(); } if (getId() != null) { _hashCode += getId().hashCode(); } __hashCodeCalc = false; return _hashCode; }
public DeletedResult getDeleted(String objectName, Calendar startCalendar, Calendar endCalendar) throws ResourceException { GetDeletedResult deleted; try { deleted = partnerConnection.getDeleted(objectName, startCalendar, endCalendar); } catch (InvalidSObjectFault e) { throw new ResourceException(e); } catch (UnexpectedErrorFault e) { throw new ResourceException(e); } catch (ConnectionException e) { throw new ResourceException(e); } DeletedResult result = new DeletedResult(); result.setLatestDateCovered(deleted.getLatestDateCovered()); result.setEarliestDateAvailable(deleted.getEarliestDateAvailable()); DeletedRecord[] records = deleted.getDeletedRecords(); List<DeletedObject> resultRecords = new ArrayList<DeletedObject>(); if(records != null) { for (DeletedRecord record : records) { DeletedObject object = new DeletedObject(); object.setID(record.getId()); object.setDeletedDate(record.getDeletedDate()); resultRecords.add(object); } } result.setResultRecords(resultRecords); return result; }