com.metamatrix.connector.xml.file
Class FileExecution

java.lang.Object
  extended by com.metamatrix.connector.xml.streaming.BaseStreamingExecution
      extended by com.metamatrix.connector.xml.file.FileExecution
All Implemented Interfaces:
ResultProducer, XMLExecution, Execution, ResultSetExecution

public class FileExecution
extends BaseStreamingExecution
implements ResultProducer


Field Summary
static java.lang.String PARM_FILE_NAME_TABLE_PROPERTY_NAME
           
 
Fields inherited from class com.metamatrix.connector.xml.streaming.BaseStreamingExecution
connection, connEnv, exeContext, exeInfo, logger, metadata, query, resultProducers, results, rowProducer, xpaths
 
Constructor Summary
FileExecution(IQuery command, XMLConnectionImpl conn, RuntimeMetadata metadata, ExecutionContext context, ConnectorEnvironment env)
           
 
Method Summary
 void closeStreams()
           
 void execute()
          Execute the associated command.
 ExecutionInfo getInfo()
           
 ResultProducer getStreamProducer()
          Gets all the ResultProducers for a single query.
 java.util.Iterator<Document> getXMLDocuments()
          Gets all the InputStreams for a single ExecutionInfo instance.
 
Methods inherited from class com.metamatrix.connector.xml.streaming.BaseStreamingExecution
cancel, close, getConnection, getExeContext, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARM_FILE_NAME_TABLE_PROPERTY_NAME

public static final java.lang.String PARM_FILE_NAME_TABLE_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

FileExecution

public FileExecution(IQuery command,
                     XMLConnectionImpl conn,
                     RuntimeMetadata metadata,
                     ExecutionContext context,
                     ConnectorEnvironment env)
              throws ConnectorException
Throws:
ConnectorException
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

getInfo

public ExecutionInfo getInfo()

getStreamProducer

public ResultProducer getStreamProducer()
                                 throws ConnectorException
Description copied from interface: XMLExecution
Gets all the ResultProducers for a single query. This could be any number or results and is implementation dependent.

Specified by:
getStreamProducer in interface XMLExecution
Returns:
Throws:
ConnectorException

getXMLDocuments

public java.util.Iterator<Document> getXMLDocuments()
                                             throws ConnectorException
Description copied from interface: ResultProducer
Gets all the InputStreams for a single ExecutionInfo instance. This could be any number or streams and is implementation dependent.

Specified by:
getXMLDocuments in interface ResultProducer
Returns:
Throws:
ConnectorException

closeStreams

public void closeStreams()
Specified by:
closeStreams in interface ResultProducer


Copyright © 2009. All Rights Reserved.