26 #ifndef __TERRALIB_POSTGIS_INTERNAL_TRANSACTOR_H    27 #define __TERRALIB_POSTGIS_INTERNAL_TRANSACTOR_H    30 #include "../dataaccess/datasource/DataSourceTransactor.h"    42   namespace dt { 
class Property; }
    43   namespace gm { 
class Envelope; 
class Geometry; }
    94         bool isInTransaction() 
const;
    96         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name, 
    98                                                   bool connected = 
false,
   101         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
   102                                                   const std::string& propertyName,
   106                                                   bool connected = 
false,
   109         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
   110                                                   const std::string& propertyName,
   114                                                   bool connected = 
false,
   119                                              bool connected = 
false,
   123         std::auto_ptr<te::da::DataSet> query(
const std::string& query, 
   125                                              bool connected = 
false,
   130         void execute(
const std::string& command);
   132         std::auto_ptr<te::da::PreparedQuery> getPrepared(
const std::string& qName = std::string(
""));
   134         std::auto_ptr<te::da::BatchExecutor> getBatchExecutor();
   138         boost::int64_t getLastGeneratedId();
   140         std::string escape(
const std::string& value);
   142         std::vector<std::string> getDataSetNames();
   144         std::size_t getNumberOfDataSets();
   146         std::auto_ptr<te::da::DataSetType> getDataSetType(
const std::string& name);
   148         boost::ptr_vector<te::dt::Property> getProperties(
const std::string& datasetName);
   150         std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName, 
const std::string& name);
   152         std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName, std::size_t propertyPos);
   154         std::vector<std::string> getPropertyNames(
const std::string& datasetName);
   156         std::size_t getNumberOfProperties(
const std::string& datasetName);
   158         bool propertyExists(
const std::string& datasetName, 
const std::string& name);
   162         void dropProperty(
const std::string& datasetName, 
const std::string& name);
   164         void renameProperty(
const std::string& datasetName,
   165                                     const std::string& propertyName,
   166                                     const std::string& newPropertyName);
   169         void changePropertyDefinition(
const std::string& datasetName, 
const std::string& propName, 
te::dt::Property* newProp);
   172         std::auto_ptr<te::da::PrimaryKey> getPrimaryKey(
const std::string& datasetName);
   174         bool primaryKeyExists(
const std::string& datasetName, 
const std::string& name);
   178         void dropPrimaryKey(
const std::string& datasetName);
   180         std::auto_ptr<te::da::ForeignKey> getForeignKey(
const std::string& datasetName, 
const std::string& name);
   182         std::vector<std::string> getForeignKeyNames(
const std::string& datasetName);
   184         bool foreignKeyExists(
const std::string& datasetName, 
const std::string& name);
   188         void dropForeignKey(
const std::string& datasetName, 
const std::string& fkName);
   190         std::auto_ptr<te::da::UniqueKey> getUniqueKey(
const std::string& datasetName, 
const std::string& name);
   192         std::vector<std::string> getUniqueKeyNames(
const std::string& datasetName);
   194         bool uniqueKeyExists(
const std::string& datasetName, 
const std::string& name);
   198         void dropUniqueKey(
const std::string& datasetName, 
const std::string& name);
   200         std::auto_ptr<te::da::CheckConstraint> getCheckConstraint(
const std::string& datasetName, 
const std::string& name);
   202         std::vector<std::string> getCheckConstraintNames(
const std::string& datasetName);
   204         bool checkConstraintExists(
const std::string& datasetName, 
const std::string& name);
   208         void dropCheckConstraint(
const std::string& datasetName, 
const std::string& name);
   210         std::auto_ptr<te::da::Index> getIndex(
const std::string& datasetName, 
const std::string& name);
   212         std::vector<std::string> getIndexNames(
const std::string& datasetName);
   214         bool indexExists(
const std::string& datasetName, 
const std::string& name);
   216         void addIndex(
const std::string& datasetName, 
te::da::Index* idx,
   217                               const std::map<std::string, std::string>& options); 
   219         void dropIndex(
const std::string& datasetName, 
const std::string& idxName);
   221         std::auto_ptr<te::da::Sequence> getSequence(
const std::string& name);
   223         std::vector<std::string> getSequenceNames();
   225         bool sequenceExists(
const std::string& name);
   229         void dropSequence(
const std::string& name);
   231         std::auto_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
   232                                                   const std::string& propertyName);
   234         std::auto_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
   235                                                           std::size_t propertyPos);
   237         std::size_t getNumberOfItems(
const std::string& datasetName);
   241         bool dataSetExists(
const std::string& name);
   243         void createDataSet(
te::da::DataSetType* dt, 
const std::map<std::string, std::string>& options);
   245         void cloneDataSet(
const std::string& name,
   246                           const std::string& cloneName,
   247                           const std::map<std::string, std::string>& options);
   249         void dropDataSet(
const std::string& name);
   251         void renameDataSet(
const std::string& name, 
const std::string& newName);
   253         void add(
const std::string& datasetName,
   255                  const std::map<std::string, std::string>& options,
   256                  std::size_t limit = 0);
   260         void update(
const std::string& datasetName,
   262                     const std::vector<std::size_t>& properties,
   264                     const std::map<std::string, std::string>& options,
   265                     std::size_t limit = 0);
   267         void update(
const std::string& datasetName,
   269                     const std::vector< std::set<int> >& properties,
   270                     const std::vector<size_t>& ids);
   272         void optimize(
const std::map<std::string, std::string>& opInfo);
   286         unsigned int getGeomTypeId();
   297         unsigned int getRasterTypeId();
   308         void getDatabaseInfo(std::string& currentSchema);
   337         std::string getFullName(
const std::string& name);
   350         unsigned int getDataSetId(
const std::string& datasetName);
   363         std::string getDataSetName(
unsigned int id);
   388         std::auto_ptr<te::da::DataSet> getPropertiesInfo(
const std::string& datasetName);
   411         std::auto_ptr<te::dt::Property> getProperty(
unsigned int pid, 
const std::string& datasetName);
   438         std::auto_ptr<te::da::DataSet> getConstraints(
const std::string& datasetName, 
char conType = 
'\0');
   467         std::vector<te::da::Sequence*> getSequences();
   481 #endif  // __TERRALIB_POSTGIS_INTERNAL_TRANSACTOR_H 
CharEncoding
Supported charsets (character encoding). 
 
A class that models the description of a dataset. 
 
SpatialRelation
Spatial relations between geometric objects. 
 
It describes a sequence (a number generator). 
 
A class that implements a connection to a PostgreSQL database. 
 
A class that describes a check constraint. 
 
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
 
It models a property definition. 
 
#define TEPGISEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
The transactor class for the PostGIS driver. 
 
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...
 
Configuration flags for the PostGIS Driver Implementation of TerraLib. 
 
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. 
 
Implementation of the data source for the PostGIS driver. 
 
boost::shared_ptr< Transactor > TransactorPtr
 
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. 
 
Connection * m_conn
The connection used by this transactor. 
 
A Query is independent from the data source language/dialect. 
 
It describes an index associated to a DataSetType. 
 
DataSource * m_ds
The PostGIS data source associated to this transactor.