org.teiid.connector.jdbc
Class JDBCProcedureExecution

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

public class JDBCProcedureExecution
extends JDBCQueryExecution
implements ProcedureExecution


Field Summary
 
Fields inherited from class org.teiid.connector.jdbc.JDBCQueryExecution
columnDataTypes, command, env, results
 
Fields inherited from class org.teiid.connector.jdbc.JDBCBaseExecution
connection, context, fetchSize, id, logger, maxResultRows, sqlTranslator, statement, trimString
 
Constructor Summary
JDBCProcedureExecution(ICommand command, java.sql.Connection connection, Translator sqlTranslator, ConnectorLogger logger, java.util.Properties props, RuntimeMetadata metadata, ExecutionContext context, ConnectorEnvironment 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.connector.jdbc.JDBCQueryExecution
close, initResultSetInfo, trimString
 
Methods inherited from class org.teiid.connector.jdbc.JDBCBaseExecution
addStatementWarnings, bindPreparedStatementValues, cancel, getCallableStatement, getConnection, getPreparedStatement, getSqlTranslator, 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.connector.api.Execution
cancel, close
 

Constructor Detail

JDBCProcedureExecution

public JDBCProcedureExecution(ICommand command,
                              java.sql.Connection connection,
                              Translator sqlTranslator,
                              ConnectorLogger logger,
                              java.util.Properties props,
                              RuntimeMetadata metadata,
                              ExecutionContext context,
                              ConnectorEnvironment env)
Parameters:
connection -
sqlTranslator -
logger -
props -
id -
Method Detail

execute

public void execute()
             throws ConnectorException
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:
ConnectorException

next

public java.util.List<?> next()
                       throws ConnectorException,
                              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:
ConnectorException
DataNotAvailableException

getOutputParameterValues

public java.util.List<?> getOutputParameterValues()
                                           throws ConnectorException
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:
ConnectorException - If an error occurs while retrieving the output value


Copyright © 2009. All Rights Reserved.