Package adql.query.from
Class CrossJoin
java.lang.Object
adql.query.from.ADQLJoin
adql.query.from.CrossJoin
- All Implemented Interfaces:
ADQLObject
,FromContent
Cross join.
In ADQL T1, T2
is equivalent to T1, T2
or to
T1 CROSS JOIN T2
in SQL.
-
Field Summary
FieldsFields inherited from class adql.query.from.ADQLJoin
condition, lstColumns, natural
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds a copy of the given CROSS join.CrossJoin
(FromContent left, FromContent right) Builds a CROSS join between the two given "tables". -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
Gets a (deep) copy of this ADQL object.final LanguageFeature
Get the description of this ADQL's Language Feature.Gets the type of this join.void
Effect-less method: no join condition can be specified to make a CROSS join.void
setJoinedColumns
(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.Methods inherited from class adql.query.from.ADQLJoin
addAllExcept, adqlIterator, findAtMostOneColumn, findExactlyOneColumn, getDBColumns, getJoinCondition, getJoinedColumns, getLeftTable, getName, getPosition, getRightTable, getTables, getTablesByAlias, hasJoinedColumns, isCommonColumn, isNatural, setLeftTable, setPosition, setRightTable, toADQL
-
Field Details
-
FEATURE
Description of this ADQL Feature.- Since:
- 2.0
-
-
Constructor Details
-
CrossJoin
Builds a CROSS join between the two given "tables".- Parameters:
left
- Left "table".right
- Right "table".- See Also:
-
CrossJoin
Builds a copy of the given CROSS join.- Parameters:
toCopy
- The CROSS join to copy.- Throws:
Exception
- If there is an error during the copy.- See Also:
-
-
Method Details
-
getFeatureDescription
Description copied from interface:ADQLObject
Get the description of this ADQL's Language Feature.Note: Getting this description is generally only useful when discovery optional features so that determining if they are allowed to be used in ADQL queries.
- Returns:
- Description of this ADQL object as an ADQL's feature.
-
getJoinType
Description copied from class:ADQLJoin
Gets the type of this join.- Specified by:
getJoinType
in classADQLJoin
- Returns:
- Its join type (i.e. CROSS JOIN, LEFT JOIN, LEFT OUTER JOIN, ...).
-
setNatural
public void setNatural(boolean natural) Effect-less method: a CROSS join can not be NATURAL.- Overrides:
setNatural
in classADQLJoin
- Parameters:
natural
-true
means this join must be natural,false
else.- See Also:
-
setJoinCondition
Effect-less method: no join condition can be specified to make a CROSS join.- Overrides:
setJoinCondition
in classADQLJoin
- Parameters:
cond
- The join condition (condition following ON).- See Also:
-
setJoinedColumns
Effect-less method: no columns can be joined in a CROSS join.- Overrides:
setJoinedColumns
in classADQLJoin
- Parameters:
columns
- The joined columns.- See Also:
-
getCopy
Description copied from interface:ADQLObject
Gets a (deep) copy of this ADQL object.- Specified by:
getCopy
in interfaceADQLObject
- Specified by:
getCopy
in classADQLJoin
- Returns:
- The copy of this ADQL object.
- Throws:
Exception
- If there is any error during the copy.
-