public class ObjectExecution extends Object implements ResultSetExecution
| Modifier and Type | Field and Description |
|---|---|
protected ObjectConnection |
connection |
protected Select |
query |
| Constructor and Description |
|---|
ObjectExecution(Select query,
RuntimeMetadata metadata,
ObjectExecutionFactory factory,
ObjectConnection connection,
ExecutionContext executionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
void |
execute()
Execute the associated command.
|
static String |
getNameInSource(AbstractMetadataRecord c) |
List<Object> |
next()
Retrieves the next row of the resultset.
|
protected Select query
protected ObjectConnection connection
public ObjectExecution(Select query, RuntimeMetadata metadata, ObjectExecutionFactory factory, ObjectConnection connection, ExecutionContext executionContext) throws TranslatorException
TranslatorExceptionpublic void execute()
throws TranslatorException
Executionexecute in interface ExecutionTranslatorExceptionpublic List<Object> next() throws TranslatorException, DataNotAvailableException
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionpublic void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic static String getNameInSource(AbstractMetadataRecord c)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.