public class DirectQueryExecution extends Object implements ProcedureExecution
| Modifier and Type | Field and Description |
|---|---|
protected List<Argument> |
arguments |
protected Command |
command |
protected RuntimeMetadata |
metadata |
static String |
SEARCH |
| Constructor and Description |
|---|
DirectQueryExecution(List<Argument> arguments,
Command command,
SalesforceConnection connection,
RuntimeMetadata metadata,
ExecutionContext context,
String query,
boolean returnsArray) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
void |
execute()
Execute the associated command.
|
List<?> |
getOutputParameterValues()
Get the output parameter values.
|
List<?> |
next()
Retrieves the next row of the resultset.
|
public static final String SEARCH
protected Command command
protected RuntimeMetadata metadata
public DirectQueryExecution(List<Argument> arguments, Command command, SalesforceConnection connection, RuntimeMetadata metadata, ExecutionContext context, String query, boolean returnsArray)
arguments - parameter arguments onlycommand - connection - metadata - context - query - public void execute()
throws TranslatorException
Executionexecute in interface ExecutionTranslatorExceptionpublic List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic List<?> getOutputParameterValues() throws TranslatorException
ProcedureExecutiongetOutputParameterValues in interface ProcedureExecutionTranslatorException - If an error occurs while retrieving the output valueCopyright © 2019. All rights reserved.