26 #ifndef __TERRALIB_VP_INTERNAL_BASICQUERIES_H 27 #define __TERRALIB_VP_INTERNAL_BASICQUERIES_H 29 #include "../Config.h" 32 #include "../query/Fields.h" 33 #include "../query/From.h" 75 const std::vector<std::string>& vecColumns,
76 const std::string& tableName,
77 const std::vector<std::string>& vecWhereColumns,
78 const std::vector<te::dt::AbstractData*>& vecWhereValues);
89 const std::vector<std::string>& vecColumns,
90 const std::string& tableName);
114 #endif //__TERRALIB_VP_INTERNAL_BASICQUERIES_H static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetInExpression(const std::string &propertyName, const std::vector< int > &vecValues)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQuery(const te::da::DataSetType *dataSetType)
A class that models the description of a dataset.
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Fields > GetFields(const te::da::DataSetType *dataSetType)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQueryIntersects(const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
This is an abstract class that models a query expression.
An Envelope defines a 2D rectangular region.
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQueryEqualTo(const te::da::DataSetType *dataSetType, const std::string &propertyName, int propertyValue)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::From > GetFrom(const te::da::DataSetType *dataSetType)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetQuery(bool distinct, const std::vector< std::string > &vecColumns, const std::string &tableName, const std::vector< std::string > &vecWhereColumns, const std::vector< te::dt::AbstractData *> &vecWhereValues)
Helper function to create a query from the given parameters.
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetRelationalExpression(const std::string &propertyName, int propertyValue, const std::string &relationalOperator)
static TEDATAACCESSEXPORT void AppendExpressionToWhereClause(te::da::Select *select, te::da::Expression *expression)
A Select models a query to be used when retrieving data from a DataSource.
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetIntersectsExpression(const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Where > GetWhereEqualTo(const std::string &propertyName, int propertyValue)