Package adql.query.from
Class InnerJoin
java.lang.Object
adql.query.from.ADQLJoin
adql.query.from.InnerJoin
- All Implemented Interfaces:
ADQLObject
,FromContent
- Direct Known Subclasses:
SQLServer_InnerJoin
Inner join.
Possible syntaxes:
T1 [INNER] JOIN T2 ON <condition>
T1 [INNER] JOIN T2 USING(<columns list>)
T1 NATURAL [INNER] JOIN T2
-
Field Summary
FieldsFields inherited from class adql.query.from.ADQLJoin
condition, lstColumns, natural
-
Constructor Summary
ConstructorsConstructorDescriptionInnerJoin
(FromContent left, FromContent right) Builds a NATURAL INNER JOIN between the two given "tables".InnerJoin
(FromContent left, FromContent right, ClauseConstraints condition) Builds an INNER JOIN between the two given "tables" with the given condition.InnerJoin
(FromContent left, FromContent right, Collection<ADQLColumn> lstColumns) Builds an INNER JOIN between the two given "tables" with the list of columns to join.Builds a copy of the given INNER 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.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
-
InnerJoin
Builds a NATURAL INNER JOIN between the two given "tables".- Parameters:
left
- Left "table".right
- Right "table".- See Also:
-
InnerJoin
Builds an INNER JOIN between the two given "tables" with the given condition.- Parameters:
left
- Left "table".right
- Right "table".condition
- Join condition.- See Also:
-
InnerJoin
Builds an INNER JOIN between the two given "tables" with the list of columns to join.- Parameters:
left
- Left "table".right
- Right "table".lstColumns
- List of columns to join.- See Also:
-
InnerJoin
Builds a copy of the given INNER join.- Parameters:
toCopy
- The INNER 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, ...).
-
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.
-