public class CrossJoin extends ADQLJoin
Cross join.
In ADQL "T1, T2" is equivalent to "T1, T2" or to "T1 CROSS JOIN T2" in SQL.
condition, lstColumns, natural
Constructor and Description |
---|
CrossJoin(CrossJoin toCopy)
Builds a copy of the given CROSS join.
|
CrossJoin(FromContent left,
FromContent right)
Builds a CROSS join between the two given "tables".
|
Modifier and Type | Method and Description |
---|---|
ADQLObject |
getCopy()
Gets a (deep) copy of this ADQL object.
|
java.lang.String |
getJoinType()
Gets the type of this join.
|
void |
setJoinCondition(ClauseConstraints cond)
Effect-less method: no join condition can be specified to make a CROSS join.
|
void |
setJoinedColumns(java.util.Collection<ADQLColumn> columns)
Effect-less method: no columns can be joined in a CROSS join.
|
void |
setNatural(boolean natural)
Effect-less method: a CROSS join can not be NATURAL.
|
addAllExcept, adqlIterator, findAtMostOneColumn, findExactlyOneColumn, getDBColumns, getJoinCondition, getJoinedColumns, getLeftTable, getName, getPosition, getRightTable, getTables, getTablesByAlias, hasJoinedColumns, isCommonColumn, isNatural, setLeftTable, setPosition, setRightTable, toADQL
public CrossJoin(FromContent left, FromContent right)
left
- Left "table".right
- Right "table".ADQLJoin.ADQLJoin(FromContent, FromContent)
public CrossJoin(CrossJoin toCopy) throws java.lang.Exception
toCopy
- The CROSS join to copy.java.lang.Exception
- If there is an error during the copy.ADQLJoin.ADQLJoin(ADQLJoin)
public java.lang.String getJoinType()
ADQLJoin
getJoinType
in class ADQLJoin
public void setNatural(boolean natural)
setNatural
in class ADQLJoin
natural
- true means this join must be natural, false else.ADQLJoin.setNatural(boolean)
public void setJoinCondition(ClauseConstraints cond)
setJoinCondition
in class ADQLJoin
cond
- The join condition (condition following ON).ADQLJoin.setJoinCondition(adql.query.ClauseConstraints)
public void setJoinedColumns(java.util.Collection<ADQLColumn> columns)
setJoinedColumns
in class ADQLJoin
columns
- The joined columns.ADQLJoin.setJoinedColumns(java.util.Collection)
public ADQLObject getCopy() throws java.lang.Exception
ADQLObject
getCopy
in interface ADQLObject
getCopy
in class ADQLJoin
java.lang.Exception
- If there is any error during the copy.