Loading...
Searching...
No Matches
te::da::BasicQueries Class Reference

#include <BasicQueries.h>

Static Public Member Functions

static TEDATAACCESSEXPORT void AppendExpressionToWhereClause (te::da::Select *select, te::da::Expression *expression)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::FieldsGetFields (const std::vector< std::string > &vecColummns)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::FieldsGetFields (const te::da::DataSetType *dataSetType)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::FromGetFrom (const te::da::DataSetType *dataSetType)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::ExpressionGetInExpression (const std::string &propertyName, const std::vector< int > &vecValues)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::ExpressionGetInExpression (const std::string &propertyName, const std::vector< std::string > &vecValues)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::ExpressionGetIntersectsExpression (const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetQuery (bool distinct, const std::vector< std::string > &vecColumns, const std::string &tableName)
 Helper function to create a query from the given parameters.
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetQuery (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::ExpressionGetRelationalExpression (const std::string &propertyName, const std::string &propertyValue, const std::string &relationalOperator)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::ExpressionGetRelationalExpression (const std::string &propertyName, int propertyValue, const std::string &relationalOperator)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetSimpleQuery (const te::da::DataSetType *dataSetType)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetSimpleQueryEqualTo (const te::da::DataSetType *dataSetType, const std::string &propertyName, const std::string &propertyValue)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetSimpleQueryEqualTo (const te::da::DataSetType *dataSetType, const std::string &propertyName, int propertyValue)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetSimpleQueryIntersects (const te::da::DataSetType *dataSetType, const te::gm::Envelope &envelope)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::WhereGetWhereEqualTo (const std::string &propertyName, const std::string &propertyValue)
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::WhereGetWhereEqualTo (const std::string &propertyName, int propertyValue)
 

Private Member Functions

 BasicQueries ()=delete
 
 ~BasicQueries ()=delete
 

Detailed Description

Definition at line 58 of file BasicQueries.h.

Constructor & Destructor Documentation

◆ BasicQueries()

te::da::BasicQueries::BasicQueries ( )
privatedelete

◆ ~BasicQueries()

te::da::BasicQueries::~BasicQueries ( )
privatedelete

Member Function Documentation

◆ AppendExpressionToWhereClause()

static TEDATAACCESSEXPORT void te::da::BasicQueries::AppendExpressionToWhereClause ( te::da::Select * select,
te::da::Expression * expression )
static

References TEDATAACCESSEXPORT.

◆ GetFields() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Fields > te::da::BasicQueries::GetFields ( const std::vector< std::string > & vecColummns)
static

References TEDATAACCESSEXPORT.

◆ GetFields() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Fields > te::da::BasicQueries::GetFields ( const te::da::DataSetType * dataSetType)
static

References TEDATAACCESSEXPORT.

◆ GetFrom()

static TEDATAACCESSEXPORT std::unique_ptr< te::da::From > te::da::BasicQueries::GetFrom ( const te::da::DataSetType * dataSetType)
static

References TEDATAACCESSEXPORT.

◆ GetInExpression() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > te::da::BasicQueries::GetInExpression ( const std::string & propertyName,
const std::vector< int > & vecValues )
static

References TEDATAACCESSEXPORT.

◆ GetInExpression() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > te::da::BasicQueries::GetInExpression ( const std::string & propertyName,
const std::vector< std::string > & vecValues )
static

References TEDATAACCESSEXPORT.

◆ GetIntersectsExpression()

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > te::da::BasicQueries::GetIntersectsExpression ( const te::da::DataSetType * dataSetType,
const te::gm::Envelope & envelope )
static

References TEDATAACCESSEXPORT.

◆ GetQuery() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::GetQuery ( bool distinct,
const std::vector< std::string > & vecColumns,
const std::string & tableName )
static

Helper function to create a query from the given parameters.

Parameters
distinctTRUE if distinct clause must be added. FALSE otherwise
vecColumnsA vector containing the columns to be added to the query
tableNameThe name of the table to be queried
Returns
An query resulting from the given parameters

References TEDATAACCESSEXPORT.

◆ GetQuery() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::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 )
static

Helper function to create a query from the given parameters.

Parameters
distinctTRUE if distinct clause must be added. FALSE otherwise
vecColumnsA vector containing the columns to be added to the query
tableNameThe name of the table to be queried
vecWhereColumnsA vector containing all the columns in the where clause
vecWhereValuesA vector containing all the values in the where clause
Returns
An query resulting from the given parameters

References TEDATAACCESSEXPORT.

◆ GetRelationalExpression() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > te::da::BasicQueries::GetRelationalExpression ( const std::string & propertyName,
const std::string & propertyValue,
const std::string & relationalOperator )
static

References TEDATAACCESSEXPORT.

◆ GetRelationalExpression() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Expression > te::da::BasicQueries::GetRelationalExpression ( const std::string & propertyName,
int propertyValue,
const std::string & relationalOperator )
static

References TEDATAACCESSEXPORT.

◆ GetSimpleQuery()

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::GetSimpleQuery ( const te::da::DataSetType * dataSetType)
static

References TEDATAACCESSEXPORT.

◆ GetSimpleQueryEqualTo() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::GetSimpleQueryEqualTo ( const te::da::DataSetType * dataSetType,
const std::string & propertyName,
const std::string & propertyValue )
static

References TEDATAACCESSEXPORT.

◆ GetSimpleQueryEqualTo() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::GetSimpleQueryEqualTo ( const te::da::DataSetType * dataSetType,
const std::string & propertyName,
int propertyValue )
static

References TEDATAACCESSEXPORT.

◆ GetSimpleQueryIntersects()

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Select > te::da::BasicQueries::GetSimpleQueryIntersects ( const te::da::DataSetType * dataSetType,
const te::gm::Envelope & envelope )
static

References TEDATAACCESSEXPORT.

◆ GetWhereEqualTo() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Where > te::da::BasicQueries::GetWhereEqualTo ( const std::string & propertyName,
const std::string & propertyValue )
static

References TEDATAACCESSEXPORT.

◆ GetWhereEqualTo() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr< te::da::Where > te::da::BasicQueries::GetWhereEqualTo ( const std::string & propertyName,
int propertyValue )
static

References TEDATAACCESSEXPORT.


The documentation for this class was generated from the following file: