Package adql.query.from
Class OuterJoin
java.lang.Object
adql.query.from.ADQLJoin
adql.query.from.OuterJoin
- All Implemented Interfaces:
ADQLObject
,FromContent
- Direct Known Subclasses:
SQLServer_OuterJoin
Inner join.
Possible syntaxes:
T1 (LEFT|RIGHT|FULL) OUTER JOIN T2 ON <condition>
T1 (LEFT|RIGHT|FULL) OUTER JOIN T2 USING(<columns list>)
T1 NATURAL (LEFT|RIGHT|FULL) OUTER JOIN T2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
All OUTER JOIN type: left, right and full. -
Field Summary
FieldsFields inherited from class adql.query.from.ADQLJoin
condition, lstColumns, natural
-
Constructor Summary
ConstructorsConstructorDescriptionOuterJoin
(FromContent left, FromContent right, OuterJoin.OuterType type) Builds a NATURAL OUTER join between the two given "tables".OuterJoin
(FromContent left, FromContent right, OuterJoin.OuterType type, ClauseConstraints condition) Builds an OUTER join between the two given "tables" with the given condition.OuterJoin
(FromContent left, FromContent right, OuterJoin.OuterType type, Collection<ADQLColumn> lstColumns) Builds an OUTER join between the two given "tables" with a list of columns to join.Builds a copy of the given OUTER join. -
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.final OuterJoin.OuterType
getType()
Gets the OUTER join type (left, right or full).void
setType
(OuterJoin.OuterType type) Sets the OUTER join type (left, right or full).Methods inherited from class adql.query.from.ADQLJoin
addAllExcept, adqlIterator, findAtMostOneColumn, findExactlyOneColumn, getDBColumns, getJoinCondition, getJoinedColumns, getLeftTable, getName, getPosition, getRightTable, getTables, getTablesByAlias, hasJoinedColumns, isCommonColumn, isNatural, setJoinCondition, setJoinedColumns, setLeftTable, setNatural, setPosition, setRightTable, toADQL
-
Field Details
-
FEATURE
Description of this ADQL Feature.- Since:
- 2.0
-
-
Constructor Details
-
OuterJoin
Builds a NATURAL OUTER join between the two given "tables".- Parameters:
left
- Left "table".right
- Right "table".type
- OUTER join type (left, right or full).- See Also:
-
OuterJoin
public OuterJoin(FromContent left, FromContent right, OuterJoin.OuterType type, ClauseConstraints condition) Builds an OUTER join between the two given "tables" with the given condition.- Parameters:
left
- Left "table".right
- Right "table".type
- Outer join type (left, right or full).condition
- Join condition.- See Also:
-
OuterJoin
public OuterJoin(FromContent left, FromContent right, OuterJoin.OuterType type, Collection<ADQLColumn> lstColumns) Builds an OUTER join between the two given "tables" with a list of columns to join.- Parameters:
left
- Left "table".right
- Right "table".type
- Outer join type.lstColumns
- List of columns to join.- See Also:
-
OuterJoin
Builds a copy of the given OUTER join.- Parameters:
toCopy
- The OUTER 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, ...).
-
getType
Gets the OUTER join type (left, right or full).- Returns:
- Its OUTER join type.
-
setType
Sets the OUTER join type (left, right or full).- Parameters:
type
- Its new OUTER join type.
-
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.
-