org.teiid.translator.jdbc
Class JDBCProcedureExecution

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

public class JDBCProcedureExecution
extends JDBCQueryExecution
implements ProcedureExecution


Field Summary
 
Fields inherited from class org.teiid.translator.jdbc.JDBCQueryExecution
columnDataTypes, command, results
 
Fields inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
connection, context, executionFactory, fetchSize, statement, trimString
 
Constructor Summary
JDBCProcedureExecution(Command command, java.sql.Connection connection, ExecutionContext context, JDBCExecutionFactory env)
           
 
Method Summary
 void execute()
          Execute the associated command.
 java.util.List<?> getOutputParameterValues()
          Get the output parameter values.
 java.util.List<?> next()
          Retrieves the next row of the resultset.
 
Methods inherited from class org.teiid.translator.jdbc.JDBCQueryExecution
close
 
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, close
 

Constructor Detail

JDBCProcedureExecution

public JDBCProcedureExecution(Command command,
                              java.sql.Connection connection,
                              ExecutionContext context,
                              JDBCExecutionFactory env)
Parameters:
connection -
sqlTranslator -
logger -
props -
id -
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
Overrides:
execute in class JDBCQueryExecution
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
Overrides:
next in class JDBCQueryExecution
Returns:
the next row or null indicating that there are no more results
Throws:
TranslatorException
DataNotAvailableException

getOutputParameterValues

public java.util.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 interface ProcedureExecution
Throws:
TranslatorException - If an error occurs while retrieving the output value


Copyright © 2010. All Rights Reserved.