com.metamatrix.connector.xml.base
Class XMLExecutionImpl

java.lang.Object
  extended by org.teiid.connector.basic.BasicExecution
      extended by com.metamatrix.connector.xml.base.XMLExecutionImpl
All Implemented Interfaces:
XMLExecution, Execution, ResultSetExecution

public class XMLExecutionImpl
extends BasicExecution
implements ResultSetExecution, XMLExecution


Field Summary
 ExecutionContext exeContext
           
 
Constructor Summary
XMLExecutionImpl(IQuery query, XMLConnectionImpl conn, RuntimeMetadata metadata, ExecutionContext exeContext, ConnectorEnvironment connectorEnv)
           
 
Method Summary
 void cancel()
          Cancels the execution abnormally.
 void close()
          Terminates the execution normally.
 void execute()
          Execute the associated command.
 IDocumentCache getCache()
           
 XMLConnection getConnection()
          Provides access to the XMLConnectionImpl to the Executors.
 ExecutionContext getExeContext()
           
 ExecutionInfo getInfo()
          Provides access to the ExecutionInfo to the Executors.
 ConnectorLogger getLogger()
          Provides access to the ConnectorLogger to the Executors.
 java.lang.String getSystemName()
          Provides access to the connector binding name to the Executors.
 java.util.List next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exeContext

public ExecutionContext exeContext
Constructor Detail

XMLExecutionImpl

public XMLExecutionImpl(IQuery query,
                        XMLConnectionImpl conn,
                        RuntimeMetadata metadata,
                        ExecutionContext exeContext,
                        ConnectorEnvironment connectorEnv)
Method Detail

execute

public void execute()
             throws ConnectorException
Description copied from interface: Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.

Specified by:
execute in interface Execution
Throws:
ConnectorException

next

public java.util.List next()
                    throws ConnectorException,
                           DataNotAvailableException
Specified by:
next in interface ResultSetExecution
Throws:
ConnectorException
DataNotAvailableException

close

public void close()
           throws ConnectorException
Description copied from interface: Execution
Terminates the execution normally.

Specified by:
close in interface Execution
Throws:
ConnectorException

cancel

public void cancel()
            throws ConnectorException
Description copied from interface: Execution
Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.

Specified by:
cancel in interface Execution
Throws:
ConnectorException

getConnection

public XMLConnection getConnection()
Provides access to the XMLConnectionImpl to the Executors.

Specified by:
getConnection in interface XMLExecution
Returns:

getInfo

public ExecutionInfo getInfo()
Provides access to the ExecutionInfo to the Executors.

Specified by:
getInfo in interface XMLExecution
Returns:

getLogger

public ConnectorLogger getLogger()
Provides access to the ConnectorLogger to the Executors.

Returns:

getSystemName

public java.lang.String getSystemName()
Provides access to the connector binding name to the Executors.

Returns:

getCache

public IDocumentCache getCache()
Specified by:
getCache in interface XMLExecution

getExeContext

public ExecutionContext getExeContext()
Specified by:
getExeContext in interface XMLExecution


Copyright © 2009. All Rights Reserved.