Package org.teiid.translator.jdbc
Class JDBCQueryExecution
- java.lang.Object
-
- org.teiid.translator.jdbc.JDBCBaseExecution
-
- org.teiid.translator.jdbc.JDBCQueryExecution
-
- All Implemented Interfaces:
org.teiid.translator.Execution,org.teiid.translator.ResultSetExecution
- Direct Known Subclasses:
JDBCDirectQueryExecution,JDBCProcedureExecution
public class JDBCQueryExecution extends JDBCBaseExecution implements org.teiid.translator.ResultSetExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>[]columnDataTypesprotected ResultSetresultsprotected List<org.teiid.language.NamedTable>tempTables-
Fields inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
command, connection, context, executionFactory, fetchSize, statement, trimString
-
-
Constructor Summary
Constructors Constructor Description JDBCQueryExecution(org.teiid.language.Command command, Connection connection, org.teiid.translator.ExecutionContext context, JDBCExecutionFactory env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected booleancreateFullTempTables(org.teiid.language.QueryExpression qe, boolean usingTxn)protected booleancreateTempTables(org.teiid.language.Select select)voidexecute()List<?>next()-
Methods inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
addStatementWarnings, bind, cancel, getCallableStatement, getConnection, getPreparedStatement, getStatement, setSizeContraints, translateCommand
-
-
-
-
Constructor Detail
-
JDBCQueryExecution
public JDBCQueryExecution(org.teiid.language.Command command, Connection connection, org.teiid.translator.ExecutionContext context, JDBCExecutionFactory env)
-
-
Method Detail
-
execute
public void execute() throws org.teiid.translator.TranslatorException- Specified by:
executein interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
createFullTempTables
protected boolean createFullTempTables(org.teiid.language.QueryExpression qe, boolean usingTxn) throws SQLException, org.teiid.translator.TranslatorException- Parameters:
qe-usingTxn-- Returns:
- Throws:
SQLExceptionorg.teiid.translator.TranslatorException
-
createTempTables
protected boolean createTempTables(org.teiid.language.Select select) throws SQLException, org.teiid.translator.TranslatorException- Parameters:
select-- Returns:
- Throws:
SQLExceptionorg.teiid.translator.TranslatorException
-
next
public List<?> next() throws org.teiid.translator.TranslatorException, org.teiid.translator.DataNotAvailableException
- Specified by:
nextin interfaceorg.teiid.translator.ResultSetExecution- Throws:
org.teiid.translator.TranslatorExceptionorg.teiid.translator.DataNotAvailableException
-
close
public void close()
- Specified by:
closein interfaceorg.teiid.translator.Execution- Overrides:
closein classJDBCBaseExecution- See Also:
JDBCBaseExecution.close()
-
-