public class SimpleDBQueryExecution extends Object implements ResultSetExecution
| Modifier and Type | Field and Description |
|---|---|
protected SimpleDBConnection |
connection |
protected Iterator<com.amazonaws.services.simpledb.model.Item> |
listIterator |
| Constructor and Description |
|---|
SimpleDBQueryExecution(Select command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
SimpleDBConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
protected List<?> |
buildRow(com.amazonaws.services.simpledb.model.Item item) |
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
protected Map<String,List<String>> |
createAttributeMap(List<com.amazonaws.services.simpledb.model.Attribute> attributes) |
void |
execute()
Execute the associated command.
|
protected void |
executeDirect(String sql,
String next) |
protected String |
getSQL() |
List<?> |
next()
Retrieves the next row of the resultset.
|
protected SimpleDBConnection connection
protected Iterator<com.amazonaws.services.simpledb.model.Item> listIterator
public SimpleDBQueryExecution(Select command, ExecutionContext executionContext, RuntimeMetadata metadata, SimpleDBConnection connection) throws TranslatorException
TranslatorExceptionpublic void execute()
throws TranslatorException
Executionexecute in interface ExecutionTranslatorExceptionprotected String getSQL()
protected void executeDirect(String sql, String next) throws TranslatorException
TranslatorExceptionpublic void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionpublic List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecutionnext in interface ResultSetExecutionTranslatorExceptionDataNotAvailableExceptionprotected List<?> buildRow(com.amazonaws.services.simpledb.model.Item item) throws TranslatorException
TranslatorExceptionCopyright © 2019. All rights reserved.