com.metamatrix.connector.salesforce.execution
Class ProcedureExecutionParentImpl

java.lang.Object
  extended by com.metamatrix.connector.salesforce.execution.ProcedureExecutionParentImpl
All Implemented Interfaces:
ProcedureExecutionParent, Execution, ProcedureExecution, ResultSetExecution

public class ProcedureExecutionParentImpl
extends java.lang.Object
implements ProcedureExecution, ProcedureExecutionParent


Constructor Summary
ProcedureExecutionParentImpl(IProcedure command, SalesforceConnection connection, RuntimeMetadata metadata, ExecutionContext executionContext, ConnectorEnvironment connectorEnv)
           
 
Method Summary
 void cancel()
          Cancels the execution abnormally.
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 IProcedure getCommand()
           
 ConnectorEnvironment getConectorEnvironment()
           
 SalesforceConnection getConnection()
           
 ExecutionContext getExecutionContext()
           
 RuntimeMetadata getMetadata()
           
 java.util.List<?> getOutputParameterValues()
          Get the output parameter values.
 java.util.List<?> next()
           
 void setCommand(IProcedure command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcedureExecutionParentImpl

public ProcedureExecutionParentImpl(IProcedure command,
                                    SalesforceConnection connection,
                                    RuntimeMetadata metadata,
                                    ExecutionContext executionContext,
                                    ConnectorEnvironment connectorEnv)
Method Detail

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

next

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

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

close

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

Specified by:
close in interface Execution
Throws:
ConnectorException

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

setCommand

public void setCommand(IProcedure command)

getCommand

public IProcedure getCommand()
Specified by:
getCommand in interface ProcedureExecutionParent

getConnection

public SalesforceConnection getConnection()
Specified by:
getConnection in interface ProcedureExecutionParent

getExecutionContext

public ExecutionContext getExecutionContext()
Specified by:
getExecutionContext in interface ProcedureExecutionParent

getMetadata

public RuntimeMetadata getMetadata()
Specified by:
getMetadata in interface ProcedureExecutionParent

getConectorEnvironment

public ConnectorEnvironment getConectorEnvironment()
Specified by:
getConectorEnvironment in interface ProcedureExecutionParent


Copyright © 2009. All Rights Reserved.