A class that models an object that submits commands in batch to the data source.  
 More...
#include <BatchExecutor.h>
 | 
| 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 DataSourceTransactor *  | getTransactor () const  =0 | 
|   | It returns a pointer to the underlying data source transactor.  More...
  | 
|   | 
| virtual  | ~BatchExecutor () | 
|   | Virtual destructor.  More...
  | 
|   | 
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.
 
  
  
      
        
          | te::da::BatchExecutor::BatchExecutor  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | virtual te::da::BatchExecutor::~BatchExecutor  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | virtual void te::da::BatchExecutor::add  | 
          ( | 
          Query *  | 
          q | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
It adds the given statement to the list of commands to be executed. 
- Parameters
 - 
  
    | query | The 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
 - 
  
    | uri | An URI with a resource with query statements.  | 
    | options | Optional parameters that can be used to refine the execution. | 
  
   
- Exceptions
 - 
  
    | Excpetion | It 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
 - 
  
    | istr | An input stream with query statements.  | 
    | options | Optional parameters that can be used to refine the execution. | 
  
   
- Exceptions
 - 
  
    | Excpetion | It throws na exception if something goes wrong.  | 
  
   
 
 
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:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/dataaccess/datasource/BatchExecutor.h