com.metamatrix.connector.metadata.adapter
Class ObjectConnection

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnection
      extended by com.metamatrix.connector.metadata.adapter.ObjectConnection
All Implemented Interfaces:
Connection

public class ObjectConnection
extends BasicConnection

Adapter to make object processing code comply with the standard connector API.


Constructor Summary
ObjectConnection(ConnectorEnvironment environment, ExecutionContext context, ObjectConnector connector)
           
 
Method Summary
 void close()
          Release the connection.
 ProcedureExecution createProcedureExecution(IProcedure command, ExecutionContext executionContext, RuntimeMetadata metadata)
           
 ResultSetExecution createResultSetExecution(IQueryCommand command, ExecutionContext executionContext, RuntimeMetadata metadata)
           
protected  com.metamatrix.connector.metadata.internal.IObjectSource getMetadataObjectSource()
           
 
Methods inherited from class org.teiid.connector.basic.BasicConnection
closeCalled, createExecution, createUpdateExecution, getCapabilities, isAlive, setConnectorIdentity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectConnection

public ObjectConnection(ConnectorEnvironment environment,
                        ExecutionContext context,
                        ObjectConnector connector)
Method Detail

createResultSetExecution

public ResultSetExecution createResultSetExecution(IQueryCommand command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata)
                                            throws ConnectorException
Overrides:
createResultSetExecution in class BasicConnection
Throws:
ConnectorException

createProcedureExecution

public ProcedureExecution createProcedureExecution(IProcedure command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata)
                                            throws ConnectorException
Overrides:
createProcedureExecution in class BasicConnection
Throws:
ConnectorException

getMetadataObjectSource

protected com.metamatrix.connector.metadata.internal.IObjectSource getMetadataObjectSource()
                                                                                    throws ConnectorException
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.