camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] git commit: CAMEL-7021: Allow clearing of field 'Name' for upserts in Salesforce component. Thanks to Dhiraj for the patch.
Date Thu, 28 Nov 2013 08:37:28 GMT
CAMEL-7021: Allow clearing of field 'Name' for upserts in Salesforce component. Thanks to Dhiraj
for the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c2e80176
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c2e80176
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c2e80176

Branch: refs/heads/camel-2.12.x
Commit: c2e801761b5787e5c3bac724065bd68559bc7cb5
Parents: 925b199
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Nov 28 09:39:10 2013 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Nov 28 09:39:26 2013 +0100

----------------------------------------------------------------------
 .../component/salesforce/api/dto/AbstractSObjectBase.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c2e80176/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java
index 23cad48..fa20827 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/api/dto/AbstractSObjectBase.java
@@ -37,15 +37,15 @@ public class AbstractSObjectBase extends AbstractDTOBase {
     private String LastActivityDate;
 
     /**
-     * Utility method to clear all {@link AbstractSObjectBase} fields.
-     * <p>Used when reusing a DTO for a new record.</p>
+     * Utility method to clear all system {@link AbstractSObjectBase} fields.
+     * <p>Useful when reusing a DTO for a new record, or for update/upsert.</p>
+     * <p>This method does not clear {@code Name} to allow updating it, so it must
be explicitly set to {@code null} if needed.</p>
      */
     public final void clearBaseFields() {
         attributes = null;
         Id = null;
         OwnerId = null;
         IsDeleted = null;
-        Name = null;
         CreatedDate = null;
         CreatedById = null;
         LastModifiedDate = null;


Mime
View raw message