public class Union extends java.lang.Object implements SelectBody
Modifier and Type | Field and Description |
---|---|
private boolean |
all |
private boolean |
distinct |
private Limit |
limit |
private java.util.List<OrderByElement> |
orderByElements |
private java.util.List<PlainSelect> |
plainSelects |
Constructor and Description |
---|
Union() |
Modifier and Type | Method and Description |
---|---|
void |
accept(SelectVisitor selectVisitor) |
Limit |
getLimit() |
java.util.List<OrderByElement> |
getOrderByElements() |
java.util.List<PlainSelect> |
getPlainSelects()
the list of
PlainSelect s in this UNION |
boolean |
isAll()
This is not 100% right; every UNION should have their own All/Distinct clause...
|
boolean |
isDistinct()
This is not 100% right; every UNION should have their own All/Distinct clause...
|
void |
setAll(boolean all) |
void |
setDistinct(boolean distinct) |
void |
setLimit(Limit limit) |
void |
setOrderByElements(java.util.List<OrderByElement> orderByElements) |
void |
setPlainSelects(java.util.List<PlainSelect> list) |
java.lang.String |
toString() |
private java.util.List<PlainSelect> plainSelects
private java.util.List<OrderByElement> orderByElements
private Limit limit
private boolean distinct
private boolean all
public void accept(SelectVisitor selectVisitor)
accept
in interface SelectBody
public java.util.List<OrderByElement> getOrderByElements()
public java.util.List<PlainSelect> getPlainSelects()
PlainSelect
s in this UNIONPlainSelect
spublic void setOrderByElements(java.util.List<OrderByElement> orderByElements)
public void setPlainSelects(java.util.List<PlainSelect> list)
public Limit getLimit()
public void setLimit(Limit limit)
public boolean isAll()
public void setAll(boolean all)
public boolean isDistinct()
public void setDistinct(boolean distinct)
public java.lang.String toString()
toString
in class java.lang.Object