Class Join
- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.statement.select.Join
-
- All Implemented Interfaces:
java.io.Serializable
,ASTNodeAccess
public class Join extends ASTNodeAccessImpl
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
apply
private boolean
cross
private FromItem
fromItem
private boolean
full
private boolean
global
private boolean
inner
private JoinHint
joinHint
private KSQLJoinWindow
joinWindow
private boolean
left
private boolean
natural
private java.util.LinkedList<Expression>
onExpressions
private boolean
outer
private boolean
right
private boolean
semi
private boolean
simple
private boolean
straight
private java.util.LinkedList<Column>
usingColumns
-
Constructor Summary
Constructors Constructor Description Join()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Join
addOnExpression(Expression expression)
Join
addUsingColumns(java.util.Collection<? extends Column> usingColumns)
Join
addUsingColumns(Column... usingColumns)
FromItem
getFromItem()
JoinHint
getJoinHint()
KSQLJoinWindow
getJoinWindow()
Return the "WITHIN" join window (if any)Expression
getOnExpression()
Deprecated.java.util.Collection<Expression>
getOnExpressions()
FromItem
getRightItem()
Returns the right item of the joinjava.util.List<Column>
getUsingColumns()
Returns the "USING" list ofColumn
s (if any)boolean
isApply()
boolean
isCross()
boolean
isFull()
Whether is a "FULL" joinboolean
isGlobal()
boolean
isInner()
boolean
isInnerJoin()
A JOIN means INNER when the INNER keyword is set or when no other qualifier has been set.boolean
isLeft()
Whether is a "LEFT" joinboolean
isNatural()
Whether is a "NATURAL" joinboolean
isOuter()
Whether is a "OUTER" joinboolean
isRight()
Whether is a "RIGHT" joinboolean
isSemi()
Whether is a "SEMI" joinboolean
isSimple()
boolean
isStraight()
boolean
isWindowJoin()
void
setApply(boolean apply)
void
setCross(boolean cross)
Join
setFromItem(FromItem fromItem)
void
setFull(boolean b)
void
setGlobal(boolean b)
void
setInner(boolean b)
Sets the INNER keyword and switches off any contradicting qualifiers automatically.Join
setJoinHint(JoinHint joinHint)
void
setJoinWindow(KSQLJoinWindow joinWindow)
void
setLeft(boolean b)
Sets the LEFT keyword and switches off any contradicting qualifiers automatically.void
setNatural(boolean b)
void
setOnExpression(Expression expression)
Deprecated.Join
setOnExpressions(java.util.Collection<Expression> expressions)
void
setOuter(boolean b)
Sets the OUTER keyword and switches off any contradicting qualifiers automatically.void
setRight(boolean b)
Sets the RIGHT keyword and switches off any contradicting qualifiers automatically.void
setRightItem(FromItem item)
void
setSemi(boolean b)
void
setSimple(boolean b)
void
setStraight(boolean b)
void
setUsingColumns(java.util.List<Column> list)
java.lang.String
toString()
Join
withApply(boolean apply)
Join
withCross(boolean cross)
Join
withFull(boolean b)
Join
withInner(boolean b)
Join
withJoinWindow(KSQLJoinWindow joinWindow)
Join
withLeft(boolean b)
Join
withNatural(boolean b)
Join
withOnExpression(Expression expression)
Deprecated.Join
withOuter(boolean b)
Join
withRight(boolean b)
Join
withRightItem(FromItem item)
Deprecated.Join
withSemi(boolean b)
Join
withSimple(boolean b)
Join
withStraight(boolean b)
Join
withUsingColumns(java.util.List<Column> list)
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, setASTNode
-
-
-
-
Field Detail
-
outer
private boolean outer
-
right
private boolean right
-
left
private boolean left
-
natural
private boolean natural
-
global
private boolean global
-
full
private boolean full
-
inner
private boolean inner
-
simple
private boolean simple
-
cross
private boolean cross
-
semi
private boolean semi
-
straight
private boolean straight
-
apply
private boolean apply
-
fromItem
private FromItem fromItem
-
onExpressions
private final java.util.LinkedList<Expression> onExpressions
-
usingColumns
private final java.util.LinkedList<Column> usingColumns
-
joinWindow
private KSQLJoinWindow joinWindow
-
joinHint
private JoinHint joinHint
-
-
Method Detail
-
isSimple
public boolean isSimple()
-
withSimple
public Join withSimple(boolean b)
-
setSimple
public void setSimple(boolean b)
-
isInnerJoin
public boolean isInnerJoin()
A JOIN means INNER when the INNER keyword is set or when no other qualifier has been set.- Returns:
- Tells, if a JOIN means a qualified INNER JOIN.
-
isInner
public boolean isInner()
- Returns:
- Tells, if the INNER keyword has been set.
-
withInner
public Join withInner(boolean b)
-
setInner
public void setInner(boolean b)
Sets the INNER keyword and switches off any contradicting qualifiers automatically.
-
isStraight
public boolean isStraight()
-
withStraight
public Join withStraight(boolean b)
-
setStraight
public void setStraight(boolean b)
-
isOuter
public boolean isOuter()
Whether is a "OUTER" join- Returns:
- true if is a "OUTER" join
-
withOuter
public Join withOuter(boolean b)
-
setOuter
public void setOuter(boolean b)
Sets the OUTER keyword and switches off any contradicting qualifiers automatically.
-
isApply
public boolean isApply()
-
withApply
public Join withApply(boolean apply)
-
setApply
public void setApply(boolean apply)
-
isSemi
public boolean isSemi()
Whether is a "SEMI" join- Returns:
- true if is a "SEMI" join
-
withSemi
public Join withSemi(boolean b)
-
setSemi
public void setSemi(boolean b)
-
isLeft
public boolean isLeft()
Whether is a "LEFT" join- Returns:
- true if is a "LEFT" join
-
withLeft
public Join withLeft(boolean b)
-
setLeft
public void setLeft(boolean b)
Sets the LEFT keyword and switches off any contradicting qualifiers automatically.
-
isRight
public boolean isRight()
Whether is a "RIGHT" join- Returns:
- true if is a "RIGHT" join
-
withRight
public Join withRight(boolean b)
-
setRight
public void setRight(boolean b)
Sets the RIGHT keyword and switches off any contradicting qualifiers automatically.
-
isNatural
public boolean isNatural()
Whether is a "NATURAL" join- Returns:
- true if is a "NATURAL" join
-
isGlobal
public boolean isGlobal()
-
withNatural
public Join withNatural(boolean b)
-
setNatural
public void setNatural(boolean b)
-
setGlobal
public void setGlobal(boolean b)
-
isFull
public boolean isFull()
Whether is a "FULL" join- Returns:
- true if is a "FULL" join
-
withFull
public Join withFull(boolean b)
-
setFull
public void setFull(boolean b)
-
isCross
public boolean isCross()
-
withCross
public Join withCross(boolean cross)
-
setCross
public void setCross(boolean cross)
-
getRightItem
public FromItem getRightItem()
Returns the right item of the join
-
setRightItem
public void setRightItem(FromItem item)
-
getFromItem
public FromItem getFromItem()
-
getOnExpression
@Deprecated public Expression getOnExpression()
Deprecated.Returns the "ON" expression (if any)
-
getOnExpressions
public java.util.Collection<Expression> getOnExpressions()
-
withOnExpression
@Deprecated public Join withOnExpression(Expression expression)
Deprecated.
-
setOnExpression
@Deprecated public void setOnExpression(Expression expression)
Deprecated.
-
addOnExpression
public Join addOnExpression(Expression expression)
-
setOnExpressions
public Join setOnExpressions(java.util.Collection<Expression> expressions)
-
getUsingColumns
public java.util.List<Column> getUsingColumns()
Returns the "USING" list ofColumn
s (if any)
-
setUsingColumns
public void setUsingColumns(java.util.List<Column> list)
-
isWindowJoin
public boolean isWindowJoin()
-
getJoinWindow
public KSQLJoinWindow getJoinWindow()
Return the "WITHIN" join window (if any)- Returns:
-
withJoinWindow
public Join withJoinWindow(KSQLJoinWindow joinWindow)
-
setJoinWindow
public void setJoinWindow(KSQLJoinWindow joinWindow)
-
getJoinHint
public JoinHint getJoinHint()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-