26 #ifndef __TERRALIB_WCS_INTERNAL_TRANSACTOR_H
27 #define __TERRALIB_WCS_INTERNAL_TRANSACTOR_H
30 #include "../dataaccess/datasource/DataSourceTransactor.h"
52 Transactor(
const std::string& serviceURL,
const std::string& coverageName);
64 bool isInTransaction()
const;
66 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
68 bool connected =
false,
71 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
72 const std::string& propertyName,
76 bool connected =
false,
79 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
80 const std::string& propertyName,
84 bool connected =
false,
87 std::auto_ptr<te::da::DataSet> getDataSet(
const std::string& name,
90 bool connected =
false,
95 bool connected =
false,
98 std::auto_ptr<te::da::DataSet> query(
const std::string& query,
100 bool connected =
false,
105 void execute(
const std::string& command);
107 std::auto_ptr<te::da::PreparedQuery> getPrepared(
const std::string& qName = std::string(
""));
109 std::auto_ptr<te::da::BatchExecutor> getBatchExecutor();
113 boost::int64_t getLastGeneratedId();
115 std::string escape(
const std::string& value);
117 bool isDataSetNameValid(
const std::string& datasetName);
119 bool isPropertyNameValid(
const std::string& propertyName);
121 std::vector<std::string> getDataSetNames();
123 std::size_t getNumberOfDataSets();
125 std::auto_ptr<te::da::DataSetType> getDataSetType(
const std::string& name);
127 boost::ptr_vector<te::dt::Property> getProperties(
const std::string& datasetName);
129 std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName,
const std::string& name);
131 std::auto_ptr<te::dt::Property> getProperty(
const std::string& datasetName, std::size_t propertyPos);
133 std::vector<std::string> getPropertyNames(
const std::string& datasetName);
135 std::size_t getNumberOfProperties(
const std::string& datasetName);
137 bool propertyExists(
const std::string& datasetName,
const std::string& name);
141 void dropProperty(
const std::string& datasetName,
const std::string& name);
143 void renameProperty(
const std::string& datasetName ,
const std::string& propertyName,
const std::string& newPropertyName);
145 std::auto_ptr<te::da::PrimaryKey> getPrimaryKey(
const std::string& datasetName);
147 bool primaryKeyExists(
const std::string& datasetName,
const std::string& name);
151 void dropPrimaryKey(
const std::string& datasetName);
153 std::auto_ptr<te::da::ForeignKey> getForeignKey(
const std::string& datasetName,
const std::string& name);
155 std::vector<std::string> getForeignKeyNames(
const std::string& datasetName);
157 bool foreignKeyExists(
const std::string& datasetName ,
const std::string& name);
161 void dropForeignKey(
const std::string& datasetName ,
const std::string& fkName);
163 std::auto_ptr<te::da::UniqueKey> getUniqueKey(
const std::string& datasetName,
const std::string& name);
165 std::vector<std::string> getUniqueKeyNames(
const std::string& datasetName);
167 bool uniqueKeyExists(
const std::string& datasetName,
const std::string& name);
171 void dropUniqueKey(
const std::string& datasetName,
const std::string& name);
173 std::auto_ptr<te::da::CheckConstraint> getCheckConstraint(
const std::string& datasetName,
const std::string& name);
175 std::vector<std::string> getCheckConstraintNames(
const std::string& datasetName);
177 bool checkConstraintExists(
const std::string& datasetName,
const std::string& name);
181 void dropCheckConstraint(
const std::string& datasetName,
const std::string& name);
183 std::auto_ptr<te::da::Index> getIndex(
const std::string& datasetName,
const std::string& name);
185 std::vector<std::string> getIndexNames(
const std::string& datasetName);
187 bool indexExists(
const std::string& datasetName,
const std::string& name);
189 void addIndex(
const std::string& datasetName,
te::da::Index* idx,
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);
216 const std::map<std::string, std::string>& options);
218 void cloneDataSet(
const std::string& name,
219 const std::string& cloneName,
220 const std::map<std::string, std::string>& options);
222 void dropDataSet(
const std::string& name);
224 void renameDataSet(
const std::string& name,
225 const std::string& newName);
227 void add(
const std::string& datasetName,
229 const std::map<std::string, std::string>& options,
230 std::size_t limit = 0);
234 void update(
const std::string& datasetName,
236 const std::vector<std::size_t>& properties,
238 const std::map<std::string, std::string>& options,
239 std::size_t limit = 0);
241 void optimize(
const std::map<std::string, std::string>& opInfo);
254 #endif // __TERRALIB_WCS_INTERNAL_TRANSACTOR_H
#define TEWCSEXPORT
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).
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.
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 TerraLib WCS module.
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...
Informations about WCS Layers.
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.
std::string m_coverageName
It describes a primary key (pk) constraint.
Implementation of the transactor for the WCS driver.
A Query is independent from the data source language/dialect.
It describes an index associated to a DataSetType.