Package com.sforce.async
Class BulkConnection
java.lang.Object
com.sforce.async.BulkConnection
BulkConnection
- Since:
- 160
- Author:
- mcheenath
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBatchResultURL(String jobId, String batchId) buildQueryResultURL(String jobId, String batchId, String resultId) createBatch(JobInfo job) createBatchFromDir(JobInfo job, InputStream batchContent, File attachmentDir) createBatchFromForeignCsvStream(JobInfo jobInfo, InputStream input, String charSet) createBatchFromStream(JobInfo jobInfo, InputStream input) createBatchFromZipStream(JobInfo jobInfo, InputStream zipInput) createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, File rootDirectory, String... files) createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, Map<String, File> attachedFiles) createBatchWithInputStreamAttachments(JobInfo jobInfo, InputStream batchContent, Map<String, InputStream> attachments) createCsvBatch(JobInfo job) createJob(JobInfo job, ContentType contentType) voidcreateTransformationSpecFromStream(JobInfo jobInfo, InputStream input) getBatchInfo(String jobId, String batchId) getBatchInfo(String jobId, String batchId, ContentType contentType) getBatchInfoList(String jobId) getBatchInfoList(String jobId, ContentType contentType) getBatchRequestInputStream(String jobId, String batchId) getBatchResult(String jobId, String batchId) getBatchResult(String jobId, String batchId, ContentType contentType) getBatchResultStream(String jobId, String batchId) getJobStatus(String jobId) getJobStatus(String jobId, ContentType contentType) getQueryResultList(String jobId, String batchId) getQueryResultList(String jobId, String batchId, ContentType contentType) getQueryResultStream(String jobId, String batchId, String resultId) updateJob(JobInfo job, ContentType contentType)
-
Field Details
-
NAMESPACE
- See Also:
-
SESSION_ID
- See Also:
-
XML_CONTENT_TYPE
- See Also:
-
CSV_CONTENT_TYPE
- See Also:
-
JSON_CONTENT_TYPE
- See Also:
-
ZIP_XML_CONTENT_TYPE
- See Also:
-
ZIP_CSV_CONTENT_TYPE
- See Also:
-
ZIP_JSON_CONTENT_TYPE
- See Also:
-
JOB_QNAME
-
BATCH_QNAME
-
BATCH_LIST_QNAME
-
ERROR_QNAME
-
typeMapper
-
-
Constructor Details
-
BulkConnection
- Throws:
AsyncApiException
-
-
Method Details
-
createJob
- Throws:
AsyncApiException
-
createJob
- Throws:
AsyncApiException
-
createJob
- Throws:
AsyncApiException
-
addHeader
-
createBatchFromStream
- Throws:
AsyncApiException
-
createBatchFromZipStream
public BatchInfo createBatchFromZipStream(JobInfo jobInfo, InputStream zipInput) throws AsyncApiException - Throws:
AsyncApiException
-
createBatchFromDir
public BatchInfo createBatchFromDir(JobInfo job, InputStream batchContent, File attachmentDir) throws AsyncApiException - Throws:
AsyncApiException
-
createBatchWithFileAttachments
public BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, File rootDirectory, String... files) throws AsyncApiException - Throws:
AsyncApiException
-
createBatchWithFileAttachments
public BatchInfo createBatchWithFileAttachments(JobInfo jobInfo, InputStream batchContent, Map<String, File> attachedFiles) throws AsyncApiException- Throws:
AsyncApiException
-
createBatchWithInputStreamAttachments
public BatchInfo createBatchWithInputStreamAttachments(JobInfo jobInfo, InputStream batchContent, Map<String, InputStream> attachments) throws AsyncApiException- Parameters:
jobInfo- Parent job for new batch.batchContent- InputStream containing the xml or csv content of the batch, or null only if request.txt is contained in attachments mapattachments- Map of attachments where the key is the filename to be used in the zip file and the value is the InputStream representing that file.- Returns:
- BatchInfo of uploaded batch.
- Throws:
AsyncApiException
-
createBatchFromForeignCsvStream
public BatchInfo createBatchFromForeignCsvStream(JobInfo jobInfo, InputStream input, String charSet) throws AsyncApiException - Throws:
AsyncApiException
-
createTransformationSpecFromStream
public void createTransformationSpecFromStream(JobInfo jobInfo, InputStream input) throws AsyncApiException - Throws:
AsyncApiException
-
createBatch
- Throws:
AsyncApiException
-
createCsvBatch
- Throws:
AsyncApiException
-
createTransformationSpec
- Throws:
AsyncApiException
-
getBatchInfoList
- Throws:
AsyncApiException
-
getBatchInfoList
public BatchInfoList getBatchInfoList(String jobId, ContentType contentType) throws AsyncApiException - Throws:
AsyncApiException
-
getBatchInfo
- Throws:
AsyncApiException
-
getBatchInfo
public BatchInfo getBatchInfo(String jobId, String batchId, ContentType contentType) throws AsyncApiException - Throws:
AsyncApiException
-
getBatchResult
- Throws:
AsyncApiException
-
getBatchResult
public BatchResult getBatchResult(String jobId, String batchId, ContentType contentType) throws AsyncApiException - Throws:
AsyncApiException
-
getBatchResultStream
- Throws:
AsyncApiException
-
buildBatchResultURL
- Throws:
AsyncApiException
-
getBatchRequestInputStream
public InputStream getBatchRequestInputStream(String jobId, String batchId) throws AsyncApiException - Throws:
AsyncApiException
-
getQueryResultList
- Throws:
AsyncApiException
-
getQueryResultList
public QueryResultList getQueryResultList(String jobId, String batchId, ContentType contentType) throws AsyncApiException - Throws:
AsyncApiException
-
getQueryResultStream
public InputStream getQueryResultStream(String jobId, String batchId, String resultId) throws AsyncApiException - Throws:
AsyncApiException
-
buildQueryResultURL
public URL buildQueryResultURL(String jobId, String batchId, String resultId) throws AsyncApiException - Throws:
AsyncApiException
-
getJobStatus
- Throws:
AsyncApiException
-
getJobStatus
- Throws:
AsyncApiException
-
abortJob
- Throws:
AsyncApiException
-
closeJob
- Throws:
AsyncApiException
-
updateJob
- Throws:
AsyncApiException
-
updateJob
- Throws:
AsyncApiException
-
getConfig
-