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
TranslatorException
public void execute() throws TranslatorException
Execution
execute
in interface Execution
TranslatorException
protected String getSQL()
protected void executeDirect(String sql, String next) throws TranslatorException
TranslatorException
public void close()
Execution
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
public List<?> next() throws TranslatorException, DataNotAvailableException
ResultSetExecution
next
in interface ResultSetExecution
TranslatorException
DataNotAvailableException
protected List<?> buildRow(com.amazonaws.services.simpledb.model.Item item) throws TranslatorException
TranslatorException
Copyright © 2017 JBoss by Red Hat. All rights reserved.