Implementation of a connected dataset for the PostGIS driver. More...
#include <ConnectedDataSet.h>
Public Member Functions | |
| ConnectedDataSet (PGresult *result, DataSource *dataSource, const int &connectionId, const std::string &id_cursor, const int &size, const std::vector< int > &ptypes, bool timeIsInteger=true) | |
| Constructor. More... | |
| te::common::AccessPolicy | getAccessPolicy () const |
| It returns the read and write permission associated to the dataset. More... | |
| std::unique_ptr< te::dt::Array > | getArray (std::size_t i) const |
| Method for retrieving an array. More... | |
| bool | getBool (std::size_t i) const |
| Method for retrieving a boolean attribute value. More... | |
| std::unique_ptr< te::dt::ByteArray > | getByteArray (std::size_t i) const |
| Method for retrieving a byte array. More... | |
| char | getChar (std::size_t i) const |
| Method for retrieving a signed character attribute value (1 byte long). More... | |
| std::string | getDatasetNameOfProperty (std::size_t i) const |
| It returns the underlying dataset name of the property at position pos. More... | |
| std::unique_ptr< te::dt::DateTime > | getDateTime (std::size_t i) const |
| Method for retrieving a date and time attribute value. More... | |
| double | getDouble (std::size_t i) const |
| Method for retrieving a double attribute value. More... | |
| std::unique_ptr< te::gm::Envelope > | getExtent (std::size_t i) |
| It computes the bounding rectangle for a spatial property of the dataset. More... | |
| float | getFloat (std::size_t i) const |
| Method for retrieving a float attribute value. More... | |
| std::unique_ptr< te::gm::Geometry > | getGeometry (std::size_t i) const |
| Method for retrieving a geometric attribute value. More... | |
| boost::int16_t | getInt16 (std::size_t i) const |
| Method for retrieving a 16-bit integer attribute value (2 bytes long). More... | |
| boost::int32_t | getInt32 (std::size_t i) const |
| Method for retrieving a 32-bit integer attribute value (4 bytes long). More... | |
| boost::int64_t | getInt64 (std::size_t i) const |
| Method for retrieving a 64-bit integer attribute value (8 bytes long). More... | |
| std::string | getNumeric (std::size_t i) const |
| Method for retrieving a numeric attribute value. More... | |
| std::size_t | getNumProperties () const |
| It returns the number of properties that composes an item of the dataset. More... | |
| int | getPropertyDataType (std::size_t i) const |
| It returns the underlying data type of the property at position pos. More... | |
| std::string | getPropertyName (std::size_t i) const |
| It returns the property name at position pos. More... | |
| std::unique_ptr< te::rst::Raster > | getRaster (std::size_t i) const |
| Method for retrieving a raster attribute value. More... | |
| std::string | getString (std::size_t i) const |
| Method for retrieving a string value attribute. More... | |
| te::common::TraverseType | getTraverseType () const |
| It returns the traverse type associated to the dataset. More... | |
| unsigned char | getUChar (std::size_t i) const |
| Method for retrieving an unsigned character attribute value (1 byte long). More... | |
| bool | isAfterEnd () const |
| It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not. More... | |
| bool | isAtBegin () const |
| It tells if the dataset internal pointer is on the first element of the collection or not. More... | |
| bool | isAtEnd () const |
| It tells if the dataset internal pointer is on the last element of the collection. More... | |
| bool | isBeforeBegin () const |
| It tells if the dataset internal pointer is in a position before the first element of the collection or not. More... | |
| bool | isConnected () const |
| It returns true if the dataset is connected and false if it is disconnected. 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... | |
| bool | isEmpty () const |
| It returns true if the collection is empty. More... | |
| bool | isNull (std::size_t i) const |
| It checks if the attribute value is NULL. More... | |
| bool | isPositionValid () const |
| It tells if the dataset internal pointer is on a valid position. More... | |
| bool | move (std::size_t i) |
| It moves the dataset internal pointer to a given position. More... | |
| bool | moveBeforeFirst () |
| It moves the internal pointer to a position before the first item in the collection. More... | |
| bool | moveFirst () |
| It moves the internal pointer to the first item in the collection. More... | |
| bool | moveLast () |
| It sets the dataset internal pointer to the last item in the collection. More... | |
| bool | moveNext () |
| It moves the internal pointer to the next item of the collection. More... | |
| bool | movePrevious () |
| It moves the internal pointer to the previous item of the collection. More... | |
| std::size_t | size () const |
| It returns the collection size, if it is known. More... | |
| ~ConnectedDataSet () | |
| The destructor will clear the internal PGresult. More... | |
PostGIS Extended Methods | |
Methods that exists only in the PostGIS DataSet implementation. | |
| PGresult * | getPGResult () const |
| It returns the internal pg result. More... | |
DataSet Element Properties | |
Methods for retrieving/setting the dataset item component values without the need to explicitly instantiate an item via getItem method. | |
| virtual char | getChar (const std::string &name) const |
| Method for retrieving a signed character attribute value (1 byte long). More... | |
| virtual unsigned char | getUChar (const std::string &name) const |
| Method for retrieving an unsigned character attribute value (1 byte long). More... | |
| virtual boost::int16_t | getInt16 (const std::string &name) const |
| Method for retrieving a 16-bit integer attribute value (2 bytes long). More... | |
| virtual boost::int32_t | getInt32 (const std::string &name) const |
| Method for retrieving a 32-bit integer attribute value (4 bytes long). More... | |
| virtual boost::int64_t | getInt64 (const std::string &name) const |
| Method for retrieving a 64-bit integer attribute value (8 bytes long). More... | |
| virtual bool | getBool (const std::string &name) const |
| Method for retrieving a boolean attribute value. More... | |
| virtual float | getFloat (const std::string &name) const |
| Method for retrieving a float attribute value. More... | |
| virtual double | getDouble (const std::string &name) const |
| Method for retrieving a double attribute value. More... | |
| virtual std::string | getNumeric (const std::string &name) const |
| Method for retrieving a numeric attribute value. More... | |
| virtual std::string | getString (const std::string &name) const |
| Method for retrieving a string attribute value. More... | |
| virtual std::unique_ptr< te::dt::ByteArray > | getByteArray (const std::string &name) const |
| Method for retrieving a byte array. More... | |
| virtual std::unique_ptr< te::gm::Geometry > | getGeometry (const std::string &name) const |
| Method for retrieving a geometric attribute value. More... | |
| virtual std::unique_ptr< te::rst::Raster > | getRaster (const std::string &name) const |
| Method for retrieving a raster attribute value. More... | |
| virtual std::unique_ptr< te::dt::DateTime > | getDateTime (const std::string &name) const |
| Method for retrieving a date and time attribute value. More... | |
| virtual std::unique_ptr< te::dt::Array > | getArray (const std::string &name) const |
| Method for retrieving an array. More... | |
| virtual std::unique_ptr< te::dt::AbstractData > | getValue (std::size_t i) const |
| Method for retrieving any other type of data value stored in the data source. More... | |
| virtual std::unique_ptr< te::dt::AbstractData > | getValue (const std::string &name) const |
| Method for retrieving any other type of data value stored in the data source. More... | |
| virtual std::string | getAsString (std::size_t i, int precision=0) const |
| Method for retrieving a data value as a string plain representation. More... | |
| virtual std::string | getAsString (const std::string &name, int precision=0) const |
| Method for retrieving a data value as a string plain representation. More... | |
| virtual bool | isNull (const std::string &name) const |
| It checks if the attribute value is NULL. More... | |
Protected Attributes | |
| int | m_connectionId |
| The connection id used by this dataset. More... | |
| DataSource * | m_ds |
| The DataSource to get the connection. More... | |
| int | m_fetchSize |
| The size of cursor fetch. More... | |
| std::string | m_idcursor |
| The id of current cursor. More... | |
| int | m_iFetch |
| The index of the current row of current fetch. More... | |
| int | m_iLayer |
| The index of total layer of the current row. More... | |
| te::gm::Envelope * | m_mbr |
| The dataset extent. More... | |
| std::vector< int > | m_ptypes |
| The list of property types. More... | |
| PGresult * | m_result |
| The internal buffer with the result query. More... | |
| int | m_size |
| The number of datasets in the collection. More... | |
| bool | m_timeIsInteger |
| It indicates if the postgis stores, internally, the time and timestamp as an integer. More... | |
Implementation of a connected dataset for the PostGIS driver.
Definition at line 63 of file ConnectedDataSet.h.
| te::pgis::ConnectedDataSet::ConnectedDataSet | ( | PGresult * | result, |
| DataSource * | dataSource, | ||
| const int & | connectionId, | ||
| const std::string & | id_cursor, | ||
| const int & | size, | ||
| const std::vector< int > & | ptypes, | ||
| bool | timeIsInteger = true |
||
| ) |
Constructor.
| result | The internal PGresult. |
| dataSource | The DataSource to get the connection. |
| connectionId | The connection id used by this dataset. |
| id_cursor | The id for the current cursor. |
| size | The number of rows the layer has. |
| ptypes | The types of each property. |
| timeIsInteger | A flag that indicates if the postgis stores, internally, the time and timestamp as an integer. |
Definition at line 130 of file ConnectedDataSet.cpp.
References m_fetchSize, and m_result.
| te::pgis::ConnectedDataSet::~ConnectedDataSet | ( | ) |
The destructor will clear the internal PGresult.
Definition at line 151 of file ConnectedDataSet.cpp.
References te::pgis::Connection::execute(), te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_idcursor, and m_result.
|
virtual |
It returns the read and write permission associated to the dataset.
Implements te::da::DataSet.
Definition at line 165 of file ConnectedDataSet.cpp.
References te::common::RAccess.
|
virtual |
Method for retrieving an array.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 692 of file ConnectedDataSet.cpp.
References d, te::dt::DOUBLE_TYPE, te::dt::INT16_TYPE, m_iFetch, m_result, PG_FLOAT8_TYPE, PG_INT2_TYPE, PG_NAME_TYPE, PG_TEXT_TYPE, PG_VARCHAR_TYPE, te::dt::STRING_TYPE, te::common::SwapBytes(), and TE_TR.
|
virtualinherited |
Method for retrieving an array.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 145 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getArray(), and te::da::GetPropertyPos().
|
virtualinherited |
Method for retrieving a data value as a string plain representation.
| i | The attribute index. |
| precision | The precision in the conversion. |
Definition at line 219 of file dataaccess/dataset/DataSet.cpp.
References te::dt::ARRAY_TYPE, b, te::dt::BOOLEAN_TYPE, te::dt::BYTE_ARRAY_TYPE, te::dt::CHAR_TYPE, te::common::Convert2String(), te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::da::DataSet::getArray(), te::da::DataSet::getBool(), te::da::DataSet::getByteArray(), te::da::DataSet::getChar(), te::da::DataSet::getDateTime(), te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getGeometry(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getRaster(), te::da::DataSet::getString(), te::da::DataSet::getUChar(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::RASTER_TYPE, te::dt::STRING_TYPE, and te::dt::UCHAR_TYPE.
Referenced by te::ogr::Transactor::add(), te::gpkg::Transactor::add(), te::sa::AssociateGPMVertexAttribute(), te::sa::KernelMapOperation::buildTree(), te::sa::KernelRatioOperation::buildTree(), te::sa::SkaterOperation::createDataSet(), te::qt::widgets::DataSetTableModel::data(), te::map::QueryLayerRenderer::drawDatSetGeometries(), te::da::DataSet::getAsString(), te::attributefill::VectorToVectorMemory::getDistinctClasses(), te::qt::widgets::DefaultFeatureInfoMaker::getGeometryInfo(), te::edit::EditInfoTool::getInfo(), te::qt::widgets::Promoter::preProcessKeys(), PrintDataSet(), PrintDataSetValues(), te::sa::BayesLocalOperation::runBayesLocal(), ToHighlight(), te::da::TupleToStringConverter(), TupleToStringUpperCaseConverter(), te::ado::Transactor::update(), and te::pgis::Transactor::update().
|
virtualinherited |
Method for retrieving a data value as a string plain representation.
| name | The attribute name. |
| precision | The precision in the conversion. |
| Exception | if property not found. |
Definition at line 307 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getAsString(), te::da::DataSet::getNumProperties(), te::da::GetPropertyPos(), and TE_TR.
|
virtual |
Method for retrieving a boolean attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 422 of file ConnectedDataSet.cpp.
|
virtualinherited |
Method for retrieving a boolean attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 82 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getBool(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a byte array.
You can use this method in order to retrieve a BLOB data.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 566 of file ConnectedDataSet.cpp.
References b, te::dt::ByteArray::copy(), m_iFetch, m_result, and size().
|
virtualinherited |
Method for retrieving a byte array.
You can use this method in order to retrieve a BLOB data.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 117 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getByteArray(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a signed character attribute value (1 byte long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 377 of file ConnectedDataSet.cpp.
|
virtualinherited |
Method for retrieving a signed character attribute value (1 byte long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 47 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getChar(), and te::da::GetPropertyPos().
|
virtual |
It returns the underlying dataset name of the property at position pos.
| i | The property position of interest. |
Implements te::da::DataSet.
Definition at line 185 of file ConnectedDataSet.cpp.
References TE_TR.
|
virtual |
Method for retrieving a date and time attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 585 of file ConnectedDataSet.cpp.
References getDouble(), getInt32(), getInt64(), te::pgis::Internal2Date(), te::pgis::Internal2Time(), te::pgis::Internal2TimeStamp(), te::pgis::Internal2TimeStampTZ(), te::pgis::Internal2TimeTZ(), m_iFetch, m_result, m_timeIsInteger, PG_DATE_TYPE, PG_TIME_TYPE, PG_TIMESTAMP_TYPE, PG_TIMESTAMPTZ_TYPE, PG_TIMETZ_TYPE, te::common::SwapBytes(), and TE_TR.
|
virtualinherited |
Method for retrieving a date and time attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 138 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getDateTime(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a double attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 439 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::common::SwapBytes().
Referenced by getDateTime().
|
virtualinherited |
Method for retrieving a double attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 96 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getDouble(), and te::da::GetPropertyPos().
|
virtual |
It computes the bounding rectangle for a spatial property of the dataset.
| i | The position of a spatial property to get its bounding box. |
| Exception | It throws an exception if something goes wrong during MBR search. |
Implements te::da::DataSet.
Definition at line 205 of file ConnectedDataSet.cpp.
References te::dt::GEOMETRY_TYPE, getGeometry(), m_iFetch, m_mbr, m_ptypes, moveNext(), TE_TR, and te::gm::Envelope::Union().
|
virtual |
Method for retrieving a float attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 428 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::common::SwapBytes().
|
virtualinherited |
Method for retrieving a float attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 89 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getFloat(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a geometric attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 575 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::pgis::EWKBReader::read().
Referenced by getExtent().
|
virtualinherited |
Method for retrieving a geometric attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 124 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getGeometry(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 16-bit integer attribute value (2 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 389 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::common::SwapBytes().
|
virtualinherited |
Method for retrieving a 16-bit integer attribute value (2 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 61 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt16(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 32-bit integer attribute value (4 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 400 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::common::SwapBytes().
Referenced by getDateTime().
|
virtualinherited |
Method for retrieving a 32-bit integer attribute value (4 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 68 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt32(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a 64-bit integer attribute value (8 bytes long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 411 of file ConnectedDataSet.cpp.
References m_iFetch, m_result, and te::common::SwapBytes().
Referenced by getDateTime().
|
virtualinherited |
Method for retrieving a 64-bit integer attribute value (8 bytes long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 75 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getInt64(), and te::da::GetPropertyPos().
|
virtual |
Method for retrieving a numeric attribute value.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 450 of file ConnectedDataSet.cpp.
References te::common::Convert2String(), m_iFetch, m_result, and te::common::SwapBytes().
|
virtualinherited |
Method for retrieving a numeric attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 103 of file dataaccess/dataset/DataSet.cpp.
References te::da::DataSet::getNumeric(), and te::da::GetPropertyPos().
|
virtual |
It returns the number of properties that composes an item of the dataset.
Implements te::da::DataSet.
Definition at line 170 of file ConnectedDataSet.cpp.
References m_result.
|
inline |
It returns the internal pg result.
Definition at line 173 of file ConnectedDataSet.h.
|
virtual |
It returns the underlying data type of the property at position pos.
| i | The property position of interest. |
Implements te::da::DataSet.
Definition at line 175 of file ConnectedDataSet.cpp.
References m_ptypes.
|
virtual |
It returns the property name at position pos.
| i | The property name at the position of interest. |
Implements te::da::DataSet.
Definition at line 180 of file ConnectedDataSet.cpp.
References m_result.
|
virtual |
Method for retrieving a raster attribute value.
| i | The attribute index. |
| Exception | It can throw an exception if:
|
Implements te::da::DataSet.
Definition at line 580 of file ConnectedDataSet.cpp.
|
virtualinherited |
Method for retrieving a raster attribute value.
| name | The attribute name. |
| Exception | It can throw an exception if:
|
Reimplemented in te::gdal::DataSet.
Definition at line 131 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getRaster().
|
virtual |
Method for retrieving a string value attribute.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 560 of file ConnectedDataSet.cpp.
|
virtualinherited |
Method for retrieving a string attribute value.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 110 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getString().
|
virtual |
It returns the traverse type associated to the dataset.
Implements te::da::DataSet.
Definition at line 160 of file ConnectedDataSet.cpp.
References te::common::RANDOM.
|
virtual |
Method for retrieving an unsigned character attribute value (1 byte long).
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 383 of file ConnectedDataSet.cpp.
|
virtualinherited |
Method for retrieving an unsigned character attribute value (1 byte long).
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 54 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getUChar().
|
virtualinherited |
Method for retrieving any other type of data value stored in the data source.
This method can be use for extensible datatypes.
| i | The attribute index. |
Reimplemented in te::stmem::DataSet, and te::mem::DataSet.
Definition at line 152 of file dataaccess/dataset/DataSet.cpp.
References te::dt::BOOLEAN_TYPE, te::dt::BYTE_ARRAY_TYPE, te::dt::CHAR_TYPE, te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::da::DataSet::getBool(), te::da::DataSet::getByteArray(), te::da::DataSet::getChar(), te::da::DataSet::getDateTime(), te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getGeometry(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getRaster(), te::da::DataSet::getString(), te::da::DataSet::getUChar(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::RASTER_TYPE, te::dt::STRING_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by te::sa::AssociateGPMVertexAttribute(), te::sa::KernelRatioOperation::buildTree(), te::sa::KernelMapOperation::buildTree(), te::mem::DataSet::copy(), te::stmem::DataSet::copy(), te::sa::SkaterOperation::createDataSet(), te::sa::BayesLocalOperation::createDataSet(), te::sa::BayesGlobalOperation::createDataSet(), te::sa::KernelOperation::createDataSet(), te::sa::CreateGeostatisticalData(), te::vp::Union::executeMemory(), te::vp::Difference::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::Merge::executeMemory(), te::da::GenerateOID(), te::da::GenericAttributeConverter(), te::attributefill::VectorToVectorMemory::getDataValues(), Editor::getEditedDataSet(), te::vp::GetFilledItemMemory(), te::edit::EditInfoTool::getInfo(), te::vp::GroupThreadManager::getNextGroup(), te::st::TimeSeriesDataSet::getTimeSeries(), te::st::TimeSeriesDataSet::getTimeSeriesSet(), te::da::DataSet::getValue(), te::edit::EditInfoTool::onOkPushButtonPressed(), te::vp::IntersectionMemory::pairwiseIntersection(), te::sa::SetMainDiagonal(), te::vp::IntersectionQuery::updateGeomType(), and te::vp::Intersection::updateGeomType().
|
virtualinherited |
Method for retrieving any other type of data value stored in the data source.
This method can be use for extensible datatypes.
| name | The attribute name. |
Definition at line 212 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::getValue().
|
virtual |
It tells if the dataset internal pointer is on the sentinel position after the last element of the collection or not.
Implements te::da::DataSet.
Definition at line 367 of file ConnectedDataSet.cpp.
|
virtual |
It tells if the dataset internal pointer is on the first element of the collection or not.
Implements te::da::DataSet.
Definition at line 352 of file ConnectedDataSet.cpp.
References m_iLayer.
|
virtual |
It tells if the dataset internal pointer is on the last element of the collection.
Implements te::da::DataSet.
Definition at line 362 of file ConnectedDataSet.cpp.
|
virtual |
It tells if the dataset internal pointer is in a position before the first element of the collection or not.
Implements te::da::DataSet.
Definition at line 357 of file ConnectedDataSet.cpp.
References m_iLayer.
|
virtual |
It returns true if the dataset is connected and false if it is disconnected. 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.
Implements te::da::DataSet.
Definition at line 195 of file ConnectedDataSet.cpp.
|
virtual |
It returns true if the collection is empty.
Implements te::da::DataSet.
Definition at line 190 of file ConnectedDataSet.cpp.
References m_size.
|
virtual |
It checks if the attribute value is NULL.
| i | The attribute index. |
Implements te::da::DataSet.
Definition at line 928 of file ConnectedDataSet.cpp.
|
virtualinherited |
It checks if the attribute value is NULL.
| name | The attribute name. |
Reimplemented in te::gdal::DataSet.
Definition at line 319 of file dataaccess/dataset/DataSet.cpp.
References te::da::GetPropertyPos(), and te::da::DataSet::isNull().
|
virtual |
It tells if the dataset internal pointer is on a valid position.
Implements te::da::DataSet.
Definition at line 372 of file ConnectedDataSet.cpp.
|
virtual |
It moves the dataset internal pointer to a given position.
| i | The position the dataset internal pointer must be set up. |
Implements te::da::DataSet.
Definition at line 330 of file ConnectedDataSet.cpp.
References te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_fetchSize, m_idcursor, m_iFetch, m_iLayer, m_result, and m_size.
|
virtual |
It moves the internal pointer to a position before the first item in the collection.
Implements te::da::DataSet.
Definition at line 312 of file ConnectedDataSet.cpp.
References te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_fetchSize, m_idcursor, m_iFetch, m_iLayer, and m_result.
Referenced by moveFirst().
|
virtual |
It moves the internal pointer to the first item in the collection.
Implements te::da::DataSet.
Definition at line 283 of file ConnectedDataSet.cpp.
References m_fetchSize, moveBeforeFirst(), and moveNext().
|
virtual |
It sets the dataset internal pointer to the last item in the collection.
Implements te::da::DataSet.
Definition at line 294 of file ConnectedDataSet.cpp.
References te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_fetchSize, m_idcursor, m_iFetch, m_iLayer, m_result, and m_size.
|
virtual |
It moves the internal pointer to the next item of the collection.
You always has to call this method in order to move the internal pointer to the first item in the collection. This method can be used to traverse a dataset.
Implements te::da::DataSet.
Definition at line 229 of file ConnectedDataSet.cpp.
References te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_fetchSize, m_idcursor, m_iFetch, m_iLayer, m_result, and m_size.
Referenced by getExtent(), and moveFirst().
|
virtual |
It moves the internal pointer to the previous item of the collection.
Implements te::da::DataSet.
Definition at line 256 of file ConnectedDataSet.cpp.
References te::pgis::DataSource::getConnPool(), m_connectionId, m_ds, m_fetchSize, m_idcursor, m_iFetch, m_iLayer, and m_result.
|
virtual |
It returns the collection size, if it is known.
It may return std::string::npos if the size is not known, or it would be too costly to compute it.
Implements te::da::DataSet.
Definition at line 200 of file ConnectedDataSet.cpp.
References m_size.
Referenced by getByteArray().
|
protected |
The connection id used by this dataset.
Definition at line 186 of file ConnectedDataSet.h.
Referenced by move(), moveBeforeFirst(), moveLast(), moveNext(), movePrevious(), and ~ConnectedDataSet().
|
protected |
The DataSource to get the connection.
Definition at line 185 of file ConnectedDataSet.h.
Referenced by move(), moveBeforeFirst(), moveLast(), moveNext(), movePrevious(), and ~ConnectedDataSet().
|
protected |
The size of cursor fetch.
Definition at line 187 of file ConnectedDataSet.h.
Referenced by ConnectedDataSet(), move(), moveBeforeFirst(), moveFirst(), moveLast(), moveNext(), and movePrevious().
|
protected |
The id of current cursor.
Definition at line 188 of file ConnectedDataSet.h.
Referenced by move(), moveBeforeFirst(), moveLast(), moveNext(), movePrevious(), and ~ConnectedDataSet().
|
protected |
The index of the current row of current fetch.
Definition at line 181 of file ConnectedDataSet.h.
Referenced by getArray(), getBool(), getByteArray(), getChar(), getDateTime(), getDouble(), getExtent(), getFloat(), getGeometry(), getInt16(), getInt32(), getInt64(), getNumeric(), getString(), getUChar(), isNull(), move(), moveBeforeFirst(), moveLast(), moveNext(), and movePrevious().
|
protected |
The index of total layer of the current row.
Definition at line 182 of file ConnectedDataSet.h.
Referenced by isAfterEnd(), isAtBegin(), isAtEnd(), isBeforeBegin(), isPositionValid(), move(), moveBeforeFirst(), moveLast(), moveNext(), and movePrevious().
|
protected |
|
protected |
The list of property types.
Definition at line 189 of file ConnectedDataSet.h.
Referenced by getExtent(), and getPropertyDataType().
|
protected |
The internal buffer with the result query.
Definition at line 184 of file ConnectedDataSet.h.
Referenced by ConnectedDataSet(), getArray(), getBool(), getByteArray(), getChar(), getDateTime(), getDouble(), getFloat(), getGeometry(), getInt16(), getInt32(), getInt64(), getNumeric(), getNumProperties(), getPropertyName(), getString(), getUChar(), isNull(), move(), moveBeforeFirst(), moveLast(), moveNext(), movePrevious(), and ~ConnectedDataSet().
|
protected |
The number of datasets in the collection.
Definition at line 183 of file ConnectedDataSet.h.
Referenced by isAfterEnd(), isAtEnd(), isEmpty(), isPositionValid(), move(), moveLast(), moveNext(), and size().
|
protected |
It indicates if the postgis stores, internally, the time and timestamp as an integer.
Definition at line 191 of file ConnectedDataSet.h.
Referenced by getDateTime().