public class LoopbackExecution extends Object implements UpdateExecution, ProcedureExecution
Modifier and Type | Field and Description |
---|---|
static Long |
DAY_SECONDS |
Constructor and Description |
---|
LoopbackExecution(Command command,
LoopbackExecutionFactory config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
static String |
constructIncrementedString(int characterValuesSize)
Creates string "ABCD...ZABC..." of length characterValueSize
|
void |
execute()
Execute the associated command.
|
List<?> |
getOutputParameterValues()
Get the output parameter values.
|
int[] |
getUpdateCounts()
Returns the update counts for the execution.
|
static String |
incrementString(String string,
BigInteger number)
Increments the string by appending unique number in sequence.
|
List<?> |
next()
Retrieves the next row of the resultset.
|
public static final Long DAY_SECONDS
public LoopbackExecution(Command command, LoopbackExecutionFactory config)
public static String constructIncrementedString(int characterValuesSize)
characterValuesSize
- public List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecution
next
in interface ResultSetExecution
TranslatorException
DataNotAvailableException
public void execute() throws TranslatorException
Execution
execute
in interface Execution
TranslatorException
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException
UpdateExecution
getUpdateCounts
in interface UpdateExecution
DataNotAvailableException
TranslatorException
public List<?> getOutputParameterValues() throws TranslatorException
ProcedureExecution
getOutputParameterValues
in interface ProcedureExecution
TranslatorException
- If an error occurs while retrieving the output valuepublic void close()
Execution
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
public static String incrementString(String string, BigInteger number)
number
- Number in the sequence of strings (which row)Copyright © 2019. All rights reserved.