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