public class InsertExecutionImpl extends AbstractUpdateExecution
command, connection, context, executionFactory, metadata, result
Constructor and Description |
---|
InsertExecutionImpl(SalesForceExecutionFactory ef,
Command command,
SalesforceConnection salesforceConnection,
RuntimeMetadata metadata,
ExecutionContext context) |
Modifier and Type | Method and Description |
---|---|
protected List<com.sforce.async.SObject> |
buildBulkRowPayload(Insert insert,
Iterator<? extends List<?>> it,
int rowCount) |
void |
cancel()
Cancels the execution abnormally.
|
void |
execute()
Execute the associated command.
|
int[] |
getUpdateCounts()
Returns the update counts for the execution.
|
close, getConnection, getMetadata, processIds
public InsertExecutionImpl(SalesForceExecutionFactory ef, Command command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context) throws TranslatorException
TranslatorException
public void execute() throws TranslatorException
Execution
TranslatorException
protected List<com.sforce.async.SObject> buildBulkRowPayload(Insert insert, Iterator<? extends List<?>> it, int rowCount) throws TranslatorException
TranslatorException
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException
UpdateExecution
getUpdateCounts
in interface UpdateExecution
getUpdateCounts
in class AbstractUpdateExecution
DataNotAvailableException
TranslatorException
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
cancel
in class AbstractUpdateExecution
TranslatorException
Copyright © 2017 JBoss by Red Hat. All rights reserved.