26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_ORDERBYITEM_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_ORDERBYITEM_H
30 #include "../Config.h"
This is an abstract class that models a query expression.
A class that can be used in an ORDER BY clause to sort the items of a resulting query.
OrderByItem(const std::string &propertyName, SortOrder order=ASC)
Constructor.
OrderByItem & operator=(const OrderByItem &rhs)
~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.
Expression * getExpression() const
It returns the exprsssion to be used 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.
OrderByItem(Expression *e, SortOrder order=ASC)
Constructor.
SortOrder
Sort order type: asc or desc.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.