org.teiid.translator.salesforce.execution
Class AbstractUpdateExecution
java.lang.Object
org.teiid.translator.salesforce.execution.AbstractUpdateExecution
- All Implemented Interfaces:
- Execution, UpdateExecution
- Direct Known Subclasses:
- DeleteExecutionImpl, InsertExecutionImpl, UpdateExecutionImpl
public abstract class AbstractUpdateExecution
- extends java.lang.Object
- 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected SalesforceConnection connection
metadata
protected RuntimeMetadata metadata
context
protected ExecutionContext context
command
protected Command command
result
protected int result
AbstractUpdateExecution
public AbstractUpdateExecution(Command command,
SalesforceConnection salesforceConnection,
RuntimeMetadata metadata,
ExecutionContext context)
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
- Throws:
TranslatorException
close
public void close()
- Description copied from interface:
Execution
- Terminates the execution normally.
- Specified by:
close
in interface Execution
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
- Returns:
- the update counts corresponding to the command executed
- Throws:
DataNotAvailableException
TranslatorException
getMetadata
public RuntimeMetadata getMetadata()
getConnection
public SalesforceConnection getConnection()
Copyright © 2011. All Rights Reserved.