26 #ifndef __TERRALIB_ADO_INTERNAL_DATASOURCETRANSACTOR_H    27 #define __TERRALIB_ADO_INTERNAL_DATASOURCETRANSACTOR_H    30 #include "../dataaccess/datasource/DataSourceTransactor.h"    43   namespace gm { 
class Envelope; 
class Geometry; }
    78         bool isInTransaction() 
const;
    80         std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name, 
    82                                                   bool connected = 
false,
    85         std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
    86                                                   const std::string& propertyName,
    90                                                   bool connected = 
false,
    93         std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
    94                                                   const std::string& propertyName,
    98                                                   bool connected = 
false,
   101         std::unique_ptr<te::da::DataSet> getDataSet(
const std::string& name,
   102                                                   const ObjectIdSet* oids, 
   104                                                   bool connected = 
false,
   109                                              bool connected = 
false,
   112         std::unique_ptr<te::da::DataSet> query(
const std::string& query,
   114                                              bool connected = 
false,
   119         void execute(
const std::string& command);
   121         std::unique_ptr<te::da::PreparedQuery> getPrepared(
const std::string& qName = std::string(
""));
   123         std::unique_ptr<te::da::BatchExecutor> getBatchExecutor();
   127         boost::int64_t getLastGeneratedId();
   129         std::string escape(
const std::string& value);
   131         std::vector<std::string> getDataSetNames();
   133         std::size_t getNumberOfDataSets();
   135         std::unique_ptr<te::da::DataSetType> getDataSetType(
const std::string& name);
   137         boost::ptr_vector<te::dt::Property> getProperties(
const std::string& datasetName);
   139         std::unique_ptr<te::dt::Property> getProperty(
const std::string& datasetName, 
const std::string& name);
   141         std::unique_ptr<te::dt::Property> getProperty(
const std::string& datasetName, std::size_t propertyPos);
   143         std::vector<std::string> getPropertyNames(
const std::string& datasetName);
   145         std::size_t getNumberOfProperties(
const std::string& datasetName);
   147         bool propertyExists(
const std::string& datasetName, 
const std::string& name);
   153         void dropProperty(
const std::string& datasetName, 
const std::string& name);
   156         void renameProperty(
const std::string& datasetName,
   157                             const std::string& propertyName,
   158                             const std::string& newPropertyName);
   160         void changePropertyDefinition(
const std::string& datasetName, 
const std::string& propName, 
te::dt::Property* newProp);
   162         std::unique_ptr<te::da::PrimaryKey> getPrimaryKey(
const std::string& datasetName);
   164         bool primaryKeyExists(
const std::string& datasetName, 
const std::string& name);
   168         void dropPrimaryKey(
const std::string& datasetName);
   170         std::unique_ptr<te::da::ForeignKey> getForeignKey(
const std::string& datasetName, 
const std::string& name);
   172         std::vector<std::string> getForeignKeyNames(
const std::string& datasetName);
   174         bool foreignKeyExists(
const std::string& datasetName, 
const std::string& name);
   178         void dropForeignKey(
const std::string& datasetName, 
const std::string& fkName);
   180         std::unique_ptr<te::da::UniqueKey> getUniqueKey(
const std::string& datasetName, 
const std::string& name);
   182         std::vector<std::string> getUniqueKeyNames(
const std::string& datasetName);
   184         bool uniqueKeyExists(
const std::string& datasetName, 
const std::string& name);
   188         void dropUniqueKey(
const std::string& datasetName, 
const std::string& name);
   190         std::unique_ptr<te::da::CheckConstraint> getCheckConstraint(
const std::string& datasetName, 
const std::string& name);
   192         std::vector<std::string> getCheckConstraintNames(
const std::string& datasetName);
   194         bool checkConstraintExists(
const std::string& datasetName, 
const std::string& name);
   198         void dropCheckConstraint(
const std::string& datasetName, 
const std::string& name);
   200         std::unique_ptr<te::da::Index> getIndex(
const std::string& datasetName, 
const std::string& name);
   202         std::vector<std::string> getIndexNames(
const std::string& datasetName);
   204         bool indexExists(
const std::string& datasetName, 
const std::string& name);
   206         void addIndex(
const std::string& datasetName, 
te::da::Index* idx,
   207                       const std::map<std::string, std::string>& options); 
   209         void dropIndex(
const std::string& datasetName, 
const std::string& idxName);
   211         std::unique_ptr<te::da::Sequence> getSequence(
const std::string& name);
   213         std::vector<std::string> getSequenceNames();
   215         bool sequenceExists(
const std::string& name);
   219         void dropSequence(
const std::string& name);
   221         std::unique_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
   222                                                   const std::string& propertyName);
   224         std::unique_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
   225                                                   std::size_t propertyPos);
   227         std::size_t getNumberOfItems(
const std::string& datasetName);
   231         bool dataSetExists(
const std::string& name);
   233         void createDataSet(
te::da::DataSetType* dt, 
const std::map<std::string, std::string>& options);
   235         void cloneDataSet(
const std::string& name,
   236                           const std::string& cloneName,
   237                           const std::map<std::string, std::string>& options);
   239         void dropDataSet(
const std::string& name);
   241         void renameDataSet(
const std::string& name, 
const std::string& newName);
   243         void add(
const std::string& datasetName,
   245                  const std::map<std::string, std::string>& options,
   246                  std::size_t limit = 0,
   247                  bool enableProgress = 
true);
   251         void update(
const std::string& datasetName,
   253                     const std::vector<std::size_t>& properties,
   255                     const std::map<std::string, std::string>& options,
   256                     std::size_t limit = 0);
   258         void update(
const std::string& datasetName,
   260                     const std::vector< std::set<int> >& properties,
   261                     const std::vector<size_t>& ids);
   263         void optimize(
const std::map<std::string, std::string>& opInfo);
   322         void insertIntoGeometryColumns(
const std::string& datasetName,
   341 #endif  // __TERRALIB_ADO_INTERNAL_DATASOURCETRANSACTOR_H The transactor class for the Microsoft Access driver. 
 
A class that models the description of a dataset. 
 
#define TEADOEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
Configuration flags for the TerraLib ADO Data Access driver. 
 
SpatialRelation
Spatial relations between geometric objects. 
 
It describes a sequence (a number generator). 
 
A class that describes a check constraint. 
 
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
 
A class that implements a connection to a ADO database. 
 
It models a property definition. 
 
AccessPolicy
Supported data access policies (can be used as bitfield). 
 
TraverseType
A dataset can be traversed in two ways: 
 
An Envelope defines a 2D rectangular region. 
 
This class represents a set of unique ids created in the same context. i.e. from the same data set...
 
DataSource * m_ds
The ADO data source associated to this transactor. 
 
It models a foreign key constraint for a DataSetType. 
 
It describes a unique key (uk) constraint. 
 
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards. 
 
A Select models a query to be used when retrieving data from a DataSource. 
 
Connection * m_conn
The connection used by this transactor. 
 
Implementation of the data source class for the ADO driver. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib. 
 
bool m_isInTransaction
Tells if there is a transaction in progress. 
 
It describes a primary key (pk) constraint. 
 
A Query is independent from the data source language/dialect. 
 
It describes an index associated to a DataSetType.