com.metamatrix.connector.salesforce.execution
Class UpdateExecutionParent

java.lang.Object
  extended by org.teiid.connector.basic.BasicExecution
      extended by com.metamatrix.connector.salesforce.execution.UpdateExecutionParent
All Implemented Interfaces:
Execution, UpdateExecution

public class UpdateExecutionParent
extends BasicExecution
implements UpdateExecution

Parent class to the Update, Delete, and Insert execution classes. Provisions the correct impl and contains some common code to get IDs of Salesforce objects.


Constructor Summary
UpdateExecutionParent(ICommand command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context, ConnectorEnvironment connectorEnv)
           
 
Method Summary
 void cancel()
          Cancels the execution abnormally.
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 SalesforceConnection getConnection()
           
 ConnectorEnvironment getConnectorEnv()
           
 RuntimeMetadata getMetadata()
           
 int[] getUpdateCounts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateExecutionParent

public UpdateExecutionParent(ICommand command,
                             SalesforceConnection salesforceConnection,
                             RuntimeMetadata metadata,
                             ExecutionContext context,
                             ConnectorEnvironment connectorEnv)
Method Detail

cancel

public void cancel()
            throws ConnectorException
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
Throws:
ConnectorException

close

public void close()
           throws ConnectorException
Description copied from interface: Execution
Terminates the execution normally.

Specified by:
close in interface Execution
Throws:
ConnectorException

execute

public void execute()
             throws ConnectorException
Description copied from interface: Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.

Specified by:
execute in interface Execution
Throws:
ConnectorException

getUpdateCounts

public int[] getUpdateCounts()
                      throws DataNotAvailableException,
                             ConnectorException
Specified by:
getUpdateCounts in interface UpdateExecution
Throws:
DataNotAvailableException
ConnectorException

getMetadata

public RuntimeMetadata getMetadata()

getConnectorEnv

public ConnectorEnvironment getConnectorEnv()

getConnection

public SalesforceConnection getConnection()


Copyright © 2009. All Rights Reserved.