com.metamatrix.connector.xml
Interface XMLExecution
- All Superinterfaces:
- Execution, ResultSetExecution
- All Known Implementing Classes:
- BaseStreamingExecution, FileExecution, HTTPExecution, SOAPExecution
public interface XMLExecution
- extends ResultSetExecution
An XMLExecution is responsible for responding to a Query. Depending upon
the query and the source of the XML, this can sometimes require multiple
trips to the source system.
For example, as SOAP service that converts temperature:
int convertToFahrenheit(int degreesCelsius)
might be modeled as a Table called TempConversion with a column for celsius
of type int and a column for fahreneheit also of type int.
when queried like this:
SELECT fahrenheit FROM TempConversion WHERE celsius IN (40, 20)
The XMLExecution has to make two calls to the service to create the correct
result set. The multiple calls are abstracted within the ResultProducer.
getConnection
XMLConnection getConnection()
getExeContext
ExecutionContext getExeContext()
getStreamProducer
ResultProducer getStreamProducer()
throws ConnectorException
- Gets all the ResultProducers for a single query.
This could be any number or results and is implementation dependent.
- Returns:
-
- Throws:
ConnectorException
Copyright © 2009. All Rights Reserved.