org.teiid.translator.salesforce.execution
Class InsertExecutionImpl
java.lang.Object
org.teiid.translator.salesforce.execution.AbstractUpdateExecution
org.teiid.translator.salesforce.execution.InsertExecutionImpl
- All Implemented Interfaces:
- Execution, UpdateExecution
public class InsertExecutionImpl
- extends AbstractUpdateExecution
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertExecutionImpl
public InsertExecutionImpl(SalesForceExecutionFactory ef,
Command command,
SalesforceConnection salesforceConnection,
RuntimeMetadata metadata,
ExecutionContext context)
throws TranslatorException
- Throws:
TranslatorException
execute
public void execute()
throws TranslatorException
- Description copied from interface:
Execution
- Execute the associated command. Results will be retrieved through a specific sub-interface call.
- Throws:
TranslatorException
buildBulkRowPayload
protected List<com.sforce.async.SObject> buildBulkRowPayload(Insert insert,
Iterator<? extends List<?>> it,
int rowCount)
getUpdateCounts
public int[] getUpdateCounts()
throws DataNotAvailableException,
TranslatorException
- Description copied from interface:
UpdateExecution
- Returns the update counts for the execution.
- Specified by:
getUpdateCounts
in interface UpdateExecution
- Overrides:
getUpdateCounts
in class AbstractUpdateExecution
- Returns:
- the update counts corresponding to the command executed
- Throws:
DataNotAvailableException
TranslatorException
cancel
public void cancel()
throws TranslatorException
- Description copied from interface:
Execution
- Cancels the execution abnormally. This will happen via
a different thread from the one performing the execution, so
should be expected to happen in a multi-threaded scenario.
- Specified by:
cancel
in interface Execution
- Overrides:
cancel
in class AbstractUpdateExecution
- Throws:
TranslatorException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.