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 theJoinpart 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 voidaccept(SelectVisitor visitor)Accept a visitor (e.g.StringgetName()Get the name of the joined tableStringgetSpecification()Get the join specificationJoinTypegetType()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 newJoininstance- 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:SelectFragmentAccept a visitor (e.g. a renderer or validator)- Specified by:
acceptin interfaceSelectFragment- Parameters:
visitor- visitor to accept
-
-