Class AbstractDescribedSObjectBase
- java.lang.Object
-
- org.apache.camel.component.salesforce.api.dto.AbstractDTOBase
-
- org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase
-
- org.apache.camel.component.salesforce.api.dto.AbstractDescribedSObjectBase
-
public abstract class AbstractDescribedSObjectBase extends AbstractSObjectBase
Subclass ofAbstractSObjectBase
that contains additional metadata about SObject. Thecamel-salesforce-maven-plugin
generates Data Transfer Objects (DTO) by subclassing this class and implementing thedescription()
method from the metadata received from Salesforce. Note that there are no guarantees about all fields in theSObjectDescription
being set. This is to prevent unnecessary memory usage, and to prevent running into Java method length limit.
-
-
Constructor Summary
Constructors Constructor Description AbstractDescribedSObjectBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static SObjectField
createField(String name, String label, String type, String soapType, int length, boolean unique, boolean nillable, boolean nameField, boolean externalId, boolean custom, boolean caseSensitive, boolean idLookup)
abstract SObjectDescription
description()
Additional metadata about this SObject.-
Methods inherited from class org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase
clearBaseFields, getAttributes, getCreatedById, getCreatedDate, getFieldsToNull, getId, getLastActivityDate, getLastModifiedById, getLastModifiedDate, getLastReferencedDate, getLastViewedDate, getName, getOwnerId, getSystemModstamp, isIsDeleted, setAttributes, setCreatedById, setCreatedDate, setFieldsToNull, setId, setIsDeleted, setLastActivityDate, setLastModifiedById, setLastModifiedDate, setLastReferencedDate, setLastViewedDate, setName, setOwnerId, setSystemModstamp
-
Methods inherited from class org.apache.camel.component.salesforce.api.dto.AbstractDTOBase
toString
-
-
-
-
Method Detail
-
description
public abstract SObjectDescription description()
Additional metadata about this SObject. There are no guarantees that all of the fields ofSObjectDescription
will be set.- Returns:
- metadata description of this SObject
-
createField
protected static SObjectField createField(String name, String label, String type, String soapType, int length, boolean unique, boolean nillable, boolean nameField, boolean externalId, boolean custom, boolean caseSensitive, boolean idLookup)
-
-