public interface BulkAPI
| Modifier and Type | Method and Description |
|---|---|
BatchInfo |
addBatch(String jobId,
String csvContent)
Add a batch to an existing Job
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_quickstart_add_batch.htm
|
JobInfo |
closeJob(String jobId)
Close the specified Salesforce Bulk Job
|
JobInfo |
createJob(JobInfo jobInfo)
Create a new Bulk Job
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_quickstart_create_job.htm
|
JobInfo |
createJob(JobInfo jobInfo,
List<org.apache.http.Header> customHeaders)
Create a new Bulk Job
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_quickstart_create_job.htm
|
JobInfo |
createJob(String object)
Create a new Bulk Job
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_quickstart_create_job.htm
|
JobInfo |
createJob(String object,
String operation,
String contentType)
Create a new Bulk Job
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_quickstart_create_job.htm
|
BatchInfo |
getBatchInfo(String jobId,
String batchId)
Provides details of the specified Batch
|
BatchInfoList |
getBatchInfoList(String jobId)
List of the Batches for the specified Job
|
String |
getBatchResult(String jobId,
String batchId,
String resultId)
Gets bulk query results
|
List<String> |
getBatchResultIds(String jobId,
String batchId)
Retrieves a list of batch result IDs for a particular batch job.
|
boolean |
isCompleted(String jobId)
Queries Salesforce to get the BatchInfo of the specified Job
Check whether all the Jobs are completed
|
boolean |
isSuccess(String jobId)
Queries Salesforce to get the BatchInfo of the specified Job
Check whether all the Jobs are completed
|
JobInfo createJob(String object) throws Exception
The - Salesforce object to be updatedExceptionJobInfo createJob(String object, String operation, String contentType) throws Exception
The - Salesforce object to be updatedExceptionJobInfo createJob(JobInfo jobInfo) throws Exception
JobInfo createJob(JobInfo jobInfo, List<org.apache.http.Header> customHeaders) throws Exception
BatchInfo addBatch(String jobId, String csvContent) throws Exception
JobInfo closeJob(String jobId) throws Exception
jobId - Job to be closedExceptionboolean isCompleted(String jobId) throws Exception
jobId - Job to be checked for its statusExceptionboolean isSuccess(String jobId) throws Exception
jobId - Job to be checked for its statusExceptionBatchInfoList getBatchInfoList(String jobId) throws Exception
jobId - ExceptionBatchInfo getBatchInfo(String jobId, String batchId) throws Exception
jobId - batchId - ExceptionList<String> getBatchResultIds(String jobId, String batchId) throws Exception
jobId - The identifier for the jobbatchId - The batch identifier for the jobExceptionString getBatchResult(String jobId, String batchId, String resultId) throws Exception
jobId - The identifier for the jobbatchId - The batch identifier for the jobresultId - the result ID in the response to the batch result list requestExceptionCopyright © 2019. All rights reserved.