com.metamatrix.connector.xmlsource.file
Class FileConnection

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

public class FileConnection
extends XMLSourceConnection

This is a connection object for File based XML File.


Field Summary
 
Fields inherited from class com.metamatrix.connector.xmlsource.XMLSourceConnection
env
 
Constructor Summary
FileConnection(ConnectorEnvironment env)
          ctor
 
Method Summary
 void close()
          Release the connection.
 ProcedureExecution createProcedureExecution(IProcedure command, ExecutionContext executionContext, RuntimeMetadata metadata)
           
 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

FileConnection

public FileConnection(ConnectorEnvironment env)
               throws ConnectorException
ctor

Parameters:
env - - Connector environment
Throws:
ConnectorException
Method Detail

createProcedureExecution

public ProcedureExecution createProcedureExecution(IProcedure command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata)
                                            throws ConnectorException
Overrides:
createProcedureExecution in class BasicConnection
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.

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

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()


Copyright © 2009. All Rights Reserved.