A Select can be used as a source of information in another query. More...
#include <SubSelect.h>
Public Types | |
typedef R | ReturnType |
typedef QueryVisitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
FromItem * | clone () 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... | |
Select * | getSelect () const |
It returns the associated subselect. More... | |
SubSelect & | operator= (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< Select > | m_select |
The associated SubSelect. More... | |
A Select can be used as a source of information in another query.
Definition at line 49 of file SubSelect.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::da::SubSelect::SubSelect | ( | Select * | s, |
const std::string & | alias | ||
) |
Constructor.
s | The real SubSelect to be associated to this object. |
Definition at line 30 of file SubSelect.cpp.
te::da::SubSelect::SubSelect | ( | const Select & | s, |
const std::string & | alias | ||
) |
Constructor.
s | The real SubSelect to be associated to this object. |
Definition at line 36 of file SubSelect.cpp.
te::da::SubSelect::SubSelect | ( | const SubSelect & | rhs | ) |
te::da::SubSelect::~SubSelect | ( | ) |
Destructor.
Definition at line 49 of file SubSelect.cpp.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtual |
It creates a new copy of this FromItem.
Implements te::da::FromItem.
Definition at line 64 of file SubSelect.cpp.
|
inherited |
It returns the alias associated to the source item.
Definition at line 47 of file FromItem.cpp.
Referenced by te::map::QueryLayer::getSchema(), te::serialize::xml::Save(), te::qt::widgets::DataSetWidget::setFrom(), and te::da::SQLVisitor::visit().
te::da::Select * te::da::SubSelect::getSelect | ( | ) | const |
It returns the associated subselect.
Definition at line 69 of file SubSelect.cpp.
Referenced by te::da::SQLVisitor::visit().
te::da::SubSelect & te::da::SubSelect::operator= | ( | const SubSelect & | rhs | ) |
Assignment operator.
Definition at line 53 of file SubSelect.cpp.
References m_select, and te::da::FromItem::operator=().
|
inherited |
It sets the alias for a from source item.
alias | The alias for a from source item. |
Definition at line 42 of file FromItem.cpp.
void te::da::SubSelect::setSelect | ( | Select * | s | ) |
|
protectedinherited |
An alias for the output name.
Definition at line 93 of file FromItem.h.
Referenced by te::da::FromItem::operator=().
|
private |
The associated SubSelect.
Definition at line 101 of file SubSelect.h.
Referenced by operator=(), and SubSelect().