A test suit for the DataSourceTransactor interface. More...
#include <TsDataSourceTransactor.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcBegin () |
| Test Case: Testing DataSourceTransactor of an given datasource. More... | |
| void | tcCancel () |
| void | tcComit () |
| void | tcExecuteCommand () |
| void | tcExecuteQuery () |
| void | tcGetBatchExecutor () |
| void | tcGetCatalogLoader () |
| void | tcGetDataSet () |
| Test Case: get the dataSet using the i-th position in the DataSourceCatalog. More... | |
| void | tcGetDataSetByEnvRec () |
| Test Case: get only the objects that intercepts a given rectangle. More... | |
| void | tcGetDataSetByEnvRec1 () |
| void | tcGetDataSetByEnvRec2 () |
| Test Case: get only the objects that intercepts a given rectangle. More... | |
| void | tcGetDataSetByGeometry () |
| Test Case: get only the objects that intercepts a given geometry (point, box, pol, geom). More... | |
| void | tcGetDataSetByOids () |
| Test Case: It gets a dataset identified by the given name using the set of objects identification. More... | |
| void | tcGetDataSetByProperty () |
| Test Case: It gets the DataSet identified by the given name using a spatial filter over the given geometric property. More... | |
| void | tcGetDataSource () |
| void | tcGetPreparedStmt () |
| void | tcQueryBySelect () |
| void | tcQueryByString () |
| void | tcRenameDataSet () |
| void | tcRollback () |
Protected Attributes | |
| te::gm::Envelope | m_box |
| te::da::DataSourceCapabilities | m_capabilit |
| std::map< std::string, std::string > | m_connInfo |
| std::map< std::string, std::string > | m_connInfoNewDs |
| te::da::DataSource * | m_ds |
| te::da::DataSourceCatalog * | m_dsCatalog |
| std::string | m_dsToString |
| std::string | m_dsType |
| te::gm::Geometry * | m_geom |
| te::gm::LinearRing * | m_linearRing |
| size_t | m_nroDataSets |
| te::gm::Polygon * | m_pol |
| te::gm::Point | m_pt |
| std::vector< std::string > | m_vecDtNames |
| std::vector< std::pair< std::string, te::gm::Envelope > > | m_vecDtNamesAndEnvelops |
| std::vector< te::gm::Envelope > | m_vecEnvelops |
| std::vector< std::pair< std::string, te::gm::Envelope > > | m_vecNamesAndRecs |
| std::vector< std::pair< std::string, size_t > > | m_vecNamesSizes |
| std::vector< std::pair< std::string, size_t > > | m_vecNamesSizesRec |
A test suit for the DataSourceTransactor interface.
....
This test suite will check the following:
Definition at line 55 of file TsDataSourceTransactor.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsDataSourceTransactor::setUp | ( | ) |
Definition at line 37 of file TsDataSourceTransactor.cpp.
References te::da::DataSource::getCapabilities(), m_box, m_capabilit, m_connInfo, m_ds, m_dsType, m_geom, m_nroDataSets, m_pol, m_pt, m_vecDtNames, m_vecDtNamesAndEnvelops, m_vecEnvelops, m_vecNamesAndRecs, m_vecNamesSizes, m_vecNamesSizesRec, TsManagerDataSource::sm_box, TsManagerDataSource::sm_connInfo, TsManagerDataSource::sm_datasource, TsManagerDataSource::sm_dsType, TsManagerDataSource::sm_geom, TsManagerDataSource::sm_nroDataSets, TsManagerDataSource::sm_pol, TsManagerDataSource::sm_pt, TsManagerDataSource::sm_vecDtNames, TsManagerDataSource::sm_vecDtNamesAndEnvelops, TsManagerDataSource::sm_vecEnvelops, TsManagerDataSource::sm_vecNamesAndRecs, TsManagerDataSource::sm_vecNamesSizes, and TsManagerDataSource::sm_vecNamesSizesRec.
|
protected |
Test Case: Testing DataSourceTransactor of an given datasource.
Definition at line 66 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 430 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 72 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 96 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 89 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 426 of file TsDataSourceTransactor.cpp.
|
protected |
|
protected |
Test Case: get the dataSet using the i-th position in the DataSourceCatalog.
This test case will get all the dataSets using the i-th position in the DataSourceCatalog.
Definition at line 135 of file TsDataSourceTransactor.cpp.
References dt, te::da::DataSource::getTransactor(), te::da::DataSource::isOpened(), m_ds, and te::da::DataSource::open().
|
protected |
Test Case: get only the objects that intercepts a given rectangle.
This test case will get all the objects that intercepts a given rectangle defined m_vecNamesAndRecs. The vector of pairs contain the dataSets names and the rectangles to be used as a spatial filter when retrieving datasets.
Definition at line 269 of file TsDataSourceTransactor.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_capabilit, m_ds, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, m_vecDtNames, and p.
|
protected |
Definition at line 308 of file TsDataSourceTransactor.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::gm::INTERSECTS, m_capabilit, m_ds, m_vecDtNames, m_vecNamesAndRecs, and p.
|
protected |
Test Case: get only the objects that intercepts a given rectangle.
This test case will get all the objects that intercepts a given rectangle defined m_vecNamesAndRecs. The vector of pairs contain the dataSets names and the rectangles to be used as a spatial filter when retrieving datasets. The number of objects returned is compared with the size in the vector of pairs m_vecNamesSizesRec.
Definition at line 351 of file TsDataSourceTransactor.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_capabilit, m_ds, m_vecNamesAndRecs, m_vecNamesSizesRec, and p.
|
protected |
Test Case: get only the objects that intercepts a given geometry (point, box, pol, geom).
This test case will get all the objects that intercepts a given geometry (point, box, pol, geom).
Definition at line 169 of file TsDataSourceTransactor.cpp.
References te::gm::Geometry::computeMBR(), dt, te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_box, m_capabilit, m_ds, m_geom, m_pol, m_pt, m_vecDtNames, and p.
|
protected |
Test Case: It gets a dataset identified by the given name using the set of objects identification.
This test case will the gets the dataset identified by the given name using the set of objects identification.
Definition at line 391 of file TsDataSourceTransactor.cpp.
|
protected |
Test Case: It gets the DataSet identified by the given name using a spatial filter over the given geometric property.
This test case will gets the DataSet identified by the given name using a spatial filter over the given geometric property.
Definition at line 218 of file TsDataSourceTransactor.cpp.
References te::gm::Geometry::computeMBR(), dt, te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_box, m_capabilit, m_ds, m_geom, m_pol, m_pt, m_vecDtNames, te::da::DataSource::open(), and p.
|
protected |
Definition at line 102 of file TsDataSourceTransactor.cpp.
References te::da::DataSource::getTransactor(), m_ds, and te::da::DataSource::open().
|
protected |
Definition at line 422 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 418 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 395 of file TsDataSourceTransactor.cpp.
References dt, te::da::DataSourceCapabilities::getQueryCapabilities(), te::da::DataSource::getTransactor(), te::da::DataSource::isOpened(), m_capabilit, m_ds, m_vecNamesSizes, and te::da::QueryCapabilities::supportsSelectInto().
|
protected |
Definition at line 115 of file TsDataSourceTransactor.cpp.
References te::da::DataSource::getConnectionInfo(), te::da::DataSource::getTransactor(), m_ds, and te::da::DataSource::open().
|
protected |
Definition at line 78 of file TsDataSourceTransactor.cpp.
| void TsDataSourceTransactor::tearDown | ( | ) |
Definition at line 59 of file TsDataSourceTransactor.cpp.
|
protected |
Definition at line 174 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
|
protected |
Definition at line 156 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByEnvRec2(), tcGetDataSetByGeometry(), tcGetDataSetByProperty(), and tcQueryByString().
|
protected |
Definition at line 157 of file TsDataSourceTransactor.h.
Referenced by setUp().
|
protected |
Definition at line 159 of file TsDataSourceTransactor.h.
|
protected |
Definition at line 155 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSet(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByEnvRec2(), tcGetDataSetByGeometry(), tcGetDataSetByProperty(), tcGetDataSource(), tcQueryByString(), tcRenameDataSet(), and tearDown().
|
protected |
Definition at line 161 of file TsDataSourceTransactor.h.
|
protected |
Definition at line 163 of file TsDataSourceTransactor.h.
|
protected |
Definition at line 158 of file TsDataSourceTransactor.h.
Referenced by setUp(), and tearDown().
|
protected |
Definition at line 178 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
|
protected |
Definition at line 176 of file TsDataSourceTransactor.h.
|
protected |
Definition at line 165 of file TsDataSourceTransactor.h.
Referenced by setUp().
|
protected |
Definition at line 177 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByGeometry(), tcGetDataSetByProperty(), and tearDown().
|
protected |
Definition at line 175 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
|
protected |
Definition at line 167 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
|
protected |
Definition at line 169 of file TsDataSourceTransactor.h.
Referenced by setUp().
|
protected |
Definition at line 168 of file TsDataSourceTransactor.h.
Referenced by setUp().
|
protected |
Definition at line 170 of file TsDataSourceTransactor.h.
Referenced by setUp(), tcGetDataSetByEnvRec1(), and tcGetDataSetByEnvRec2().
|
protected |
Definition at line 171 of file TsDataSourceTransactor.h.
Referenced by setUp(), and tcQueryByString().
|
protected |
Definition at line 172 of file TsDataSourceTransactor.h.
Referenced by setUp(), and tcGetDataSetByEnvRec2().