Package org.teiid.translator.jdbc
Class JDBCDirectQueryExecution
- java.lang.Object
-
- org.teiid.translator.jdbc.JDBCBaseExecution
-
- org.teiid.translator.jdbc.JDBCQueryExecution
-
- org.teiid.translator.jdbc.JDBCDirectQueryExecution
-
- All Implemented Interfaces:
Execution
,ProcedureExecution
,ResultSetExecution
public class JDBCDirectQueryExecution extends JDBCQueryExecution implements ProcedureExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected int
columnCount
protected int
updateCount
-
Fields inherited from class org.teiid.translator.jdbc.JDBCQueryExecution
columnDataTypes, results, tempTables
-
Fields inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
command, connection, context, executionFactory, fetchSize, statement, trimString
-
-
Constructor Summary
Constructors Constructor Description JDBCDirectQueryExecution(List<Argument> arguments, Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the associated command.List<?>
getOutputParameterValues()
Get the output parameter values.List<?>
next()
Retrieves the next row of the resultset.-
Methods inherited from class org.teiid.translator.jdbc.JDBCQueryExecution
close, createFullTempTables, createTempTables
-
Methods inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
addStatementWarnings, bind, cancel, getCallableStatement, getConnection, getPreparedStatement, getStatement, setSizeContraints, translateCommand
-
-
-
-
Constructor Detail
-
JDBCDirectQueryExecution
public JDBCDirectQueryExecution(List<Argument> arguments, Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory env)
-
-
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 classJDBCQueryExecution
- Throws:
TranslatorException
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
Description copied from interface:ResultSetExecution
Retrieves the next row of the resultset.- Specified by:
next
in interfaceResultSetExecution
- Overrides:
next
in classJDBCQueryExecution
- Returns:
- the next row or null indicating that there are no more results
- Throws:
TranslatorException
DataNotAvailableException
-
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
-
-