26#ifndef __TERRALIB_DATAACCESS_INTERNAL_ORDERBYITEM_H
27#define __TERRALIB_DATAACCESS_INTERNAL_ORDERBYITEM_H
This is an abstract class that models a query expression.
OrderByItem & operator=(const OrderByItem &rhs)
OrderByItem(const std::string &propertyName, SortOrder order=ASC)
Constructor.
~OrderByItem()
Destructor.
SortOrder m_order
Sort order.
void setSortOrder(SortOrder o)
It sets the order to be used during the sorting of a query.
void setExpression(Expression *e)
It sets the expression to sort the result of a query.
SortOrder getSortOrder() const
It returns the order of sorting: Asc or Desc.
OrderByItem(const Expression &e, SortOrder order=ASC)
Constructor.
std::unique_ptr< Expression > m_field
A valid expression.
OrderByItem(const OrderByItem &rhs)
Copy constructor.
Expression * getExpression() const
It returns the exprsssion to be used to sort the result of a query.
OrderByItem(Expression *e, SortOrder order=ASC)
Constructor.
General enumerations for the Data Access module.
Namespace for the DataAccess API of TerraLib.
SortOrder
Sort order type: asc or desc.
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.