te::da::SubSelect Class Referenceabstract

A Select can be used as a source of information in another query. More...

#include <SubSelect.h>

Inheritance diagram for te::da::SubSelect:
te::da::FromItem te::common::BaseVisitable< QueryVisitor >

Public Types

typedef void ReturnType
 
typedef QueryVisitor VisitorType
 

Public Member Functions

virtual ReturnType accept (VisitorType &guest) const =0
 It call the visit method from the guest object. More...
 
FromItemclone () const
 It creates a new copy of this FromItem. More...
 
const std::string & getAlias () const
 It returns the alias associated to the source item. More...
 
SelectgetSelect () const
 It returns the associated subselect. More...
 
SubSelectoperator= (const SubSelect &rhs)
 
void setAlias (const std::string &alias)
 It sets the alias for a from source item. More...
 
void setSelect (Select *s)
 It sets the real SubSelect associated to this object. More...
 
TE_DEFINE_VISITABLE SubSelect (Select *s, const std::string &alias)
 Constructor. More...
 
 SubSelect (const Select &s, const std::string &alias)
 Constructor. More...
 
 SubSelect (const SubSelect &rhs)
 Copy constructor. More...
 
 ~SubSelect ()
 Destructor. More...
 

Protected Attributes

std::string m_alias
 An alias for the output name. More...
 

Private Attributes

std::auto_ptr< Selectm_select
 The associated SubSelect. More...
 

Detailed Description

A Select can be used as a source of information in another query.

See also
FromItem, DataSetName, DataSetType, DataSet, FromFunctionCall, Join

Definition at line 49 of file SubSelect.h.

Member Typedef Documentation

typedef void te::common::BaseVisitable< QueryVisitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

TE_DEFINE_VISITABLE te::da::SubSelect::SubSelect ( Select s,
const std::string &  alias 
)

Constructor.

Parameters
sThe real SubSelect to be associated to this object.
Note
The SubSelect will take the ownership of the Select.
te::da::SubSelect::SubSelect ( const Select s,
const std::string &  alias 
)

Constructor.

Parameters
sThe real SubSelect to be associated to this object.
te::da::SubSelect::SubSelect ( const SubSelect rhs)

Copy constructor.

te::da::SubSelect::~SubSelect ( )

Destructor.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , void >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
FromItem* te::da::SubSelect::clone ( ) const
virtual

It creates a new copy of this FromItem.

Implements te::da::FromItem.

const std::string& te::da::FromItem::getAlias ( ) const
inherited

It returns the alias associated to the source item.

Returns
The alias for the source item.
Select* te::da::SubSelect::getSelect ( ) const

It returns the associated subselect.

Returns
The associated subselect.
SubSelect& te::da::SubSelect::operator= ( const SubSelect rhs)

Assignment operator.

void te::da::FromItem::setAlias ( const std::string &  alias)
inherited

It sets the alias for a from source item.

Parameters
aliasThe alias for a from source item.
Note
The FromItem will take the ownership of the given alias.
void te::da::SubSelect::setSelect ( Select s)

It sets the real SubSelect associated to this object.

Parameters
sThe SubSelect to be associated to the FromItem object.
Note
The SubSelect will take the ownership of the Select.

Member Data Documentation

std::string te::da::FromItem::m_alias
protectedinherited

An alias for the output name.

Definition at line 93 of file FromItem.h.

std::auto_ptr<Select> te::da::SubSelect::m_select
private

The associated SubSelect.

Definition at line 101 of file SubSelect.h.


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