All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 31 of file GroupByItem.cpp.

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.

Definition at line 36 of file GroupByItem.cpp.

te::da::GroupByItem::GroupByItem ( const std::string &  propertyName)
explicit

Constructor.

Parameters
propertyNameA property name.
orderThe sort order.

Definition at line 41 of file GroupByItem.cpp.

te::da::GroupByItem::GroupByItem ( const GroupByItem rhs)
explicit

Copy constructor.

Definition at line 46 of file GroupByItem.cpp.

References m_field.

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

Destructor.

Definition at line 52 of file GroupByItem.cpp.

Member Function Documentation

te::da::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.

Definition at line 71 of file GroupByItem.cpp.

Referenced by te::serialize::xml::Save().

te::da::GroupByItem & te::da::GroupByItem::operator= ( const GroupByItem rhs)

Assignment operator.

Definition at line 56 of file GroupByItem.cpp.

References m_field.

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.

Definition at line 66 of file GroupByItem.cpp.

Member Data Documentation

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

A valid expression.

Definition at line 107 of file GroupByItem.h.

Referenced by GroupByItem(), and operator=().


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