org.teiid.translator.jdbc
Class JDBCQueryExecution

java.lang.Object
  extended by org.teiid.translator.jdbc.JDBCBaseExecution
      extended by org.teiid.translator.jdbc.JDBCQueryExecution
All Implemented Interfaces:
Execution, ResultSetExecution
Direct Known Subclasses:
JDBCProcedureExecution

public class JDBCQueryExecution
extends JDBCBaseExecution
implements ResultSetExecution


Field Summary
protected  java.lang.Class<?>[] columnDataTypes
           
protected  Command command
           
protected  java.sql.ResultSet results
           
 
Fields inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
connection, context, executionFactory, fetchSize, statement, trimString
 
Constructor Summary
JDBCQueryExecution(Command command, java.sql.Connection connection, ExecutionContext context, JDBCExecutionFactory env)
           
 
Method Summary
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 java.util.List<?> next()
          Retrieves the next row of the resultset.
 
Methods inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
addStatementWarnings, bindPreparedStatementValues, cancel, getCallableStatement, getConnection, getPreparedStatement, getStatement, setSizeContraints, translateCommand
 
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.Execution
cancel
 

Field Detail

results

protected java.sql.ResultSet results

command

protected Command command

columnDataTypes

protected java.lang.Class<?>[] columnDataTypes
Constructor Detail

JDBCQueryExecution

public JDBCQueryExecution(Command command,
                          java.sql.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 interface Execution
Throws:
TranslatorException

next

public java.util.List<?> next()
                       throws TranslatorException,
                              DataNotAvailableException
Description copied from interface: ResultSetExecution
Retrieves the next row of the resultset.

Specified by:
next in interface ResultSetExecution
Returns:
the next row or null indicating that there are no more results
Throws:
TranslatorException
DataNotAvailableException

close

public void close()
Description copied from interface: Execution
Terminates the execution normally.

Specified by:
close in interface Execution
Overrides:
close in class JDBCBaseExecution
See Also:
JDBCBaseExecution.close()


Copyright © 2011. All Rights Reserved.