26#ifndef __TERRALIB_VP_INTERNAL_BASICQUERIES_H
27#define __TERRALIB_VP_INTERNAL_BASICQUERIES_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);
The Fields class can be used to model a set of expressions that form the output items of a SELECT.
It models the FROM clause for a query.
static TEDATAACCESSEXPORT void AppendExpressionToWhereClause(te::da::Select *select, te::da::Expression *expression)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetRelationalExpression(const std::string &propertyName, const std::string &propertyValue, const std::string &relationalOperator)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Fields > GetFields(const std::vector< std::string > &vecColummns)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQuery(const te::da::DataSetType *dataSetType)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Where > GetWhereEqualTo(const std::string &propertyName, const std::string &propertyValue)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetInExpression(const std::string &propertyName, const std::vector< std::string > &vecValues)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQueryIntersects(const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
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::Select > GetSimpleQueryEqualTo(const te::da::DataSetType *dataSetType, const std::string &propertyName, int propertyValue)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Where > GetWhereEqualTo(const std::string &propertyName, int propertyValue)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetSimpleQueryEqualTo(const te::da::DataSetType *dataSetType, const std::string &propertyName, const std::string &propertyValue)
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::From > GetFrom(const te::da::DataSetType *dataSetType)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetRelationalExpression(const std::string &propertyName, int propertyValue, const std::string &relationalOperator)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Fields > GetFields(const te::da::DataSetType *dataSetType)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > GetIntersectsExpression(const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > GetQuery(bool distinct, const std::vector< std::string > &vecColumns, const std::string &tableName)
Helper function to create a query from the given parameters.
A class that models the description of a dataset.
This is an abstract class that models a query expression.
A Select models a query to be used when retrieving data from a DataSource.
A class that can be used to model a filter expression that can be applied to a query.
A base class for values that can be retrieved from the data access module.
An Envelope defines a 2D rectangular region.
Namespace for the DataAccess API of TerraLib.
Namespace for the Data Type module of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
Configuration flags for the Data Access module of TerraLib.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.