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.
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.
Constructor.
- Parameters
-
first | The first FromItem to be combined. |
second | The second FromItem to be combined. |
t | The join type. |
c | The join condition. |
te::da::Join::Join |
( |
const Join & |
rhs | ) |
|
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.
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.
It returns the join condition.
- Returns
- The join condition.
FromItem* te::da::Join::getFirst |
( |
| ) |
const |
It returns the first from item involved in the join.
- Returns
- The first item involved in the join.
FromItem* te::da::Join::getSecond |
( |
| ) |
const |
It returns the second item involved in the join.
- Returns
- The second item involved in the join.
JoinType te::da::Join::getType |
( |
| ) |
const |
It returns the join type.
- Returns
- The join type.
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.
Join& te::da::Join::operator= |
( |
const Join & |
rhs | ) |
|
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.
It sets the join condition.
- Parameters
-
- Note
- The Join will take the ownership of the given condition.
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.
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.
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.
void te::da::Join::setType |
( |
JoinType |
t | ) |
|
It sets join type.
- Parameters
-
std::string te::da::FromItem::m_alias |
|
protectedinherited |
An alias for the output name.
Definition at line 93 of file FromItem.h.
The join condition.
Definition at line 170 of file Join.h.
std::auto_ptr<FromItem> te::da::Join::m_first |
|
private |
The first item involved in the join.
Definition at line 168 of file Join.h.
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.
std::auto_ptr<FromItem> te::da::Join::m_second |
|
private |
The first item involved in the join.
Definition at line 169 of file Join.h.
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_master/src/terralib/dataaccess/query/Join.h