com.metamatrix.connector.xmlsource.soap
Class SoapConnection

java.lang.Object
  extended by org.teiid.connector.basic.BasicConnection
      extended by com.metamatrix.connector.xmlsource.XMLSourceConnection
          extended by com.metamatrix.connector.xmlsource.soap.SoapConnection
All Implemented Interfaces:
Connection

public class SoapConnection
extends XMLSourceConnection

A SOAP based connection object


Field Summary
 
Fields inherited from class com.metamatrix.connector.xmlsource.XMLSourceConnection
env
 
Constructor Summary
SoapConnection(ConnectorEnvironment env)
           
 
Method Summary
 void close()
          Release the connection.
 ProcedureExecution createProcedureExecution(IProcedure command, ExecutionContext executionContext, RuntimeMetadata metadata)
           
 ServiceOperation findOperation(java.lang.String procedureName)
          Find the operation to execute
 boolean isConnected()
          Check if the connection is active.
 
Methods inherited from class org.teiid.connector.basic.BasicConnection
closeCalled, createExecution, 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

SoapConnection

public SoapConnection(ConnectorEnvironment env)
               throws ConnectorException
Parameters:
env -
Throws:
ConnectorException
Method Detail

createProcedureExecution

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

isConnected

public boolean isConnected()
Description copied from class: XMLSourceConnection
Check if the connection is active.

Specified by:
isConnected in class XMLSourceConnection
Returns:
true if active; false otherwise
See Also:
XMLSourceConnection.isConnected()

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.

Specified by:
close in interface Connection
Overrides:
close in class XMLSourceConnection
See Also:
com.metamatrix.connector.xmlsource.XMLSourceConnection#release()

findOperation

public ServiceOperation findOperation(java.lang.String procedureName)
                               throws com.metamatrix.connector.xmlsource.soap.SoapConnection.OperationNotFoundException
Find the operation to execute

Parameters:
name -
Returns:
operation if found; exception otherwise
Throws:
OperationNotFoundException
com.metamatrix.connector.xmlsource.soap.SoapConnection.OperationNotFoundException


Copyright © 2009. All Rights Reserved.