Package org.teiid.translator.simpledb
Class SimpleDBDirectQueryExecution
- java.lang.Object
-
- org.teiid.translator.simpledb.SimpleDBQueryExecution
-
- org.teiid.translator.simpledb.SimpleDBDirectQueryExecution
-
- All Implemented Interfaces:
Execution
,ProcedureExecution
,ResultSetExecution
public class SimpleDBDirectQueryExecution extends SimpleDBQueryExecution implements ProcedureExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected int
columnCount
protected int
updateCount
-
Fields inherited from class org.teiid.translator.simpledb.SimpleDBQueryExecution
connection, listIterator
-
-
Constructor Summary
Constructors Constructor Description SimpleDBDirectQueryExecution(List<Argument> arguments, Command command, RuntimeMetadata metadata, SimpleDBConnection connection, ExecutionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<?>
buildRow(com.amazonaws.services.simpledb.model.Item item)
void
execute()
Execute the associated command.List<?>
getOutputParameterValues()
Get the output parameter values.protected String
getSQL()
-
Methods inherited from class org.teiid.translator.simpledb.SimpleDBQueryExecution
cancel, close, createAttributeMap, executeDirect, next
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.translator.ResultSetExecution
next
-
-
-
-
Constructor Detail
-
SimpleDBDirectQueryExecution
public SimpleDBDirectQueryExecution(List<Argument> arguments, Command command, RuntimeMetadata metadata, SimpleDBConnection connection, ExecutionContext context) throws TranslatorException
- Throws:
TranslatorException
-
-
Method Detail
-
execute
public void execute() throws TranslatorException
Description copied from interface:Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.- Specified by:
execute
in interfaceExecution
- Overrides:
execute
in classSimpleDBQueryExecution
- Throws:
TranslatorException
-
getSQL
protected String getSQL()
- Overrides:
getSQL
in classSimpleDBQueryExecution
-
buildRow
protected List<?> buildRow(com.amazonaws.services.simpledb.model.Item item) throws TranslatorException
- Overrides:
buildRow
in classSimpleDBQueryExecution
- Throws:
TranslatorException
-
getOutputParameterValues
public List<?> getOutputParameterValues() throws TranslatorException
Description copied from interface:ProcedureExecution
Get the output parameter values. Results should place the return parameter first if it is present, then the IN/OUT and OUT parameters should follow in the order they appeared in the command.- Specified by:
getOutputParameterValues
in interfaceProcedureExecution
- Throws:
TranslatorException
- If an error occurs while retrieving the output value
-
-