The transactor class for the PostGIS driver. More...
#include <Transactor.h>
Public Member Functions | |
void | add (const std::string &datasetName, te::da::DataSet *d, const std::map< std::string, std::string > &options, std::size_t limit=0) |
It adds data items to the dataset in the data source. More... | |
void | addCheckConstraint (const std::string &datasetName, te::da::CheckConstraint *cc) |
It adds a check constraint to the dataset. More... | |
void | addForeignKey (const std::string &datasetName, te::da::ForeignKey *fk) |
It adds a foreign key constraint to a dataset. More... | |
void | addIndex (const std::string &datasetName, te::da::Index *idx, const std::map< std::string, std::string > &options) |
It adds an index to the dataset. More... | |
void | addPrimaryKey (const std::string &datasetName, te::da::PrimaryKey *pk) |
It adds a primary key constraint to the dataset schema. More... | |
void | addProperty (const std::string &datasetName, te::dt::Property *p) |
It adds a new property to the dataset schema. More... | |
void | addSequence (te::da::Sequence *sequence) |
It creates a new sequence in the data source. More... | |
void | addUniqueKey (const std::string &datasetName, te::da::UniqueKey *uk) |
It adds a unique key constraint to the dataset. More... | |
void | begin () |
It starts a new transaction. More... | |
void | cancel () |
It requests that the data source stop the processing of the current command. More... | |
bool | checkConstraintExists (const std::string &datasetName, const std::string &name) |
It checks if a check-constraint with the given name exists in the data source. More... | |
void | cloneDataSet (const std::string &name, const std::string &cloneName, const std::map< std::string, std::string > &options) |
It clones the dataset in the data source. More... | |
void | commit () |
It commits the transaction. More... | |
void | createDataSet (te::da::DataSetType *dt, const std::map< std::string, std::string > &options) |
It creates the dataset schema definition in the target data source. More... | |
bool | dataSetExists (const std::string &name) |
It checks if a dataset with the given name exists in the data source. More... | |
void | dropCheckConstraint (const std::string &datasetName, const std::string &name) |
It removes the check constraint from the dataset. More... | |
void | dropDataSet (const std::string &name) |
It removes the dataset schema from the data source. More... | |
void | dropForeignKey (const std::string &datasetName, const std::string &fkName) |
It removes the foreign key constraint from the dataset schema. More... | |
void | dropIndex (const std::string &datasetName, const std::string &idxName) |
It removes the index from the dataset schema. More... | |
void | dropPrimaryKey (const std::string &datasetName) |
It removes the primary key constraint from the dataset schema. More... | |
void | dropProperty (const std::string &datasetName, const std::string &name) |
It removes a property from the given dataset. More... | |
void | dropSequence (const std::string &name) |
It removes the sequence from the data source. More... | |
void | dropUniqueKey (const std::string &datasetName, const std::string &name) |
It removes the unique key constraint from the dataset. More... | |
std::string | escape (const std::string &value) |
It escapes a string for using in commands and queries. More... | |
void | execute (const te::da::Query &command) |
It executes the specified command using a generic query representation. More... | |
void | execute (const std::string &command) |
It executes the specifed command in the data source native language. More... | |
bool | foreignKeyExists (const std::string &datasetName, const std::string &name) |
It checks if a foreign key with the given name exists in the data source. More... | |
std::auto_ptr < te::da::BatchExecutor > | getBatchExecutor () |
It creates a batch command executor. More... | |
std::auto_ptr < te::da::CheckConstraint > | getCheckConstraint (const std::string &datasetName, const std::string &name) |
It gets the check constraint of the dataset with the given name. More... | |
std::vector< std::string > | getCheckConstraintNames (const std::string &datasetName) |
It gets the check constraint names of the given dataset. More... | |
Connection * | getConnection () const |
It returns the underlying connection. More... | |
void | getDatabaseInfo (std::string ¤tSchema) |
It retrieves some information about the database such as the default schema used when no one is provided. More... | |
std::auto_ptr< te::da::DataSet > | getDataSet (const std::string &name, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It gets the dataset identified by the given name. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
std::auto_ptr< te::da::DataSet > | getDataSet (const std::string &name, const std::string &propertyName, const te::gm::Envelope *e, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It gets the dataset identified by the given name using a spatial filter over the specified property. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
std::auto_ptr< te::da::DataSet > | getDataSet (const std::string &name, const std::string &propertyName, const te::gm::Geometry *g, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It gets the dataset identified by the given name using a spatial filter over the given geometric property. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
std::vector< std::string > | getDataSetNames () |
It It gets the dataset names available in the data source. More... | |
std::auto_ptr < te::da::DataSetType > | getDataSetType (const std::string &name) |
It gets information about the given dataset. More... | |
te::da::DataSource * | getDataSource () const |
It returns the parent data source of the transactor. More... | |
std::auto_ptr< te::gm::Envelope > | getExtent (const std::string &datasetName, const std::string &propertyName) |
It retrieves the bounding rectangle of the spatial property for the given dataset. More... | |
std::auto_ptr< te::gm::Envelope > | getExtent (const std::string &datasetName, std::size_t propertyPos) |
It retrieves the bounding rectangle for the spatial property lying in the given position in the dataset. More... | |
std::auto_ptr< te::da::ForeignKey > | getForeignKey (const std::string &datasetName, const std::string &name) |
It retrieves the foreign key from the given dataset. More... | |
std::vector< std::string > | getForeignKeyNames (const std::string &datasetName) |
It gets the foreign key names of the given dataset. More... | |
std::string | getFullName (const std::string &name) |
It gets the full name of the given name including the schema name. More... | |
void | getGeometryInfo (const std::string &datasetName, te::gm::GeometryProperty *gp) |
It loads information about a given geometry column. More... | |
unsigned int | getGeomTypeId () |
It will check in the database catalog the number that identifies the PostGIS Geometry type. More... | |
std::auto_ptr< te::da::Index > | getIndex (const std::string &datasetName, const std::string &name) |
It gets the index with the given name from the dataset. More... | |
std::vector< std::string > | getIndexNames (const std::string &datasetName) |
It gets the index names of the given dataset. More... | |
boost::int64_t | getLastGeneratedId () |
It returns the last id generated by an insertion command. More... | |
std::size_t | getNumberOfDataSets () |
It retrieves the number of data sets available in the data source. More... | |
std::size_t | getNumberOfItems (const std::string &datasetName) |
It retrieves the number of items of the given dataset. More... | |
std::size_t | getNumberOfProperties (const std::string &datasetName) |
It gets the number of properties of the given dataset. More... | |
std::auto_ptr < te::da::PreparedQuery > | getPrepared (const std::string &qName=std::string("")) |
It creates a prepared query object that may be used for query commands (select, insert, update and delete) that are used repeatedly. More... | |
std::auto_ptr< te::da::PrimaryKey > | getPrimaryKey (const std::string &datasetName) |
It retrieves the primary key of the dataset. More... | |
boost::ptr_vector < te::dt::Property > | getProperties (const std::string &datasetName) |
It retrieves the properties of the dataset. More... | |
std::auto_ptr< te::dt::Property > | getProperty (const std::string &datasetName, const std::string &name) |
It retrieves the property with the given name from the dataset. More... | |
std::auto_ptr< te::dt::Property > | getProperty (const std::string &datasetName, std::size_t propertyPos) |
It retrieves the property lying in the given position from the dataset. More... | |
std::vector< std::string > | getPropertyNames (const std::string &datasetName) |
It gets the property names of the given dataset. More... | |
void | getRasterInfo (const std::string &datasetName, te::rst::RasterProperty *rp) |
It loads information about a given raster column. More... | |
unsigned int | getRasterTypeId () |
It will check in the database catalog the number that identifies the PostGIS Raster type. More... | |
std::auto_ptr< te::da::Sequence > | getSequence (const std::string &name) |
It gets the sequence with the given name in the data source. More... | |
std::vector< std::string > | getSequenceNames () |
It gets the sequence names available in the data source. More... | |
std::auto_ptr< te::da::UniqueKey > | getUniqueKey (const std::string &datasetName, const std::string &name) |
It gets the unique key in the dataset with the given name. More... | |
std::vector< std::string > | getUniqueKeyNames (const std::string &datasetName) |
It gets the unique key names of the given dataset. More... | |
bool | hasDataSets () |
It checks if the data source has any dataset. More... | |
bool | indexExists (const std::string &datasetName, const std::string &name) |
It checks if an index with the given name exists in the dataset. More... | |
bool | isDataSetNameValid (const std::string &datasetName) |
It returns true if the given string is a valid dataset name. More... | |
bool | isInTransaction () const |
It returns true if a transaction is in progress, otherwise, it returns false. More... | |
bool | isPropertyNameValid (const std::string &propertyName) |
It checks if the given property name is valid. More... | |
void | optimize (const std::map< std::string, std::string > &opInfo) |
For some data access drivers, this method will perform some operations to optimize the data storage. More... | |
bool | primaryKeyExists (const std::string &datasetName, const std::string &name) |
It checks if a primary key exists in the dataset. More... | |
bool | propertyExists (const std::string &datasetName, const std::string &name) |
It checks if a property with the given name exists in the dataset. More... | |
std::auto_ptr< te::da::DataSet > | query (const te::da::Select &q, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It executes a query that may return some data using a generic query. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. This method is different of the method that accepts a dataset name and a spatial filter, because it allows the retrieving of only a subset of the attributes, since a query can include a property list. More... | |
std::auto_ptr< te::da::DataSet > | query (const std::string &query, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It executes a query that may return some data using the data source native language. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
void | remove (const std::string &datasetName, const te::da::ObjectIdSet *oids=0) |
It removes all the informed items from the dataset. More... | |
void | renameDataSet (const std::string &name, const std::string &newName) |
It renames a dataset. More... | |
void | renameProperty (const std::string &datasetName, const std::string &propertyName, const std::string &newPropertyName) |
It renames a property of the given dataset. More... | |
void | rollBack () |
It aborts the transaction. Any changes will be rolled-back. More... | |
bool | sequenceExists (const std::string &name) |
It checks if a sequence with the given name exists in the data source. More... | |
Transactor (DataSource *ds, Connection *conn) | |
Constructor. More... | |
bool | uniqueKeyExists (const std::string &datasetName, const std::string &name) |
It checks if a unique key with the given name exists in the dataset. More... | |
void | update (const std::string &datasetName, te::da::DataSet *dataset, const std::vector< std::size_t > &properties, const te::da::ObjectIdSet *oids, const std::map< std::string, std::string > &options, std::size_t limit=0) |
It updates the contents of a dataset for the set of data items. More... | |
~Transactor () | |
The destructor will automatically release the connection to the pool. More... | |
DataSet Retrieval | |
Methods for retrieving data from the data source. | |
std::auto_ptr< te::da::DataSet > | getDataSet (const std::string &name, const ObjectIdSet *oids, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess) |
It gets the dataset identified by the given name using the set of objects identification. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. More... | |
Protected Member Functions | |
std::auto_ptr< te::da::DataSet > | getConstraints (const std::string &datasetName, char conType= '\0') |
It gets the dataset containing information about one of the constraints(primary, foreign or unique keys, or the check constraints) of the given dataset. If the constraint type is not specified, it gets all the constraints of the given dataset. More... | |
void | getConstraints (te::da::DataSetType *dt) |
It gets the information about all the dataset constraints(primary, foreign and unique keys, and the check constraints) and loads it on the given dataset schema. More... | |
unsigned int | getDataSetId (const std::string &datasetName) |
It looks for the dataset id in the PostgreSQL system. More... | |
std::string | getDataSetName (unsigned int id) |
It looks for a dataset name with the given id in the PostgreSQL. More... | |
void | getIndexes (te::da::DataSetType *dt) |
It gets all the indexes of the given dataset and adds them to the dummy schema. More... | |
std::auto_ptr< te::da::DataSet > | getPropertiesInfo (const std::string &datasetName) |
It gets the information about the given dataset. More... | |
std::auto_ptr< te::dt::Property > | getProperty (unsigned int pid, const std::string &datasetName) |
It retrieves a property with the given id from the given dataset. More... | |
void | getPropertyId (te::dt::Property *p) |
It sets the property id from the PostgreSQL system. More... | |
std::vector< te::da::Sequence * > | getSequences () |
It gets information about all the sequences in the datasource. More... | |
Private Attributes | |
Connection * | m_conn |
The connection used by this transactor. More... | |
DataSource * | m_ds |
The PostGIS data source associated to this transactor. More... | |
bool | m_isInTransaction |
Tells if there is a transaction in progress. More... | |
The transactor class for the PostGIS driver.
Definition at line 62 of file Transactor.h.
te::pgis::Transactor::Transactor | ( | DataSource * | ds, |
Connection * | conn | ||
) |
Constructor.
ds | The PostGIS data source associated to this transactor. |
conn | An available connection that will be released when the transactor is deleted |
Definition at line 71 of file Transactor.cpp.
te::pgis::Transactor::~Transactor | ( | ) |
The destructor will automatically release the connection to the pool.
Definition at line 78 of file Transactor.cpp.
|
virtual |
It adds data items to the dataset in the data source.
datasetName | The target dataset name. |
d | The data items to be added to the dataset. |
options | A list of optional modifiers (driver specific). |
limit | The number of items to be used from the input dataset. If set to 0 (default), all items are used. |
Exception | An exception can be thrown, if the input dataset items could not be added to the given dataset. |
Implements te::da::DataSourceTransactor.
Definition at line 1628 of file Transactor.cpp.
References te::da::ScopedTransaction::commit(), te::da::DataSet::getNumProperties(), te::da::GetPropertyDataTypes(), te::pgis::GetSQLBindValues(), te::da::GetSQLValueNames(), and te::da::DataSet::moveNext().
|
virtual |
It adds a check constraint to the dataset.
datasetName | The dataset where the constraint will be added. |
cc | The check constraint. |
Exception | An exception can be thrown, if the check constraint could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 1083 of file Transactor.cpp.
References te::da::CheckConstraint::getExpression(), and te::da::Constraint::getName().
|
virtual |
It adds a foreign key constraint to a dataset.
datasetName | The dataset where the foreign key constraint will be added. |
fk | The foreign key constraint. |
Exception | An exception can be thrown, if the foreign key could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 800 of file Transactor.cpp.
References te::da::CASCADE, te::da::Constraint::getName(), te::dt::Property::getName(), te::da::ForeignKey::getOnDeleteAction(), te::da::ForeignKey::getOnUpdateAction(), te::da::ForeignKey::getProperties(), te::da::ForeignKey::getReferencedDataSetType(), te::da::ForeignKey::getReferencedProperties(), te::da::NO_ACTION, te::da::RESTRICT, te::da::SET_DEFAULT, and te::da::SET_NULL.
|
virtual |
It adds an index to the dataset.
datasetName | The dataset where the index will be added. |
idx | The index to be added. |
options | A list of optional modifiers (driver specific). |
Exception | An exception can be thrown, if the index could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 1204 of file Transactor.cpp.
References te::da::B_TREE_TYPE, te::da::Index::getIndexType(), te::da::Index::getName(), te::da::Index::getProperties(), te::da::HASH_TYPE, te::da::R_TREE_TYPE, and TR_PGIS.
|
virtual |
It adds a primary key constraint to the dataset schema.
datasetName | The name of the dataset where the primary key will be added. |
pk | The primary key constraint. |
Exception | An exception can be thrown, if the primary key could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 657 of file Transactor.cpp.
References te::da::Constraint::getName(), te::da::PrimaryKey::getProperties(), and te::da::Constraint::setName().
|
virtual |
It adds a new property to the dataset schema.
datasetName | The dataset where the property will be added. |
p | The new property to be added. |
Exception | An exception can be thrown, if the property could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 457 of file Transactor.cpp.
References te::common::Convert2LCase(), te::common::Convert2String(), te::dt::GEOMETRY_TYPE, te::gm::GeometryType, te::gm::GetCoordDimension(), te::pgis::GetGeometryName(), te::gm::GeometryProperty::getGeometryType(), te::dt::Property::getName(), te::gm::GeometryProperty::getSRID(), te::dt::Property::getType(), te::pgis::SetColumnDef(), and te::gm::UnknownGeometryType.
|
virtual |
It creates a new sequence in the data source.
Exception | An exception can be thrown, if the sequence could not be added to the data source. |
Implements te::da::DataSourceTransactor.
Definition at line 1345 of file Transactor.cpp.
References te::common::Convert2String(), te::da::Sequence::getCachedValues(), te::da::Sequence::getIncrement(), te::da::Sequence::getMaxValue(), te::da::Sequence::getMinValue(), te::dt::Property::getName(), te::da::Sequence::getName(), te::da::Sequence::getOwner(), te::dt::Property::getParent(), te::da::Sequence::getStartValue(), te::da::Sequence::isCycled(), and te::da::Sequence::setId().
|
virtual |
It adds a unique key constraint to the dataset.
datasetName | The dataset where the unique key will be added. |
uk | The unique key constraint. |
Exception | An exception can be thrown, if the unique key could not be added to the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 983 of file Transactor.cpp.
References te::da::Constraint::getName(), and te::da::UniqueKey::getProperties().
|
virtual |
It starts a new transaction.
Implements te::da::DataSourceTransactor.
Definition at line 93 of file Transactor.cpp.
|
virtual |
It requests that the data source stop the processing of the current command.
Implements te::da::DataSourceTransactor.
Definition at line 249 of file Transactor.cpp.
|
virtual |
It checks if a check-constraint with the given name exists in the data source.
datasetName | The dataset name. |
name | The check-constraint name. |
Exception | An exception can be thrown, if the existence of the check constraint could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 1071 of file Transactor.cpp.
|
virtual |
It clones the dataset in the data source.
name | The dataset to be cloned. |
cloneName | The name of the cloned dataset. |
options | A list of optional modifiers. It is driver specific. |
Exception | An exception can be thrown, if the dataset schema could not be cloned. |
Implements te::da::DataSourceTransactor.
Definition at line 1562 of file Transactor.cpp.
References TR_PGIS.
|
virtual |
It commits the transaction.
After commiting or rolling back, you can start another transaction.
Implements te::da::DataSourceTransactor.
Definition at line 99 of file Transactor.cpp.
|
virtual |
It creates the dataset schema definition in the target data source.
If a dataset schema with the same name already exists in the target data source, this may throw an exception.
After calling this method, the dataset schema may be updated.
dt | The dataset schema to be created. It may be changed during the operation. |
options | A list of optional modifiers (driver specific). |
Implements te::da::DataSourceTransactor.
Definition at line 1482 of file Transactor.cpp.
References te::da::DataSetType::getCheckConstraint(), te::da::DataSetType::getForeignKey(), te::da::DataSetType::getIndex(), te::da::Constraint::getName(), te::dt::Property::getName(), te::da::DataSetType::getNumberOfCheckConstraints(), te::da::DataSetType::getNumberOfForeignKeys(), te::da::DataSetType::getNumberOfIndexes(), te::da::DataSetType::getNumberOfUniqueKeys(), te::da::DataSetType::getPrimaryKey(), te::dt::CompositeProperty::getProperty(), te::da::DataSetType::getUniqueKey(), te::da::PrimaryKey::setAssociatedIndex(), te::da::UniqueKey::setAssociatedIndex(), te::dt::Property::setId(), and te::dt::CompositeProperty::size().
|
virtual |
It checks if a dataset with the given name exists in the data source.
name | The dataset name. |
Exception | An exception can be thrown, if the existence of a dataset in the data source could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 1470 of file Transactor.cpp.
|
virtual |
It removes the check constraint from the dataset.
datasetName | The dataset from where the check constraint will be removed. |
name | The check constraint to be removed. |
Exception | An exception can be thrown, if the check constraint could not be removed from the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 1100 of file Transactor.cpp.
|
virtual |
It removes the dataset schema from the data source.
name | The dataset name whose schema will be removed from the data source. |
Exception | An exception can be thrown, if the dataset could not be removed from the data source. |
Implements te::da::DataSourceTransactor.
Definition at line 1569 of file Transactor.cpp.
References te::common::Convert2LCase(), and te::pgis::SplitTableName().
|
virtual |
It removes the foreign key constraint from the dataset schema.
datasetName | The dataset where the foreign key will be removed. |
fkName | The foreign key to be removed. |
Exception | An exception can be thrown, if the foreign key could not be removed from the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 889 of file Transactor.cpp.
|
virtual |
It removes the index from the dataset schema.
datasetName | The dataset where the index will be removed. |
idxName | The index to be removed. |
Exception | An exception can be thrown, if the index could not be removed from the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 1253 of file Transactor.cpp.
|
virtual |
It removes the primary key constraint from the dataset schema.
datasetName | The dataset from where the primary key will be removed. |
Exception | An exception can be thrown, if the primary key could not be dropped from the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 702 of file Transactor.cpp.
|
virtual |
It removes a property from the given dataset.
datasetName | The dataset from where the given property will be removed. |
name | The property to be removed from the dataset. |
Exception | An exception can be thrown, if the dataset property could not be removed. |
Implements te::da::DataSourceTransactor.
Definition at line 511 of file Transactor.cpp.
References te::common::Convert2LCase(), and te::dt::GEOMETRY_TYPE.
|
virtual |
It removes the sequence from the data source.
name | The sequence that will be removed. |
Exception | An exception can be thrown, if the sequence could not be removed from the data source. |
Implements te::da::DataSourceTransactor.
Definition at line 1382 of file Transactor.cpp.
|
virtual |
It removes the unique key constraint from the dataset.
datasetName | The dataset from where the unique key will be removed. |
name | The unique key constraint name. |
Exception | An exception can be thrown, if the unique key could not be removed from the dataset schema. |
Implements te::da::DataSourceTransactor.
Definition at line 1012 of file Transactor.cpp.
|
virtual |
It escapes a string for using in commands and queries.
value | Any string. |
Implements te::da::DataSourceTransactor.
Definition at line 258 of file Transactor.cpp.
|
virtual |
It executes the specified command using a generic query representation.
command | A query like: CREATE, DROP, ALTER, INSERT, UPDATE, DELETE. |
Exception | It can throw an exception, if the query cannot be performed. |
Implements te::da::DataSourceTransactor.
Definition at line 224 of file Transactor.cpp.
References te::common::BaseVisitable< T, R >::accept().
|
virtual |
It executes the specifed command in the data source native language.
command | A query string in the data source native language (like: CREATE, DROP, ALTER, INSERT, UPDATE, DELETE). |
Exception | It can throw an exception, if the query cannot be performed. |
Implements te::da::DataSourceTransactor.
Definition at line 234 of file Transactor.cpp.
|
virtual |
It checks if a foreign key with the given name exists in the data source.
datasetName | The dataset name. |
name | The foreign key name. |
Exception | An exception can be thrown, if the existence of the foreign key could not be obtained. |
Implements te::da::DataSourceTransactor.
Definition at line 789 of file Transactor.cpp.
|
virtual |
It creates a batch command executor.
Exception | An exception can be thrown if the batch command executor cannot be performed. |
Implements te::da::DataSourceTransactor.
Definition at line 244 of file Transactor.cpp.
|
virtual |
It gets the check constraint of the dataset with the given name.
datasetName | The dataset name. |
name | The check constraint name. |
Exception | An exception can be thrown, if the check constraint could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1028 of file Transactor.cpp.
References te::da::CheckConstraint::setExpression(), and te::da::Constraint::setId().
|
virtual |
It gets the check constraint names of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the check constraint names could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1053 of file Transactor.cpp.
te::pgis::Connection * te::pgis::Transactor::getConnection | ( | ) | const |
It returns the underlying connection.
Definition at line 88 of file Transactor.cpp.
Referenced by te::pgis::PreparedQuery::PreparedQuery().
|
protected |
It gets the dataset containing information about one of the constraints(primary, foreign or unique keys, or the check constraints) of the given dataset. If the constraint type is not specified, it gets all the constraints of the given dataset.
datasetName | The dataset name. |
conType | The type of constraint to be retrieved. If this value is '\0' all the types are retrieved. |
Definition at line 2112 of file Transactor.cpp.
References te::common::Convert2String().
|
protected |
It gets the information about all the dataset constraints(primary, foreign and unique keys, and the check constraints) and loads it on the given dataset schema.
dt | The dataset schema. |
Definition at line 2132 of file Transactor.cpp.
References te::da::ForeignKey::add(), te::da::PrimaryKey::add(), te::da::DataSetType::add(), te::da::ForeignKey::addRefProperty(), te::common::Convert2String(), te::pgis::GetAction(), te::dt::Property::getId(), te::da::Constraint::getName(), te::dt::Property::getName(), te::dt::CompositeProperty::getPropertyById(), te::da::PrimaryKey::setAssociatedIndex(), te::da::CheckConstraint::setExpression(), te::da::Constraint::setId(), te::da::ForeignKey::setOnDeleteAction(), te::da::ForeignKey::setOnUpdateAction(), and te::da::ForeignKey::setReferencedDataSetType().
void te::pgis::Transactor::getDatabaseInfo | ( | std::string & | currentSchema | ) |
It retrieves some information about the database such as the default schema used when no one is provided.
currentSchema | A reference to output the current schema. |
Exception | It throws an exception if it was not possible to query the database. |
Definition at line 1836 of file Transactor.cpp.
References TR_PGIS.
Referenced by te::pgis::DataSource::open().
|
virtual |
It gets the dataset identified by the given name. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
name | The dataset name. |
accessPolicy | Access policy. |
travType | The traverse type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
Exception | It can throw an exception if:
|
Implements te::da::DataSourceTransactor.
Definition at line 116 of file Transactor.cpp.
References te::pgis::Convert2TerraLib().
|
virtual |
It gets the dataset identified by the given name using a spatial filter over the specified property. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
name | The dataset name. |
propertyName | The name of the spatial property that will be used to apply the spatial filter. |
e | A rectangle to be used as a spatial filter when retrieving datasets. |
r | The spatial relation to be used during the filter. |
accessPolicy | Access policy. |
travType | The traversal type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
Exception | It can throw an exception if:
|
Implements te::da::DataSourceTransactor.
Definition at line 132 of file Transactor.cpp.
References te::pgis::Convert2PostGIS(), te::pgis::Convert2TerraLib(), te::pgis::GetBoxSpatialRelation(), te::gm::GeometryProperty::getSRID(), and TR_PGIS.
|
virtual |
It gets the dataset identified by the given name using a spatial filter over the given geometric property. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
name | The dataset name. |
propertyName | The name of the spatial property that will be used to apply the spatial filter. |
g | The geometry that will be used as a spatial filter when retrieving the dataset. |
r | The spatial relation that will be used during the filtering. |
accessPolicy | Access policy. |
travType | The traverse type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
Exception | It can throw an exception if:
|
Implements te::da::DataSourceTransactor.
Definition at line 165 of file Transactor.cpp.
References te::pgis::Convert2PostGIS(), te::pgis::Convert2TerraLib(), te::pgis::GetSpatialRelation(), and TR_PGIS.
|
inherited |
It gets the dataset identified by the given name using the set of objects identification. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
name | The dataset name of the dataset. |
oids | A pointer for the set of objects. Do not pass null, nor an empty set. |
accessPolicy | Access policy. |
travType | The traverse type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
Exception | It can throw an exception if:
|
Definition at line 49 of file DataSourceTransactor.cpp.
References te::da::ObjectIdSet::getExpression(), and te::da::ObjectIdSet::size().
|
protected |
It looks for the dataset id in the PostgreSQL system.
datasetName | Dataset name. If it has no schema prefix name, it will look the dataset id in the default schema. |
Exception | It throws an exception, if it was not possible to get the dataset id. |
Definition at line 1988 of file Transactor.cpp.
References te::common::Convert2LCase(), te::pgis::SplitTableName(), and TR_PGIS.
|
protected |
It looks for a dataset name with the given id in the PostgreSQL.
id | The dataset id. |
Exception | It throws an exception if it was not possible to retrieve the information. |
Definition at line 2014 of file Transactor.cpp.
References te::common::Convert2String(), and TR_PGIS.
|
virtual |
It It gets the dataset names available in the data source.
Exception | An exception can be thrown, if the dataset names could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 273 of file Transactor.cpp.
|
virtual |
It gets information about the given dataset.
This method can provide the following information about a dataset:
name | The name of the dataset we are looking information for. |
Exception | An exception can be thrown, if the information about the dataset could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 301 of file Transactor.cpp.
References te::da::DataSetType::add(), te::dt::Property::clone(), and te::da::DataSetType::setTitle().
|
virtual |
It returns the parent data source of the transactor.
Implements te::da::DataSourceTransactor.
Definition at line 83 of file Transactor.cpp.
|
virtual |
It retrieves the bounding rectangle of the spatial property for the given dataset.
datasetName | The dataset name. |
propertyName | The spatial property name. |
Exception | An exception can be thrown, if the extent of the geometry property could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1392 of file Transactor.cpp.
References te::pgis::GetEnvelope(), and TR_PGIS.
|
virtual |
It retrieves the bounding rectangle for the spatial property lying in the given position in the dataset.
datasetName | The dataset name. |
propertyPos | The spatial property position. |
Exception | An exception can be thrown, if the extent of the geometry property lying in the given position could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1422 of file Transactor.cpp.
References te::pgis::GetEnvelope(), and TR_PGIS.
|
virtual |
It retrieves the foreign key from the given dataset.
datasetName | The dataset name. |
name | The foreign key name. |
Exception | An exception can be thrown, if the foreign key could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 717 of file Transactor.cpp.
References te::da::ForeignKey::add(), te::da::ForeignKey::addRefProperty(), te::pgis::GetAction(), te::da::ForeignKey::setOnDeleteAction(), te::da::ForeignKey::setOnUpdateAction(), and te::da::ForeignKey::setReferencedDataSetType().
|
virtual |
It gets the foreign key names of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the foreign key names could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 772 of file Transactor.cpp.
std::string te::pgis::Transactor::getFullName | ( | const std::string & | name | ) |
It gets the full name of the given name including the schema name.
name | The dataset name. |
Definition at line 1976 of file Transactor.cpp.
void te::pgis::Transactor::getGeometryInfo | ( | const std::string & | datasetName, |
te::gm::GeometryProperty * | gp | ||
) |
It loads information about a given geometry column.
datasetName | The name of the dataset containing the geometric property. |
gp | The geometric columns to load its information. |
It | throws an exception if it can not load the information. |
Definition at line 1848 of file Transactor.cpp.
References te::gm::GeometryType, te::gm::Geometry::getGeomTypeId(), te::dt::Property::getName(), te::gm::GeometryProperty::setGeometryType(), te::gm::GeometryProperty::setSRID(), and te::pgis::SplitTableName().
unsigned int te::pgis::Transactor::getGeomTypeId | ( | ) |
It will check in the database catalog the number that identifies the PostGIS Geometry type.
Exception | It may throws an exception. |
Definition at line 1808 of file Transactor.cpp.
Referenced by te::pgis::DataSource::open().
|
virtual |
It gets the index with the given name from the dataset.
datasetName | The dataset name. |
name | The index name. |
Exception | An exception can be thrown, if the index could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1112 of file Transactor.cpp.
References te::da::Index::add(), te::common::Convert2String(), and te::pgis::GetIndexType().
|
protected |
It gets all the indexes of the given dataset and adds them to the dummy schema.
dt | The dataset schema. |
Definition at line 2292 of file Transactor.cpp.
References te::da::Index::add(), te::common::Convert2String(), te::dt::Property::getId(), te::pgis::GetIndexType(), te::da::Constraint::getName(), te::dt::Property::getName(), te::da::DataSetType::getPrimaryKey(), te::dt::CompositeProperty::getPropertyById(), te::da::DataSetType::getUniqueKey(), te::da::PrimaryKey::setAssociatedIndex(), and te::da::UniqueKey::setAssociatedIndex().
|
virtual |
It gets the index names of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the index names could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1164 of file Transactor.cpp.
References te::common::Convert2String().
|
virtual |
It returns the last id generated by an insertion command.
Implements te::da::DataSourceTransactor.
Definition at line 253 of file Transactor.cpp.
References TR_PGIS.
|
virtual |
It retrieves the number of data sets available in the data source.
Exception | An exception can be thrown, if the number of datasets could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 296 of file Transactor.cpp.
|
virtual |
It retrieves the number of items of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the number of items of the dataset could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1454 of file Transactor.cpp.
|
virtual |
It gets the number of properties of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the number of dataset properties could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 439 of file Transactor.cpp.
|
virtual |
It creates a prepared query object that may be used for query commands (select, insert, update and delete) that are used repeatedly.
qName | The prepared query name. |
Exception | An exception can be thrown if the prepared query cannot be performed. |
Implements te::da::DataSourceTransactor.
Definition at line 239 of file Transactor.cpp.
|
virtual |
It retrieves the primary key of the dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the primary key could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 599 of file Transactor.cpp.
References te::da::PrimaryKey::add(), te::da::Constraint::getName(), and te::da::PrimaryKey::setAssociatedIndex().
|
virtual |
It retrieves the properties of the dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the dataset properties could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 329 of file Transactor.cpp.
References te::pgis::Convert2TerraLib(), te::dt::GEOMETRY_TYPE, te::dt::Property::getType(), and te::dt::RASTER_TYPE.
|
protected |
It gets the information about the given dataset.
datasetName | The dataset name. |
Exception | It throws an exception if it was not possible to get the information needed. |
Definition at line 2035 of file Transactor.cpp.
References te::common::Convert2String().
|
virtual |
It retrieves the property with the given name from the dataset.
datasetName | The dataset name. |
propertyName | The property name. |
Exception | An exception can be thrown, if the dataset property could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 367 of file Transactor.cpp.
References te::pgis::Convert2TerraLib(), te::dt::GEOMETRY_TYPE, te::dt::Property::getType(), and te::dt::RASTER_TYPE.
|
virtual |
It retrieves the property lying in the given position from the dataset.
datasetName | The dataset name. |
propertyPos | The property position. |
Exception | An exception can be thrown, if the property lying in the given position could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 412 of file Transactor.cpp.
|
protected |
It retrieves a property with the given id from the given dataset.
pid | The property id. |
datasetName | The dataset name. |
Definition at line 2074 of file Transactor.cpp.
References te::common::Convert2String(), te::pgis::Convert2TerraLib(), and te::dt::GEOMETRY_TYPE.
|
protected |
It sets the property id from the PostgreSQL system.
p | The property whose oid will be set from PostgreSQL system tables. |
Exception | It throws an exception if it was not possible to set the oid information. |
Definition at line 2052 of file Transactor.cpp.
References te::common::Convert2LCase(), te::common::Convert2String(), te::dt::DATASET_TYPE, te::dt::Property::getId(), te::dt::Property::getName(), te::dt::Property::getParent(), te::dt::Property::getType(), te::dt::Property::setId(), and TR_PGIS.
|
virtual |
It gets the property names of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the property names of the dataset could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 423 of file Transactor.cpp.
void te::pgis::Transactor::getRasterInfo | ( | const std::string & | datasetName, |
te::rst::RasterProperty * | rp | ||
) |
It loads information about a given raster column.
datasetName | The name of the dataset containing the geometric property. |
rp | The raster column to load its information. |
It | throws an exception if it can not load the information. |
Definition at line 1884 of file Transactor.cpp.
References te::rst::RasterProperty::add(), te::dt::CHAR_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::Property::getName(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_noDataValue, te::rst::RasterProperty::set(), te::pgis::SplitTableName(), TR_PGIS, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UNKNOWN_TYPE.
unsigned int te::pgis::Transactor::getRasterTypeId | ( | ) |
It will check in the database catalog the number that identifies the PostGIS Raster type.
Exception | It may throws an exception. |
Definition at line 1822 of file Transactor.cpp.
Referenced by te::pgis::DataSource::open().
|
virtual |
It gets the sequence with the given name in the data source.
name | The sequence name. |
Exception | An exception can be thrown, if the sequence could not be retrieved from the data source. |
Implements te::da::DataSourceTransactor.
Definition at line 1263 of file Transactor.cpp.
References te::da::Sequence::setAsCycle(), te::da::Sequence::setAsNoCycle(), te::da::Sequence::setCachedValues(), te::da::Sequence::setIncrement(), te::da::Sequence::setMaxValue(), and te::da::Sequence::setMinValue().
|
virtual |
It gets the sequence names available in the data source.
Exception | An exception can be thrown, if the sequence names could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 1313 of file Transactor.cpp.
|
protected |
It gets information about all the sequences in the datasource.
It | throws an exception if the sequences cannot be loaded. |
Definition at line 2349 of file Transactor.cpp.
References te::da::Sequence::setAsCycle(), te::da::Sequence::setAsNoCycle(), te::da::Sequence::setCachedValues(), te::da::Sequence::setIncrement(), te::da::Sequence::setMaxValue(), te::da::Sequence::setMinValue(), and TR_PGIS.
|
virtual |
It gets the unique key in the dataset with the given name.
datasetName | The dataset name. |
name | The unique key name. |
Exception | An exception can be thrown, if the unique key could not be retrieved. |
Implements te::da::DataSourceTransactor.
Definition at line 901 of file Transactor.cpp.
References te::da::Constraint::getName(), and te::da::UniqueKey::setAssociatedIndex().
|
virtual |
It gets the unique key names of the given dataset.
datasetName | The dataset name. |
Exception | An exception can be thrown, if the unique key names could not be obtained. |
Implements te::da::DataSourceTransactor.
Definition at line 954 of file Transactor.cpp.
|
virtual |
It checks if the data source has any dataset.
Exception | An exception can be thrown, if it is not possible to check if the data source has datasets . |
Implements te::da::DataSourceTransactor.
Definition at line 1460 of file Transactor.cpp.
|
virtual |
It checks if an index with the given name exists in the dataset.
datasetName | The dataset name. |
name | The index name. |
Exception | An exception can be thrown, if the index existence could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 1192 of file Transactor.cpp.
|
virtual |
It returns true if the given string is a valid dataset name.
datasetName | A dataset name whose validity will be checked. |
Implements te::da::DataSourceTransactor.
Definition at line 263 of file Transactor.cpp.
|
virtual |
It returns true if a transaction is in progress, otherwise, it returns false.
Implements te::da::DataSourceTransactor.
Definition at line 111 of file Transactor.cpp.
|
virtual |
It checks if the given property name is valid.
propertyName | A property name whose validity will be checked. |
Implements te::da::DataSourceTransactor.
Definition at line 268 of file Transactor.cpp.
|
virtual |
For some data access drivers, this method will perform some operations to optimize the data storage.
This is can be a typical maintenance command in database systems (like vacuum).
opInfo | Any information needed by the underlying driver in order to fine tune the optimization. |
Exception | It may throw an exception if something goes wrong. |
Implements te::da::DataSourceTransactor.
Definition at line 1803 of file Transactor.cpp.
References TR_PGIS.
|
virtual |
It checks if a primary key exists in the dataset.
datasetName | The dataset name. |
name | The primary key name. |
Exception | An exception can be thrown, if the existence of the primary key could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 645 of file Transactor.cpp.
|
virtual |
It checks if a property with the given name exists in the dataset.
datasetName | The dataset name. |
name | The property name. |
Exception | An exception can be thrown, if the existence of the dataset property could not be obtained. |
Implements te::da::DataSourceTransactor.
Definition at line 445 of file Transactor.cpp.
|
virtual |
It executes a query that may return some data using a generic query. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source. This method is different of the method that accepts a dataset name and a spatial filter, because it allows the retrieving of only a subset of the attributes, since a query can include a property list.
Exception | It can throw an exception if:
|
q | A valid query object. |
travType | The traverse type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
accessPolicy | Access policy. |
Implements te::da::DataSourceTransactor.
Definition at line 198 of file Transactor.cpp.
References te::common::BaseVisitable< T, R >::accept().
|
virtual |
It executes a query that may return some data using the data source native language. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
query | A query string in the data source native language. |
travType | The traverse type associated to the returned dataset. |
connected | A flag to indicate if the returned dataset is connected or not. |
accessPolicy | Access policy. |
Exception | It can throw an exception if:
|
Implements te::da::DataSourceTransactor.
Definition at line 211 of file Transactor.cpp.
References te::pgis::Convert2TerraLib().
|
virtual |
It removes all the informed items from the dataset.
It removes all the data items from a dataset which are identified by a set of object identifiers. If this set is not informed, all items will be removed.
datasetName | The dataset name. |
oids | A list of object identifiers used to remove data from the datasource, or NULL for all. |
Exception | An exception can be thrown, if the data items could not be removed. |
Implements te::da::DataSourceTransactor.
Definition at line 1665 of file Transactor.cpp.
References TR_PGIS.
|
virtual |
It renames a dataset.
name | The name of the dataset to be renamed. |
newName | The new dataset name. |
Exception | An exception can be thrown, if the dataset could not be renamed. |
Implements te::da::DataSourceTransactor.
Definition at line 1595 of file Transactor.cpp.
References te::pgis::SplitTableName().
|
virtual |
It renames a property of the given dataset.
datasetName | The dataset containig the property to be renamed. |
propertyName | The property to be renamed from the dataset. |
newPropertyName | The new property name. |
Exception | An exception can be thrown, if the dataset property could not be renamed. |
Implements te::da::DataSourceTransactor.
Definition at line 554 of file Transactor.cpp.
References te::dt::GEOMETRY_TYPE.
|
virtual |
It aborts the transaction. Any changes will be rolled-back.
After commiting or rolling back, you can start another transaction.
Implements te::da::DataSourceTransactor.
Definition at line 105 of file Transactor.cpp.
|
virtual |
It checks if a sequence with the given name exists in the data source.
name | The sequence name. |
Exception | An exception can be thrown, if the index existence could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 1335 of file Transactor.cpp.
|
virtual |
It checks if a unique key with the given name exists in the dataset.
datasetName | The dataset name. |
name | The unique key name. |
Exception | An exception can be thrown, if the existence of the unique key could not be determined. |
Implements te::da::DataSourceTransactor.
Definition at line 971 of file Transactor.cpp.
|
virtual |
It updates the contents of a dataset for the set of data items.
datasetName | The target dataset name. |
dataset | The list of data items to be updated. |
properties | The list of properties of the dataset to be updated. |
oids | The list of objects to be updated. |
options | A list of optional modifiers. It is driver specific. |
limit | The number of items to be used from the input dataset. If set to 0 (default) all items are used. |
Exception | An exception can be thrown, if the dataset could not be updated. |
Implements te::da::DataSourceTransactor.
Definition at line 1745 of file Transactor.cpp.
References TR_PGIS.
|
private |
The connection used by this transactor.
Definition at line 464 of file Transactor.h.
|
private |
The PostGIS data source associated to this transactor.
Definition at line 463 of file Transactor.h.
|
private |
Tells if there is a transaction in progress.
Definition at line 465 of file Transactor.h.