A Join clause combines two FromItems.
More...
#include <Join.h>
A Join clause combines two FromItems.
- See also
- FromItem, DataSetName, FromFunctionCall, SubSelect
Definition at line 50 of file Join.h.
◆ ReturnType
◆ VisitorType
◆ Join() [1/3]
Constructor.
- Parameters
-
first | The first FromItem to be combined. |
second | The second FromItem to be combined. |
t | The join type. |
c | The join condition. |
- Note
- The Join will take the ownership of the First, Second and JoinCondition.
◆ Join() [2/3]
Constructor.
- Parameters
-
first | The first FromItem to be combined. |
second | The second FromItem to be combined. |
t | The join type. |
c | The join condition. |
◆ Join() [3/3]
te::da::Join::Join |
( |
const Join & |
rhs | ) |
|
◆ ~Join()
◆ accept()
It call the visit method from the guest object.
- Parameters
-
guest | The guest or visitor. |
- Returns
- Any valid value define by the template type R.
◆ clone()
FromItem * te::da::Join::clone |
( |
| ) |
const |
|
virtual |
◆ getAlias()
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.
◆ getCondition()
It returns the join condition.
- Returns
- The join condition.
◆ getFirst()
FromItem * te::da::Join::getFirst |
( |
| ) |
const |
It returns the first from item involved in the join.
- Returns
- The first item involved in the join.
◆ getSecond()
FromItem * te::da::Join::getSecond |
( |
| ) |
const |
It returns the second item involved in the join.
- Returns
- The second item involved in the join.
◆ getType()
JoinType te::da::Join::getType |
( |
| ) |
const |
It returns the join type.
- Returns
- The join type.
◆ isNatural()
bool te::da::Join::isNatural |
( |
| ) |
const |
|
inline |
It tells if the join is Natural.
- Returns
- True if it is a Natural join, otherwise, false.
Definition at line 141 of file Join.h.
◆ operator=()
Join & te::da::Join::operator= |
( |
const Join & |
rhs | ) |
|
◆ setAlias()
void te::da::FromItem::setAlias |
( |
const std::string & |
alias | ) |
|
|
inherited |
It sets the alias for a from source item.
- Parameters
-
alias | The alias for a from source item. |
- Note
- The FromItem will take the ownership of the given alias.
◆ setCondition()
It sets the join condition.
- Parameters
-
- Note
- The Join will take the ownership of the given condition.
◆ setFirst()
void te::da::Join::setFirst |
( |
FromItem * |
item | ) |
|
It sets first item involved in the join.
- Parameters
-
item | The first item involved in the join. |
- Note
- The Join will take the ownership of the given item.
◆ setNatural()
void te::da::Join::setNatural |
( |
bool |
n | ) |
|
|
inline |
It marks if the join is a natural join.
- Parameters
-
n | If true this will be a natural join. |
Definition at line 148 of file Join.h.
◆ setSecond()
void te::da::Join::setSecond |
( |
FromItem * |
item | ) |
|
It sets second item involved in the join.
- Parameters
-
item | The second item involved in the join. |
- Note
- The Join will take the ownership of the given item.
◆ setType()
void te::da::Join::setType |
( |
JoinType |
t | ) |
|
It sets join type.
- Parameters
-
◆ m_alias
std::string te::da::FromItem::m_alias |
|
protectedinherited |
An alias for the output name.
Definition at line 93 of file FromItem.h.
◆ m_condition
The join condition.
Definition at line 170 of file Join.h.
◆ m_first
std::unique_ptr<FromItem> te::da::Join::m_first |
|
private |
The first item involved in the join.
Definition at line 168 of file Join.h.
◆ m_isNatural
bool te::da::Join::m_isNatural |
|
private |
Natural is a shorthand for a JoinConditionUsing list that mentions all columns in the two tables that have the same names.
Definition at line 172 of file Join.h.
◆ m_second
std::unique_ptr<FromItem> te::da::Join::m_second |
|
private |
The first item involved in the join.
Definition at line 169 of file Join.h.
◆ m_type
The join type.
Definition at line 171 of file Join.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/dataaccess/query/Join.h