te::sqlite::BatchExecutor Class Reference

#include <BatchExecutor.h>

Inheritance diagram for te::sqlite::BatchExecutor:
te::da::BatchExecutor

Public Member Functions

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

Private Attributes

std::vector< std::string * > m_commands
 
DataSourceTransactorm_t
 

Detailed Description

Definition at line 41 of file BatchExecutor.h.

Constructor & Destructor Documentation

te::sqlite::BatchExecutor::BatchExecutor ( DataSourceTransactor t)
te::sqlite::BatchExecutor::~BatchExecutor ( )
virtual

Virtual destructor.

Reimplemented from te::da::BatchExecutor.

Member Function Documentation

void te::sqlite::BatchExecutor::add ( te::da::Query q)
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.

Implements te::da::BatchExecutor.

void te::sqlite::BatchExecutor::add ( std::string *  sql)
void te::sqlite::BatchExecutor::execute ( )
virtual

Implements te::da::BatchExecutor.

void te::sqlite::BatchExecutor::execute ( const std::string &  uri,
const std::map< std::string, std::string > &  options 
)
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.

Implements te::da::BatchExecutor.

void te::sqlite::BatchExecutor::execute ( std::istream &  istr,
const std::map< std::string, std::string > &  options 
)
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.

Implements te::da::BatchExecutor.

te::da::DataSourceTransactor* te::sqlite::BatchExecutor::getTransactor ( ) const
virtual

It returns a pointer to the underlying data source transactor.

Returns
A pointer to the underlying data source transactor.

Implements te::da::BatchExecutor.

Member Data Documentation

std::vector<std::string*> te::sqlite::BatchExecutor::m_commands
private

Definition at line 65 of file BatchExecutor.h.

DataSourceTransactor* te::sqlite::BatchExecutor::m_t
private

Definition at line 63 of file BatchExecutor.h.


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