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
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic void execute()
throws TranslatorException
Executionexecute in interface ExecutionTranslatorExceptionpublic int[] getUpdateCounts()
throws DataNotAvailableException,
TranslatorException
UpdateExecutiongetUpdateCounts in interface UpdateExecutionDataNotAvailableExceptionTranslatorExceptionpublic List<?> getOutputParameterValues() throws TranslatorException
ProcedureExecutiongetOutputParameterValues in interface ProcedureExecutionTranslatorException - If an error occurs while retrieving the output valuepublic void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic static String incrementString(String string, BigInteger number)
number - Number in the sequence of strings (which row)Copyright © 2013 JBoss by Red Hat. All Rights Reserved.