net.sf.jsqlparser.statement.select
Class Union
java.lang.Object
net.sf.jsqlparser.statement.select.Union
- All Implemented Interfaces:
- SelectBody
public class Union
- extends java.lang.Object
- implements SelectBody
A UNION statement
Constructor Summary |
Union()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
plainSelects
private java.util.List plainSelects
orderByElements
private java.util.List orderByElements
limit
private Limit limit
distinct
private boolean distinct
all
private boolean all
Union
public Union()
accept
public void accept(SelectVisitor selectVisitor)
- Specified by:
accept
in interface SelectBody
getOrderByElements
public java.util.List getOrderByElements()
getPlainSelects
public java.util.List getPlainSelects()
- the list of
PlainSelect
s in this UNION
- Returns:
- the list of
PlainSelect
s
setOrderByElements
public void setOrderByElements(java.util.List orderByElements)
setPlainSelects
public void setPlainSelects(java.util.List list)
getLimit
public Limit getLimit()
setLimit
public void setLimit(Limit limit)
isAll
public boolean isAll()
- This is not 100% right; every UNION should have their own All/Distinct clause...
setAll
public void setAll(boolean all)
isDistinct
public boolean isDistinct()
- This is not 100% right; every UNION should have their own All/Distinct clause...
setDistinct
public void setDistinct(boolean distinct)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object