public abstract class AbstractUpdateExecution extends Object implements UpdateExecution
| Modifier and Type | Field and Description |
|---|---|
protected Command |
command |
protected SalesforceConnection |
connection |
protected ExecutionContext |
context |
protected SalesForceExecutionFactory |
executionFactory |
protected RuntimeMetadata |
metadata |
protected int |
result |
| Constructor and Description |
|---|
AbstractUpdateExecution(SalesForceExecutionFactory ef,
Command command,
SalesforceConnection salesforceConnection,
RuntimeMetadata metadata,
ExecutionContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
SalesforceConnection |
getConnection() |
RuntimeMetadata |
getMetadata() |
int[] |
getUpdateCounts()
Returns the update counts for the execution.
|
protected int |
processIds(String[] ids,
IQueryProvidingVisitor visitor)
Process an update against the ids
|
protected SalesForceExecutionFactory executionFactory
protected SalesforceConnection connection
protected RuntimeMetadata metadata
protected ExecutionContext context
protected Command command
protected int result
public AbstractUpdateExecution(SalesForceExecutionFactory ef, Command command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context)
public void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic void close()
Executionpublic int[] getUpdateCounts()
throws DataNotAvailableException,
TranslatorException
UpdateExecutiongetUpdateCounts in interface UpdateExecutionDataNotAvailableExceptionTranslatorExceptionpublic RuntimeMetadata getMetadata()
public SalesforceConnection getConnection()
protected int processIds(String[] ids, IQueryProvidingVisitor visitor) throws javax.resource.ResourceException
ids - visitor - javax.resource.ResourceExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.