28 #ifndef __TERRALIB_DATAACCESS_INTERNAL_DATAACCESS_H 29 #define __TERRALIB_DATAACCESS_INTERNAL_DATAACCESS_H 31 #include "../Config.h" 34 #include "../../datatype/AbstractData.h" 35 #include "../datasource/DataSource.h" 36 #include "../datasource/DataSourceTransactor.h" 62 class DataSetTypeConverter;
126 void beginTransaction();
129 void commitTransaction();
132 void rollbackTransaction();
137 virtual int getTypeCode()
const override;
139 virtual std::string toString()
const override;
142 bool dataSetExists()
const;
149 std::string getDataSourceConnectionInfo()
const;
156 std::string getDataSetName()
const;
208 std::string getStrQuery()
const;
215 std::unique_ptr<te::da::DataSet> getDataSet()
const;
239 std::unique_ptr<te::da::DataSet> query(
const te::da::Select& select);
240 std::unique_ptr<te::da::DataSet> query(
const std::string& query);
245 void execute(
const std::string& query);
261 void saveDataSet(
te::da::DataSet* dataSet,
bool enableProgress =
true);
270 std::vector<std::string> getDistinctValues(
const std::string& attributeName);
281 te::da::Literal* getLiteral(
const std::string& attributeName,
const std::string& value);
330 #endif // __TERRALIB_DATAACCESS_INTERNAL_DATAACCESS_H boost::shared_ptr< DataSource > DataSourcePtr
A class that models the description of a dataset.
boost::shared_ptr< DataSourceTransactor > DataSourceTransactorPtr
te::da::DataSourceTransactorPtr m_transactor
Transactor.
std::string m_dataSetName
Dataset name.
std::unique_ptr< te::da::DataSetType > m_dataSetType
Data set type.
This is an abstract class that models a query expression.
An converter for DataSetType.
std::unique_ptr< te::da::Select > m_dataSetQuery
Filter used to load data with restriction.
An Envelope defines a 2D rectangular region.
This class models a literal value.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
A base class for values that can be retrieved from the data access module.
A Select models a query to be used when retrieving data from a DataSource.
A class to store the proxy information that must be used to access data located in URIs...
A dataset is the unit of information manipulated by the data access module of TerraLib.
std::unique_ptr< te::da::ObjectIdSet > m_objectIdSetFilter
A optional filter containg an objectId set.
DataAccessPtr(te::da::DataAccess *dataAccess=nullptr)
DataAccessSharedPtr(te::da::DataAccess *dataAccess=nullptr)
te::da::DataSourcePtr m_dataSource
Data source.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Class used to centralize and control access to data in terralib. It aims to create a high-level inter...
std::unique_ptr< te::da::DataSetTypeConverter > m_dataSetTypeConverter
DataSetType Converter.