com.metamatrix.connector.loopback
Class LoopbackConnection

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnection
      extended by com.metamatrix.connector.loopback.LoopbackConnection
All Implemented Interfaces:
Connection

public class LoopbackConnection
extends BasicConnection

Serves as a connection for the Loopback connector. Since there is no actual data source, this "connection" doesn't really have any state.


Constructor Summary
LoopbackConnection(ConnectorEnvironment env)
           
 
Method Summary
 void close()
          Release the connection.
 Execution createExecution(ICommand command, ExecutionContext executionContext, RuntimeMetadata metadata)
          Create an execution object for the specified command
 
Methods inherited from class org.teiid.connector.basic.BasicConnection
closeCalled, createProcedureExecution, createResultSetExecution, createUpdateExecution, getCapabilities, isAlive, setConnectorIdentity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopbackConnection

public LoopbackConnection(ConnectorEnvironment env)
Method Detail

createExecution

public Execution createExecution(ICommand command,
                                 ExecutionContext executionContext,
                                 RuntimeMetadata metadata)
                          throws ConnectorException
Description copied from interface: Connection
Create an execution object for the specified command

Specified by:
createExecution in interface Connection
Overrides:
createExecution in class BasicConnection
Parameters:
command - the command
executionContext - Provides information about the context that this command is executing within, such as the identifiers for the MetaMatrix command being executed
metadata - Access to runtime metadata if needed to translate the command
Returns:
An execution object that MetaMatrix can use to execute the command
Throws:
ConnectorException

close

public void close()
Description copied from interface: Connection
Release the connection. This will be called when MetaMatrix has completed using the connection for an execution.



Copyright © 2009. All Rights Reserved.