26#ifndef __TERRALIB_DATAACCESS_INTERNAL_PREPAREDQUERY_H 
   27#define __TERRALIB_DATAACCESS_INTERNAL_PREPAREDQUERY_H 
   30#include "../../common/Enums.h" 
   38#include <boost/cstdint.hpp> 
   39#include <boost/noncopyable.hpp> 
   52  namespace gm { 
class Geometry; }
 
   54  namespace rst { 
class Raster; }
 
   59    class DataSourceTransactor;
 
   97        virtual void prepare(
const Query& query, 
const std::vector<te::dt::Property*>& paramTypes) = 0;
 
  112        virtual void prepare(
const std::string& query, 
const std::vector<te::dt::Property*>& paramTypes) = 0;
 
  140        virtual void bind(
int i, 
char value) = 0;
 
  148        virtual void bind(
int i, 
unsigned char value) = 0;
 
  156        virtual void bind(
int i, boost::int16_t value) = 0;
 
  164        virtual void bind(
int i, boost::int32_t value) = 0;
 
  172        virtual void bind(
int i, boost::int64_t value) = 0;
 
  180        virtual void bind(
int i, 
bool value) = 0;
 
  188        virtual void bind(
int i, 
float value) = 0;
 
  196        virtual void bind(
int i, 
double value) = 0;
 
  214        virtual void bind(
int i, 
const std::string& value) = 0;
 
A dataset is the unit of information manipulated by the data access module of TerraLib.
 
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
 
A class that model a prepared query.
 
virtual void bind(int i, const te::dt::AbstractData &ad)
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, const std::string &value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, const DataSet &value)=0
Binds the i-th parameter of the query to a value.
 
virtual DataSourceTransactor * getTransactor() const =0
It returns a pointer to the underlying data source transactor.
 
virtual void bind(int i, float value)=0
Binds the i-th parameter of the query to a value.
 
virtual ~PreparedQuery()
Virtual destructor.
 
virtual void bind(int i, boost::int16_t value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, const te::rst::Raster &value)=0
Binds the i-th parameter of the query to a value.
 
virtual DataSet * query(te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess)=0
 
virtual void bind(int i, double value)=0
Binds the i-th parameter of the query to a value.
 
virtual void prepare(const Query &query, const std::vector< te::dt::Property * > ¶mTypes)=0
It prepares the query that may be used for commands that are used mutiple times (select,...
 
virtual std::string getName() const =0
It returns the prepared query name.
 
PreparedQuery()
Constructor.
 
virtual void bind(int i, const te::dt::DateTime &value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bindNumeric(int i, const std::string &value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, boost::int64_t value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, unsigned char value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, boost::int32_t value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, bool value)=0
Binds the i-th parameter of the query to a value.
 
virtual void prepare(const std::string &query, const std::vector< te::dt::Property * > ¶mTypes)=0
It prepares the query using native dialect.
 
virtual void bind(int i, char value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, const te::dt::ByteArray &value)=0
Binds the i-th parameter of the query to a value.
 
virtual void bind(int i, const te::gm::Geometry &value)=0
Binds the i-th parameter of the query to a value.
 
A Query is independent from the data source language/dialect.
 
A base class for values that can be retrieved from the data access module.
 
A class for representing binary data.
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
 
An abstract class for raster data strucutures.
 
TraverseType
A dataset can be traversed in two ways:
 
AccessPolicy
Supported data access policies (can be used as bitfield).
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.