Teiid 8.3.0.Final

org.teiid.translator.salesforce.execution
Class InsertExecutionImpl

java.lang.Object
  extended by org.teiid.translator.salesforce.execution.AbstractUpdateExecution
      extended by org.teiid.translator.salesforce.execution.InsertExecutionImpl
All Implemented Interfaces:
Execution, UpdateExecution

public class InsertExecutionImpl
extends AbstractUpdateExecution


Field Summary
 
Fields inherited from class org.teiid.translator.salesforce.execution.AbstractUpdateExecution
command, connection, context, executionFactory, metadata, result
 
Constructor Summary
InsertExecutionImpl(SalesForceExecutionFactory ef, Command command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context)
           
 
Method Summary
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.
 
Methods inherited from class org.teiid.translator.salesforce.execution.AbstractUpdateExecution
close, getConnection, getMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertExecutionImpl

public InsertExecutionImpl(SalesForceExecutionFactory ef,
                           Command command,
                           SalesforceConnection salesforceConnection,
                           RuntimeMetadata metadata,
                           ExecutionContext context)
                    throws TranslatorException
Throws:
TranslatorException
Method Detail

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

Teiid 8.3.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.