Interface CompositeApiClient
- All Known Implementing Classes:
DefaultCompositeApiClient
public interface CompositeApiClient
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
submitComposite
(SObjectComposite composite, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectCompositeResponse> callback) void
submitCompositeBatch
(SObjectBatch batch, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectBatchResponse> callback) void
submitCompositeRaw
(InputStream raw, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<InputStream> callback, String method) void
submitCompositeTree
(SObjectTree tree, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectTreeResponse> callback) Submits given nodes (records) of SObjects and their children as a tree in a single request.
-
Method Details
-
submitCompositeRaw
void submitCompositeRaw(InputStream raw, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<InputStream> callback, String method) throws SalesforceException- Throws:
SalesforceException
-
submitComposite
void submitComposite(SObjectComposite composite, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectCompositeResponse> callback) throws SalesforceException- Throws:
SalesforceException
-
submitCompositeBatch
void submitCompositeBatch(SObjectBatch batch, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectBatchResponse> callback) throws SalesforceException- Throws:
SalesforceException
-
submitCompositeTree
void submitCompositeTree(SObjectTree tree, Map<String, List<String>> headers, CompositeApiClient.ResponseCallback<SObjectTreeResponse> callback) throws SalesforceExceptionSubmits given nodes (records) of SObjects and their children as a tree in a single request. And updates theId
parameter of each object to the value returned from the API call.- Parameters:
tree
- SObject tree to submitcallback
-CompositeApiClient.ResponseCallback
to handle response or exception- Throws:
SalesforceException
-