com.metamatrix.connector.loopback
Class LoopbackExecution

java.lang.Object
  extended by org.teiid.connector.basic.BasicExecution
      extended by com.metamatrix.connector.loopback.LoopbackExecution
All Implemented Interfaces:
Execution, ProcedureExecution, ResultSetExecution, UpdateExecution

public class LoopbackExecution
extends BasicExecution
implements UpdateExecution, ProcedureExecution

Represents the execution of a command.


Field Summary
static java.sql.Date SQL_DATE_VAL
           
static java.sql.Time TIME_VAL
           
static java.sql.Timestamp TIMESTAMP_VAL
           
 
Constructor Summary
LoopbackExecution(ICommand command, ConnectorEnvironment env, RuntimeMetadata metadata)
           
 
Method Summary
 void cancel()
          Cancels the execution abnormally.
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 java.util.List<?> getOutputParameterValues()
          Get the output parameter values.
 int[] getUpdateCounts()
           
 java.util.List<?> next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQL_DATE_VAL

public static java.sql.Date SQL_DATE_VAL

TIME_VAL

public static java.sql.Time TIME_VAL

TIMESTAMP_VAL

public static java.sql.Timestamp TIMESTAMP_VAL
Constructor Detail

LoopbackExecution

public LoopbackExecution(ICommand command,
                         ConnectorEnvironment env,
                         RuntimeMetadata metadata)
Method Detail

next

public java.util.List<?> next()
                       throws ConnectorException,
                              DataNotAvailableException
Specified by:
next in interface ResultSetExecution
Throws:
ConnectorException
DataNotAvailableException

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
Throws:
ConnectorException

getUpdateCounts

public int[] getUpdateCounts()
                      throws DataNotAvailableException,
                             ConnectorException
Specified by:
getUpdateCounts in interface UpdateExecution
Throws:
DataNotAvailableException
ConnectorException

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

close

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

Specified by:
close in interface Execution
Throws:
ConnectorException

cancel

public void cancel()
            throws ConnectorException
Description copied from interface: Execution
Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.

Specified by:
cancel in interface Execution
Throws:
ConnectorException


Copyright © 2009. All Rights Reserved.