Class DeleteUpdateExecutionImpl
- java.lang.Object
-
- org.teiid.translator.salesforce.execution.AbstractUpdateExecution
-
- org.teiid.translator.salesforce.execution.DeleteUpdateExecutionImpl
-
- All Implemented Interfaces:
Execution
,UpdateExecution
- Direct Known Subclasses:
DeleteExecutionImpl
,UpdateExecutionImpl
public abstract class DeleteUpdateExecutionImpl extends AbstractUpdateExecution
Implements the base logic for sync and async bulk handling with a root select query to drive id fetching
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
bulk
protected UpdateVisitor
visitor
-
Fields inherited from class org.teiid.translator.salesforce.execution.AbstractUpdateExecution
command, connection, context, executionFactory, metadata, result
-
-
Constructor Summary
Constructors Constructor Description DeleteUpdateExecutionImpl(SalesForceExecutionFactory ef, Command command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the associated command.protected abstract com.sforce.async.OperationEnum
getOperation()
protected int
processIds(String[] ids)
protected abstract int
syncProcessIds(String[] ids)
protected com.sforce.async.SObject
toSObject(String id)
-
Methods inherited from class org.teiid.translator.salesforce.execution.AbstractUpdateExecution
cancel, close, getConnection, getMetadata, getUpdateCounts
-
-
-
-
Field Detail
-
visitor
protected UpdateVisitor visitor
-
bulk
protected boolean bulk
-
-
Constructor Detail
-
DeleteUpdateExecutionImpl
public DeleteUpdateExecutionImpl(SalesForceExecutionFactory ef, Command command, SalesforceConnection salesforceConnection, RuntimeMetadata metadata, ExecutionContext context)
-
-
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
-
processIds
protected int processIds(String[] ids) throws TranslatorException
- Throws:
TranslatorException
-
syncProcessIds
protected abstract int syncProcessIds(String[] ids) throws TranslatorException
- Throws:
TranslatorException
-
toSObject
protected com.sforce.async.SObject toSObject(String id)
-
getOperation
protected abstract com.sforce.async.OperationEnum getOperation()
-
-