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:
- JDBCProcedureExecution
public class JDBCQueryExecution
- extends JDBCBaseExecution
- implements ResultSetExecution
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
results
protected java.sql.ResultSet results
command
protected Command command
columnDataTypes
protected java.lang.Class<?>[] columnDataTypes
JDBCQueryExecution
public JDBCQueryExecution(Command command,
java.sql.Connection connection,
ExecutionContext context,
JDBCExecutionFactory env)
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.