A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things into it. More...
#include <DataSourceTransactor.h>
Public Member Functions | |
DataSourceTransactor () | |
Default constructor that can be called by subclasses. More... | |
virtual DataSource * | getDataSource () const =0 |
It returns the parent data source of the transactor. More... | |
virtual | ~DataSourceTransactor () |
Virtual destructor. More... | |
Transaction | |
Methods for dealing with transactions. | |
virtual void | begin ()=0 |
It starts a new transaction. More... | |
virtual void | commit ()=0 |
It commits the transaction. More... | |
virtual void | rollBack ()=0 |
It aborts the transaction. Any changes will be rolled-back. More... | |
virtual bool | isInTransaction () const =0 |
It returns true if a transaction is in progress, otherwise, it returns false. More... | |
DataSet Retrieval | |
Methods for retrieving data from the data source. | |
virtual std::auto_ptr< DataSet > | getDataSet (const std::string &name, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess)=0 |
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... | |
virtual std::auto_ptr< 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)=0 |
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... | |
virtual std::auto_ptr< 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)=0 |
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::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... | |
virtual std::auto_ptr< DataSet > | query (const Select &q, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess)=0 |
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... | |
virtual std::auto_ptr< DataSet > | query (const std::string &query, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess)=0 |
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... | |
Command Execution Methods | |
Methods for executing commands against the data source. | |
virtual void | execute (const Query &command)=0 |
It executes the specified command using a generic query representation. More... | |
virtual void | execute (const std::string &command)=0 |
It executes the specifed command in the data source native language. More... | |
Fine Grained Transactor Objects | |
Methods for retrieving fine-grained transactor objects. | |
virtual std::auto_ptr< PreparedQuery > | getPrepared (const std::string &qName=std::string(""))=0 |
It creates a prepared query object that may be used for query commands (select, insert, update and delete) that are used repeatedly. More... | |
virtual std::auto_ptr< BatchExecutor > | getBatchExecutor ()=0 |
It creates a batch command executor. More... | |
Auxiliary Commands for Commands and Queries | |
Auxiliary methods for commands and queries. | |
virtual void | cancel ()=0 |
It requests that the data source stop the processing of the current command. More... | |
virtual boost::int64_t | getLastGeneratedId ()=0 |
It returns the last id generated by an insertion command. More... | |
virtual std::string | escape (const std::string &value)=0 |
It escapes a string for using in commands and queries. More... | |
virtual bool | isDataSetNameValid (const std::string &datasetName) |
It returns true if the given string is a valid dataset name. More... | |
virtual bool | isPropertyNameValid (const std::string &propertyName) |
It checks if the given property name is valid. More... | |
Dataset Metadata Retrieval | |
Methods for retrieving metadata about the datasets of the data source. | |
virtual std::vector< std::string > | getDataSetNames ()=0 |
It It gets the dataset names available in the data source. More... | |
virtual std::size_t | getNumberOfDataSets ()=0 |
It retrieves the number of data sets available in the data source. More... | |
virtual std::auto_ptr< te::da::DataSetType > | getDataSetType (const std::string &name)=0 |
It gets information about the given dataset. More... | |
virtual std::auto_ptr< te::da::DataSetTypeCapabilities > | getCapabilities (const std::string &name) |
It gets capabilities about a data set. More... | |
virtual boost::ptr_vector< te::dt::Property > | getProperties (const std::string &datasetName)=0 |
It retrieves the properties of the dataset. More... | |
virtual std::auto_ptr< te::dt::Property > | getProperty (const std::string &datasetName, const std::string &name)=0 |
It retrieves the property with the given name from the dataset. More... | |
virtual std::auto_ptr< te::dt::Property > | getProperty (const std::string &datasetName, std::size_t propertyPos)=0 |
It retrieves the property lying in the given position from the dataset. More... | |
virtual std::vector< std::string > | getPropertyNames (const std::string &datasetName)=0 |
It gets the property names of the given dataset. More... | |
virtual std::size_t | getNumberOfProperties (const std::string &datasetName)=0 |
It gets the number of properties of the given dataset. More... | |
virtual bool | propertyExists (const std::string &datasetName, const std::string &name)=0 |
It checks if a property with the given name exists in the dataset. More... | |
virtual void | addProperty (const std::string &datasetName, te::dt::Property *p)=0 |
It adds a new property to the dataset schema. More... | |
virtual void | dropProperty (const std::string &datasetName, const std::string &name)=0 |
It removes a property from the given dataset. More... | |
virtual void | renameProperty (const std::string &datasetName, const std::string &propertyName, const std::string &newPropertyName)=0 |
It renames a property of the given dataset. More... | |
virtual void | changePropertyDefinition (const std::string &datasetName, const std::string &propName, te::dt::Property *newProp) |
virtual std::auto_ptr< te::da::PrimaryKey > | getPrimaryKey (const std::string &datasetName)=0 |
It retrieves the primary key of the dataset. More... | |
virtual bool | primaryKeyExists (const std::string &datasetName, const std::string &name)=0 |
It checks if a primary key exists in the dataset. More... | |
virtual void | addPrimaryKey (const std::string &datasetName, PrimaryKey *pk)=0 |
It adds a primary key constraint to the dataset schema. More... | |
virtual void | dropPrimaryKey (const std::string &datasetName)=0 |
It removes the primary key constraint from the dataset schema. More... | |
virtual std::auto_ptr< ForeignKey > | getForeignKey (const std::string &datasetName, const std::string &name)=0 |
It retrieves the foreign key from the given dataset. More... | |
virtual std::vector< std::string > | getForeignKeyNames (const std::string &datasetName)=0 |
It gets the foreign key names of the given dataset. More... | |
virtual bool | foreignKeyExists (const std::string &datasetName, const std::string &name)=0 |
It checks if a foreign key with the given name exists in the data source. More... | |
virtual void | addForeignKey (const std::string &datasetName, ForeignKey *fk)=0 |
It adds a foreign key constraint to a dataset. More... | |
virtual void | dropForeignKey (const std::string &datasetName, const std::string &fkName)=0 |
It removes the foreign key constraint from the dataset schema. More... | |
virtual std::auto_ptr< te::da::UniqueKey > | getUniqueKey (const std::string &datasetName, const std::string &name)=0 |
It gets the unique key in the dataset with the given name. More... | |
virtual std::vector< std::string > | getUniqueKeyNames (const std::string &datasetName)=0 |
It gets the unique key names of the given dataset. More... | |
virtual bool | uniqueKeyExists (const std::string &datasetName, const std::string &name)=0 |
It checks if a unique key with the given name exists in the dataset. More... | |
virtual void | addUniqueKey (const std::string &datasetName, UniqueKey *uk)=0 |
It adds a unique key constraint to the dataset. More... | |
virtual void | dropUniqueKey (const std::string &datasetName, const std::string &name)=0 |
It removes the unique key constraint from the dataset. More... | |
virtual std::auto_ptr< te::da::CheckConstraint > | getCheckConstraint (const std::string &datasetName, const std::string &name)=0 |
It gets the check constraint of the dataset with the given name. More... | |
virtual std::vector< std::string > | getCheckConstraintNames (const std::string &datasetName)=0 |
It gets the check constraint names of the given dataset. More... | |
virtual bool | checkConstraintExists (const std::string &datasetName, const std::string &name)=0 |
It checks if a check-constraint with the given name exists in the data source. More... | |
virtual void | addCheckConstraint (const std::string &datasetName, CheckConstraint *cc)=0 |
It adds a check constraint to the dataset. More... | |
virtual void | dropCheckConstraint (const std::string &datasetName, const std::string &name)=0 |
It removes the check constraint from the dataset. More... | |
virtual std::auto_ptr< te::da::Index > | getIndex (const std::string &datasetName, const std::string &name)=0 |
It gets the index with the given name from the dataset. More... | |
virtual std::vector< std::string > | getIndexNames (const std::string &datasetName)=0 |
It gets the index names of the given dataset. More... | |
virtual bool | indexExists (const std::string &datasetName, const std::string &name)=0 |
It checks if an index with the given name exists in the dataset. More... | |
virtual void | addIndex (const std::string &datasetName, Index *idx, const std::map< std::string, std::string > &options)=0 |
It adds an index to the dataset. More... | |
virtual void | dropIndex (const std::string &datasetName, const std::string &idxName)=0 |
It removes the index from the dataset schema. More... | |
virtual std::auto_ptr< Sequence > | getSequence (const std::string &name)=0 |
It gets the sequence with the given name in the data source. More... | |
virtual std::vector< std::string > | getSequenceNames ()=0 |
It gets the sequence names available in the data source. More... | |
virtual bool | sequenceExists (const std::string &name)=0 |
It checks if a sequence with the given name exists in the data source. More... | |
virtual void | addSequence (Sequence *sequence)=0 |
It creates a new sequence in the data source. More... | |
virtual void | dropSequence (const std::string &name)=0 |
It removes the sequence from the data source. More... | |
virtual std::auto_ptr< te::gm::Envelope > | getExtent (const std::string &datasetName, const std::string &propertyName)=0 |
It retrieves the bounding rectangle of the spatial property for the given dataset. More... | |
virtual std::auto_ptr< te::gm::Envelope > | getExtent (const std::string &datasetName, std::size_t propertyPos)=0 |
It retrieves the bounding rectangle for the spatial property lying in the given position in the dataset. More... | |
virtual std::size_t | getNumberOfItems (const std::string &datasetName)=0 |
It retrieves the number of items of the given dataset. More... | |
virtual bool | hasDataSets ()=0 |
It checks if the data source has any dataset. More... | |
virtual bool | dataSetExists (const std::string &name)=0 |
It checks if a dataset with the given name exists in the data source. More... | |
Dataset Schema Persistence Methods | |
Methods for dealing with datasource and dataset schema changes. | |
virtual void | createDataSet (DataSetType *dt, const std::map< std::string, std::string > &options)=0 |
It creates the dataset schema definition in the target data source. More... | |
virtual void | cloneDataSet (const std::string &name, const std::string &cloneName, const std::map< std::string, std::string > &options)=0 |
It clones the dataset in the data source. More... | |
virtual void | dropDataSet (const std::string &name)=0 |
It removes the dataset schema from the data source. More... | |
virtual void | renameDataSet (const std::string &name, const std::string &newName)=0 |
It renames a dataset. More... | |
Dataset Persistence Methods | |
Methods for dealing with the persistence of data in a data source. | |
virtual void | add (const std::string &datasetName, DataSet *d, const std::map< std::string, std::string > &options, std::size_t limit=0)=0 |
It adds data items to the dataset in the data source. More... | |
virtual void | remove (const std::string &datasetName, const ObjectIdSet *oids=0)=0 |
It removes all the informed items from the dataset. More... | |
virtual void | update (const std::string &datasetName, DataSet *dataset, const std::vector< std::size_t > &properties, const ObjectIdSet *oids, const std::map< std::string, std::string > &options, std::size_t limit=0)=0 |
It updates the contents of a dataset for the set of data items. More... | |
virtual void | update (const std::string &datasetName, DataSet *dataset, const std::vector< std::set< int > > &properties, const std::vector< size_t > &ids) |
It updates the contents of a dataset. More... | |
virtual void | optimize (const std::map< std::string, std::string > &opInfo)=0 |
For some data access drivers, this method will perform some operations to optimize the data storage. More... | |
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things into it.
A transactor can be used to create a transaction, a prepared query or a batch command executor.
If you are planning a multi-thread application, it is better not to share the same transactor between threads because its methods are not thread-safe. Instead, use one transactor per thread.
Definition at line 88 of file DataSourceTransactor.h.
te::da::DataSourceTransactor::DataSourceTransactor | ( | ) |
Default constructor that can be called by subclasses.
|
virtual |
Virtual destructor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure virtual |
It starts a new transaction.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure virtual |
It requests that the data source stop the processing of the current command.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
virtual |
Reimplemented in te::pgis::Transactor, te::ado::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure virtual |
It commits the transaction.
After commiting or rolling back, you can start another transaction.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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). |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure virtual |
It escapes a string for using in commands and queries.
value | Any string. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure virtual |
It creates a batch command executor.
Exception | An exception can be thrown if the batch command executor cannot be performed. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
virtual |
It gets capabilities about a data set.
name | Name of the dataset. |
Reimplemented in te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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:
|
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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:
|
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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:
|
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
std::auto_ptr<te::da::DataSet> te::da::DataSourceTransactor::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.
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:
|
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure virtual |
It returns the parent data source of the transactor.
Implemented in te::pgis::Transactor, te::gdal::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure virtual |
It returns the last id generated by an insertion command.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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 . |
Implemented in te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
virtual |
It returns true if the given string is a valid dataset name.
datasetName | A dataset name whose validity will be checked. |
Reimplemented in te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, and te::wfs::Transactor.
|
pure virtual |
It returns true if a transaction is in progress, otherwise, it returns false.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
virtual |
It checks if the given property name is valid.
propertyName | A property name whose validity will be checked. |
Reimplemented in te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, and te::wfs::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::gdal::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::wfs::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::ado::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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:
|
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
pure virtual |
It aborts the transaction. Any changes will be rolled-back.
After commiting or rolling back, you can start another transaction.
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, te::stmem::Transactor, te::ws::ogc::wms::da::Transactor, terralib4::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ado::Transactor, te::ws::ogc::wcs::da::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::gdal::Transactor, te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.
|
pure 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. |
Implemented in te::pgis::Transactor, te::ws::ogc::wcs::da::Transactor, te::ado::Transactor, terralib4::Transactor, te::ws::ogc::wms::da::Transactor, te::stmem::Transactor, te::mem::Transactor, te::wfs::Transactor, te::ogr::Transactor, te::gpkg::Transactor, and te::gdal::Transactor.
|
virtual |
It updates the contents of a dataset.
All rows are edited. The third parameter tells wich columns are edited for each row.
datasetName | Name pf the dataset. |
dataset | Dataset with editions. |
properties | Columns edited for each row. Note that the size of properties must be the same of the dataset. |
ids | List of positions of the columns that identifies rows. |
te::da::Exception | An exception can be thrown, if the dataset could not be updated. |
Reimplemented in te::pgis::Transactor, te::ado::Transactor, te::ogr::Transactor, and te::gpkg::Transactor.