Class ProcedureExecutionParentImpl
- java.lang.Object
-
- org.teiid.translator.salesforce.execution.ProcedureExecutionParentImpl
-
- All Implemented Interfaces:
Execution
,ProcedureExecution
,ResultSetExecution
,ProcedureExecutionParent
public class ProcedureExecutionParentImpl extends Object implements ProcedureExecution, ProcedureExecutionParent
-
-
Field Summary
Fields Modifier and Type Field Description static String
GET_DELETED
static String
GET_UPDATED
-
Constructor Summary
Constructors Constructor Description ProcedureExecutionParentImpl(Call command, SalesforceConnection connection, RuntimeMetadata metadata, ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the execution abnormally.void
close()
Terminates the execution normally.void
execute()
Execute the associated command.Call
getCommand()
SalesforceConnection
getConnection()
ExecutionContext
getExecutionContext()
RuntimeMetadata
getMetadata()
List<?>
getOutputParameterValues()
Get the output parameter values.List<?>
next()
Retrieves the next row of the resultset.void
setCommand(Call command)
-
-
-
Field Detail
-
GET_DELETED
public static final String GET_DELETED
- See Also:
- Constant Field Values
-
GET_UPDATED
public static final String GET_UPDATED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcedureExecutionParentImpl
public ProcedureExecutionParentImpl(Call command, SalesforceConnection connection, RuntimeMetadata metadata, ExecutionContext executionContext)
-
-
Method Detail
-
getOutputParameterValues
public List<?> getOutputParameterValues() throws TranslatorException
Description copied from interface:ProcedureExecution
Get the output parameter values. Results should place the return parameter first if it is present, then the IN/OUT and OUT parameters should follow in the order they appeared in the command.- Specified by:
getOutputParameterValues
in interfaceProcedureExecution
- Throws:
TranslatorException
- If an error occurs while retrieving the output value
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
Description copied from interface:ResultSetExecution
Retrieves the next row of the resultset.- Specified by:
next
in interfaceResultSetExecution
- Returns:
- the next row or null indicating that there are no more results
- Throws:
TranslatorException
DataNotAvailableException
-
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 interfaceExecution
- Throws:
TranslatorException
-
close
public void close()
Description copied from interface:Execution
Terminates the execution normally.
-
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.- Specified by:
execute
in interfaceExecution
- Throws:
TranslatorException
-
setCommand
public void setCommand(Call command)
-
getCommand
public Call getCommand()
- Specified by:
getCommand
in interfaceProcedureExecutionParent
-
getConnection
public SalesforceConnection getConnection()
- Specified by:
getConnection
in interfaceProcedureExecutionParent
-
getExecutionContext
public ExecutionContext getExecutionContext()
- Specified by:
getExecutionContext
in interfaceProcedureExecutionParent
-
getMetadata
public RuntimeMetadata getMetadata()
- Specified by:
getMetadata
in interfaceProcedureExecutionParent
-
-