te::da::BatchExecutor Class Referenceabstract

A class that models an object that submits commands in batch to the data source. More...

#include <BatchExecutor.h>

Inheritance diagram for te::da::BatchExecutor:

Public Member Functions

virtual void add (Query *q)=0
 It adds the given statement to the list of commands to be executed. More...
 
 BatchExecutor ()
 Constructor. More...
 
virtual void execute ()=0
 
virtual void execute (const std::string &uri, const std::map< std::string, std::string > &options)=0
 It executes a series of statements in the respource identified by the URI. More...
 
virtual void execute (std::istream &istr, const std::map< std::string, std::string > &options)=0
 It executes a series of statements from the input stream. More...
 
virtual DataSourceTransactorgetTransactor () const =0
 It returns a pointer to the underlying data source transactor. More...
 
virtual ~BatchExecutor ()
 Virtual destructor. More...
 

Detailed Description

A class that models an object that submits commands in batch to the data source.

See also
DataSourceTransactor, Query

Definition at line 55 of file BatchExecutor.h.

Constructor & Destructor Documentation

te::da::BatchExecutor::BatchExecutor ( )
inline

Constructor.

Definition at line 60 of file BatchExecutor.h.

virtual te::da::BatchExecutor::~BatchExecutor ( )
inlinevirtual

Virtual destructor.

Definition at line 63 of file BatchExecutor.h.

Member Function Documentation

virtual void te::da::BatchExecutor::add ( Query q)
pure virtual

It adds the given statement to the list of commands to be executed.

Parameters
queryThe query command to be added to the list of commands to be executed.
Note
The batch executor will take the query ownership.
virtual void te::da::BatchExecutor::execute ( )
pure virtual
virtual void te::da::BatchExecutor::execute ( const std::string &  uri,
const std::map< std::string, std::string > &  options 
)
pure virtual

It executes a series of statements in the respource identified by the URI.

Parameters
uriAn URI with a resource with query statements.
optionsOptional parameters that can be used to refine the execution.
Exceptions
ExcpetionIt throws na exception if something goes wrong.
virtual void te::da::BatchExecutor::execute ( std::istream &  istr,
const std::map< std::string, std::string > &  options 
)
pure virtual

It executes a series of statements from the input stream.

Parameters
istrAn input stream with query statements.
optionsOptional parameters that can be used to refine the execution.
Exceptions
ExcpetionIt throws na exception if something goes wrong.
virtual DataSourceTransactor* te::da::BatchExecutor::getTransactor ( ) const
pure virtual

It returns a pointer to the underlying data source transactor.

Returns
A pointer to the underlying data source transactor.

The documentation for this class was generated from the following file: