Package com.exasol.sql.dql.select
Class Join
- java.lang.Object
-
- com.exasol.sql.AbstractFragment
-
- com.exasol.sql.dql.select.Join
-
- All Implemented Interfaces:
SelectFragment
,Fragment
public class Join extends AbstractFragment implements SelectFragment
This class implements theJoin
part of a WHERE clause.
-
-
Field Summary
-
Fields inherited from class com.exasol.sql.AbstractFragment
root
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SelectVisitor visitor)
Accept a visitor (e.g.String
getName()
Get the name of the joined tableString
getSpecification()
Get the join specificationJoinType
getType()
Get the type of the join-
Methods inherited from class com.exasol.sql.AbstractFragment
getRoot
-
-
-
-
Constructor Detail
-
Join
public Join(Fragment root, JoinType type, String name, String specification)
Create a newJoin
instance- Parameters:
root
- SQL statement this JOIN belongs totype
- type of join (e.g. INNER, LEFT or RIGHT OUTER)name
- name of the table to be joinedspecification
- join specification (e.g. ON or USING)
-
-
Method Detail
-
getType
public JoinType getType()
Get the type of the join- Returns:
- join type (e.g. INNER or LEFT)
-
getName
public String getName()
Get the name of the joined table- Returns:
- name of the joined table
-
getSpecification
public String getSpecification()
Get the join specification- Returns:
- join specification
-
accept
public void accept(SelectVisitor visitor)
Description copied from interface:SelectFragment
Accept a visitor (e.g. a renderer or validator)- Specified by:
accept
in interfaceSelectFragment
- Parameters:
visitor
- visitor to accept
-
-