26 #ifndef __TERRALIB_MEMORY_INTERNAL_TRANSACTOR_H 
   27 #define __TERRALIB_MEMORY_INTERNAL_TRANSACTOR_H 
   30 #include "../dataaccess/datasource/DataSourceTransactor.h" 
   72         bool isInTransaction() 
const;
 
   74         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name, 
 
   76                                                   bool connected = 
false);
 
   78         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
 
   79                                                   const std::string& propertyName,
 
   83                                                   bool connected = 
false);
 
   85         std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
 
   86                                                   const std::string& propertyName,
 
   90                                                   bool connected = 
false);
 
   94                                              bool connected = 
false);
 
   96         std::auto_ptr<te::da::DataSet> query(
const std::string& query,
 
   98                                              bool connected = 
false);
 
  102         void execute(
const std::string& command);
 
  104         std::auto_ptr<te::da::PreparedQuery> getPrepared(
const std::string& qName = std::string(
""));
 
  106         std::auto_ptr<te::da::BatchExecutor> getBatchExecutor();
 
  110         boost::int64_t getLastGeneratedId();
 
  112         std::string escape(
const std::string& value);
 
  114         bool isDataSetNameValid(
const std::string& datasetName);
 
  116         bool isPropertyNameValid(
const std::string& propertyName);
 
  118         std::vector<std::string> getDataSetNames();
 
  120         std::size_t getNumberOfDataSets();
 
  122         std::auto_ptr<te::da::DataSetType> getDataSetType(
const std::string& name);
 
  124         boost::ptr_vector<te::dt::Property> getProperties(
const std::string& datasetName);
 
  126         std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName, 
const std::string& name);
 
  128         std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName, std::size_t propertyPos);
 
  130         std::vector<std::string> getPropertyNames(
const std::string& datasetName);
 
  132         std::size_t getNumberOfProperties(
const std::string& datasetName);
 
  134         bool propertyExists(
const std::string& datasetName, 
const std::string& name);
 
  138         void dropProperty(
const std::string& datasetName, 
const std::string& name);
 
  140         void renameProperty(
const std::string& datasetName,
 
  141                                     const std::string& propertyName,
 
  142                                     const std::string& newPropertyName);
 
  144         std::auto_ptr<te::da::PrimaryKey> getPrimaryKey(
const std::string& datasetName);
 
  146         bool primaryKeyExists(
const std::string& datasetName, 
const std::string& name);
 
  150         void dropPrimaryKey(
const std::string& datasetName);
 
  152         std::auto_ptr<te::da::ForeignKey> getForeignKey(
const std::string& datasetName, 
const std::string& name);
 
  154         std::vector<std::string> getForeignKeyNames(
const std::string& datasetName);
 
  156         bool foreignKeyExists(
const std::string& datasetName, 
const std::string& name);
 
  160         void dropForeignKey(
const std::string& datasetName, 
const std::string& fkName);
 
  162         std::auto_ptr<te::da::UniqueKey> getUniqueKey(
const std::string& datasetName, 
const std::string& name);
 
  164         std::vector<std::string> getUniqueKeyNames(
const std::string& datasetName);
 
  166         bool uniqueKeyExists(
const std::string& datasetName, 
const std::string& name);
 
  170         void dropUniqueKey(
const std::string& datasetName, 
const std::string& name);
 
  172         std::auto_ptr<te::da::CheckConstraint> getCheckConstraint(
const std::string& datasetName, 
const std::string& name);
 
  174         std::vector<std::string> getCheckConstraintNames(
const std::string& datasetName);
 
  176         bool checkConstraintExists(
const std::string& datasetName, 
const std::string& name);
 
  180         void dropCheckConstraint(
const std::string& datasetName, 
const std::string& name);
 
  182         std::auto_ptr<te::da::Index> getIndex(
const std::string& datasetName, 
const std::string& name);
 
  184         std::vector<std::string> getIndexNames(
const std::string& datasetName);
 
  186         bool indexExists(
const std::string& datasetName, 
const std::string& name);
 
  188         void addIndex(
const std::string& datasetName, 
te::da::Index* idx,
 
  189                               const std::map<std::string, std::string>& options); 
 
  191         void dropIndex(
const std::string& datasetName, 
const std::string& idxName);
 
  193         std::auto_ptr<te::da::Sequence> getSequence(
const std::string& name);
 
  195         std::vector<std::string> getSequenceNames();
 
  197         bool sequenceExists(
const std::string& name);
 
  201         void dropSequence(
const std::string& name);
 
  203         std::auto_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
 
  204                                                   const std::string& propertyName);
 
  206         std::auto_ptr<te::gm::Envelope> getExtent(
const std::string& datasetName,
 
  207                                                           std::size_t propertyPos);
 
  209         std::size_t getNumberOfItems(
const std::string& datasetName);
 
  213         bool dataSetExists(
const std::string& name);
 
  215         void createDataSet(
te::da::DataSetType* dt, 
const std::map<std::string, std::string>& options);
 
  217         void cloneDataSet(
const std::string& name,
 
  218                           const std::string& cloneName,
 
  219                           const std::map<std::string, std::string>& options);
 
  221         void dropDataSet(
const std::string& name);
 
  223         void renameDataSet(
const std::string& name, 
const std::string& newName);
 
  225         void add(
const std::string& datasetName,
 
  227                  const std::map<std::string, std::string>& options,
 
  228                  std::size_t limit = 0);
 
  232         void update(
const std::string& datasetName,
 
  234                     const std::vector<std::size_t>& properties,
 
  236                     const std::map<std::string, std::string>& options,
 
  237                     std::size_t limit = 0);
 
  239         void optimize(
const std::map<std::string, std::string>& opInfo);
 
  251 #endif  // __TERRALIB_MEMORY_INTERNAL_TRANSACTOR_H 
#define TEMEMORYEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
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). 
 
DataSource * m_ds
The associated data source. 
 
Configuration flags for the TerraLib In-memory Data Access driver. 
 
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. 
 
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...
 
An implementation of the Transactor class for the Memory Data Access driver. 
 
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. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib. 
 
It describes a primary key (pk) constraint. 
 
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
 
A Query is independent from the data source language/dialect. 
 
It describes an index associated to a DataSetType.