net.sf.jsqlparser.statement.select
Class Union

java.lang.Object
  extended by net.sf.jsqlparser.statement.select.Union
All Implemented Interfaces:
SelectBody

public class Union
extends java.lang.Object
implements SelectBody

A UNION statement


Field Summary
private  boolean all
           
private  boolean distinct
           
private  Limit limit
           
private  java.util.List orderByElements
           
private  java.util.List plainSelects
           
 
Constructor Summary
Union()
           
 
Method Summary
 void accept(SelectVisitor selectVisitor)
           
 Limit getLimit()
           
 java.util.List getOrderByElements()
           
 java.util.List getPlainSelects()
          the list of PlainSelects 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 orderByElements)
           
 void setPlainSelects(java.util.List list)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

plainSelects

private java.util.List plainSelects

orderByElements

private java.util.List orderByElements

limit

private Limit limit

distinct

private boolean distinct

all

private boolean all
Constructor Detail

Union

public Union()
Method Detail

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 PlainSelects in this UNION

Returns:
the list of PlainSelects

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