26 #ifndef __TERRALIB_ADO_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_ADO_INTERNAL_DATASOURCE_H
30 #include "../dataaccess/datasource/DataSource.h"
31 #include "../dataaccess/datasource/DataSourceCapabilities.h"
35 #include <boost/thread/locks.hpp>
36 #include <boost/thread/mutex.hpp>
39 #import "msado15.dll" \
40 no_namespace rename(
"EOF",
"EndOfFile")
69 std::string getType()
const;
71 const std::map<std::string, std::string>& getConnectionInfo()
const;
73 void setConnectionInfo(
const std::map<std::string, std::string>& connInfo);
75 std::auto_ptr<te::da::DataSourceTransactor> getTransactor();
81 bool isOpened()
const;
89 const std::map<std::string, std::string>& getGeomColumns()
const;
91 void registerGeometryColumn(
const std::string& datasetName,
92 const std::string& geomColName);
94 bool isGeometryColumn(
const std::string& datasetName,
95 const std::string& colName)
const;
99 void create(
const std::map<std::string, std::string>& dsInfo);
101 void drop(
const std::map<std::string, std::string>& dsInfo);
103 bool exists(
const std::map<std::string, std::string>& dsInfo);
105 std::vector<std::string> getDataSourceNames(
const std::map<std::string, std::string>& dsInfo);
107 std::vector<te::common::CharEncoding> getEncodings(
const std::map<std::string, std::string>& dsInfo);
109 void loadGeometryColumnsCache(_ConnectionPtr& adoConn);
127 #endif // __TERRALIB_ADO_INTERNAL_DATASOURCE_H
static te::da::DataSourceCapabilities sm_capabilities
ADO capabilities.
std::string m_currentSchema
The default schema used when no one is provided.
#define TEADOEXPORT
You can use this macro in order to export/import classes and functions from this module.
It represents the SQL query dialect accepted by a given data source.
Configuration flags for the TerraLib ADO Data Access driver.
std::map< std::string, std::string > m_geomColumns
The list of geometry columns.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
static te::da::SQLDialect * sm_dialect
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
std::map< std::string, std::string > m_connInfo
Connection information.