4 #ifndef FIRE_PLUGIN_DATA_SHARED_CONNECTIONVECTORSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_CONNECTIONVECTORSH_HPP_INCLUDED
10 #include "fire/gis/export.hpp"
11 #include "fire/exception/Exception.hpp"
12 #include "fire/source/shared/ConnectionSh.hpp"
13 #include "fire/source/vector/ConnectionVector.hpp"
14 #include "fire/source/vector/shared/DataSetSh.hpp"
30 source::shared::ConnectionSh::operator =(c);
35 source::shared::ConnectionSh::operator =(c);
39 inline virtual bool isEmpty()
const {
40 return _getPtr() == NULL;
44 return _getPtr()->getLayerInfo(name);
47 inline virtual DataSet::DataSetShp const getData(
const std::string &schema, std::string
const & tbl)
const {
48 return _getPtr()->getData(schema, tbl);
52 return _getPtr()->createTable(mtd);
56 return _getPtr()->createTable(mtd, extents);
59 inline virtual DataSet::DataSetShp getData(
const std::string &schema, std::string
const & tbl) {
60 return _getPtr()->getData(schema, tbl);
64 return _getPtr()->getData(schema, tbl, rect);
68 return _getPtr()->getData(schema, tbl, rect);
72 return _getPtr()->execQuery(query, params);
76 return _getPtr()->execQuery(query, params);
79 inline virtual void eraseTable(
const std::string& schema,
const std::string& tbl,
const VectorLayerType::VectorLayerType vlt) {
80 return _getPtr()->eraseTable(schema, tbl, vlt);
84 _getPtr()->execUpdate(query, params);
87 inline virtual void execUpdate(std::string
const & query) {
88 _getPtr()->execUpdate(query);
91 inline virtual void saveOrUpdate(
DataRow& row) {
92 _getPtr()->saveOrUpdate(row);
95 inline virtual void insert(
DataRow& row) {
96 _getPtr()->insert(row);
99 inline virtual void update(
DataRow& row) {
100 _getPtr()->update(row);
103 inline virtual void erase(
DataRow& row) {
104 _getPtr()->erase(row);
Definition: DataSetSh.hpp:21
Definition: EnvelopeSh.hpp:18
Specializzazione di una connessione per sorgenti dati vettoriali.
Definition: ConnectionVector.hpp:30
std::map< std::string, DataValue::DataValueShp > MapSqlParam
Mappa di parametri usata per query SQL parametriche.
Definition: DataRow.hpp:47
Classe per la gestione di un'eccezione generica.
Definition: Exception.hpp:26
Definition: ConnectionSh.hpp:21
Oggetto per l'accesso alle colonne di una riga di dati.
Definition: DataRow.hpp:32
Definition: VectorLayerInfoSh.hpp:23
Definition: ConnectionVectorSh.hpp:21