26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_BATCHEXECUTOR_H 
   27 #define __TERRALIB_DATAACCESS_INTERNAL_BATCHEXECUTOR_H 
   30 #include "../Config.h" 
   38 #include <boost/noncopyable.hpp> 
   45     class DataSourceTransactor;
 
   91         virtual void execute(
const std::string& uri, 
const std::map<std::string, std::string>& options) = 0;
 
  101         virtual void execute(std::istream& istr, 
const std::map<std::string, std::string>& options) = 0;
 
A class that models an object that submits commands in batch to the data source.
 
virtual DataSourceTransactor * getTransactor() const =0
It returns a pointer to the underlying data source transactor.
 
virtual ~BatchExecutor()
Virtual destructor.
 
BatchExecutor()
Constructor.
 
virtual void add(Query *q)=0
It adds the given statement to the list of commands to be executed.
 
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.
 
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.
 
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
 
A Query is independent from the data source language/dialect.
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.