com.metamatrix.connector.metadata.adapter
Class ObjectConnector

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnector
      extended by com.metamatrix.connector.metadata.adapter.ObjectConnector
All Implemented Interfaces:
Connector
Direct Known Subclasses:
IndexConnector

public abstract class ObjectConnector
extends BasicConnector

Adapter to expose the object processing logic via the standard connector API.


Constructor Summary
ObjectConnector()
           
 
Method Summary
 ConnectorCapabilities getCapabilities()
           
 Connection getConnection(ExecutionContext context)
           
protected  ConnectorEnvironment getEnvironment()
           
protected abstract  com.metamatrix.connector.metadata.internal.IObjectSource getMetadataObjectSource(ExecutionContext context)
          When a Metadata query is being executed, this method will be called to obtain the object source.
 void start(ConnectorEnvironment environment)
           
 void stop()
           
 
Methods inherited from class org.teiid.connector.basic.BasicConnector
areAdminConnectionsAllowed, createIdentity, getConnectorName, setAdminConnectionsAllowed, setConnectorName, setUseCredentialMap, useCredentialMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectConnector

public ObjectConnector()
Method Detail

getCapabilities

public ConnectorCapabilities getCapabilities()

start

public void start(ConnectorEnvironment environment)
           throws ConnectorException
Specified by:
start in interface Connector
Overrides:
start in class BasicConnector
Throws:
ConnectorException

stop

public void stop()

getConnection

public Connection getConnection(ExecutionContext context)
                         throws ConnectorException
Throws:
ConnectorException

getEnvironment

protected ConnectorEnvironment getEnvironment()

getMetadataObjectSource

protected abstract com.metamatrix.connector.metadata.internal.IObjectSource getMetadataObjectSource(ExecutionContext context)
                                                                                             throws ConnectorException
When a Metadata query is being executed, this method will be called to obtain the object source. It is delayed until it is known if its a SystemAdmin query or a Metadata query.

Parameters:
environment -
context -
Returns:
Throws:
ConnectorException
Since:
4.3


Copyright © 2009. All Rights Reserved.