te::da::GroupByItem Class Reference

A class that can be used in a GROUP BY clause. More...

#include <GroupByItem.h>

Public Member Functions

ExpressiongetExpression () const
 It returns the exprsssion to be used to sort the result of a query. More...
 
 GroupByItem (const Expression &e)
 Constructor. More...
 
 GroupByItem (Expression *e)
 Constructor. More...
 
 GroupByItem (const std::string &propertyName)
 Constructor. More...
 
 GroupByItem (const GroupByItem &rhs)
 Copy constructor. More...
 
GroupByItemoperator= (const GroupByItem &rhs)
 
void setExpression (Expression *e)
 It sets the expression to sort the result of a query. More...
 
 ~GroupByItem ()
 Destructor. More...
 

Private Attributes

std::auto_ptr< Expressionm_field
 A valid expression. More...
 

Detailed Description

A class that can be used in a GROUP BY clause.

See also
GroupBy

Definition at line 50 of file GroupByItem.h.

Constructor & Destructor Documentation

te::da::GroupByItem::GroupByItem ( const Expression e)
explicit

Constructor.

Parameters
eAn expression to be used in an GROUP BY clause.
orderThe sort order.
te::da::GroupByItem::GroupByItem ( Expression e)
explicit

Constructor.

Parameters
eAn expression to be used in an GROUP BY clause.
orderThe sort order.
Note
The GroupByItem will take the ownership of Expression.
te::da::GroupByItem::GroupByItem ( const std::string &  propertyName)
explicit

Constructor.

Parameters
propertyNameA property name.
orderThe sort order.
te::da::GroupByItem::GroupByItem ( const GroupByItem rhs)
explicit

Copy constructor.

te::da::GroupByItem::~GroupByItem ( )

Destructor.

Member Function Documentation

Expression* te::da::GroupByItem::getExpression ( ) const

It returns the exprsssion to be used to sort the result of a query.

Returns
The exprsssion to be used to sort the result of a query.
GroupByItem& te::da::GroupByItem::operator= ( const GroupByItem rhs)

Assignment operator.

void te::da::GroupByItem::setExpression ( Expression e)

It sets the expression to sort the result of a query.

Parameters
eThe expression to be used to sort the result of a query.
Note
The GroupByItem will take the expression ownership.

Member Data Documentation

std::auto_ptr<Expression> te::da::GroupByItem::m_field
private

A valid expression.

Definition at line 107 of file GroupByItem.h.


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