- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.statement.select.Select
-
- net.sf.jsqlparser.statement.select.SetOperationList
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
,FromItem
,Statement
public class SetOperationList extends Select
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetOperationList.SetOperationType
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SetOperation>
operations
private java.util.List<OrderByElement>
orderByElements
private java.util.List<Select>
selects
-
Fields inherited from class net.sf.jsqlparser.statement.select.Select
alias, fetch, forClause, forMode, forUpdateTable, isolation, limit, limitBy, offset, oracleSiblings, pivot, unPivot, withItemsList
-
-
Constructor Summary
Constructors Constructor Description SetOperationList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(FromItemVisitor<T> fromItemVisitor, S context)
<T,S>
Taccept(SelectVisitor<T> selectVisitor, S context)
SetOperationList
addOperations(java.util.Collection<? extends SetOperation> operationList)
SetOperationList
addOperations(SetOperation... operationList)
SetOperationList
addSelects(java.util.Collection<? extends Select> selects)
SetOperationList
addSelects(Select... selects)
java.lang.StringBuilder
appendSelectBodyTo(java.lang.StringBuilder builder)
SetOperation
getOperation(int index)
java.util.List<SetOperation>
getOperations()
java.util.List<OrderByElement>
getOrderByElements()
Select
getSelect(int index)
java.util.List<Select>
getSelects()
void
setBracketsOpsAndSelects(java.util.List<Select> select, java.util.List<SetOperation> ops)
void
setOperations(java.util.List<SetOperation> operations)
void
setOrderByElements(java.util.List<OrderByElement> orderByElements)
void
setSelects(java.util.List<Select> selects)
SetOperationList
withOperations(java.util.List<SetOperation> operationList)
SetOperationList
withSelects(java.util.List<Select> selects)
-
Methods inherited from class net.sf.jsqlparser.statement.select.Select
accept, accept, addOrderByElements, addOrderByElements, addOrderByElements, addOrderByExpressions, addWithItemsList, addWithItemsList, appendStringListTo, appendTo, as, getAlias, getFetch, getForClause, getFormattedList, getFormattedList, getForMode, getForUpdateTable, getIsolation, getLimit, getLimitBy, getOffset, getPivot, getPlainSelect, getSelectBody, getSetOperationList, getStringList, getStringList, getUnPivot, getValues, getWait, getWithItemsList, isNoWait, isOracleSiblings, isSkipLocked, orderByToString, orderByToString, setAlias, setFetch, setForClause, setForMode, setForUpdateTable, setIsolation, setLimit, setLimitBy, setNoWait, setOffset, setOracleSiblings, setPivot, setSkipLocked, setUnPivot, setWait, setWithItemsList, toString, withAlias, withFetch, withForMode, withForUpdateTable, withIsolation, withLimit, withLimitBy, withOffset, withOracleSiblings, withOrderByElements, withSkipLocked, withWait, withWithItemsList
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
getASTNode, getParent, getParent, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
Methods inherited from interface net.sf.jsqlparser.expression.Expression
accept
-
-
-
-
Field Detail
-
selects
private java.util.List<Select> selects
-
operations
private java.util.List<SetOperation> operations
-
orderByElements
private java.util.List<OrderByElement> orderByElements
-
-
Method Detail
-
accept
public <T,S> T accept(SelectVisitor<T> selectVisitor, S context)
-
accept
public <T,S> T accept(FromItemVisitor<T> fromItemVisitor, S context)
-
getOrderByElements
public java.util.List<OrderByElement> getOrderByElements()
- Overrides:
getOrderByElements
in classSelect
-
setOrderByElements
public void setOrderByElements(java.util.List<OrderByElement> orderByElements)
- Overrides:
setOrderByElements
in classSelect
-
getSelects
public java.util.List<Select> getSelects()
-
setSelects
public void setSelects(java.util.List<Select> selects)
-
getSelect
public Select getSelect(int index)
-
getOperations
public java.util.List<SetOperation> getOperations()
-
setOperations
public void setOperations(java.util.List<SetOperation> operations)
-
getOperation
public SetOperation getOperation(int index)
-
setBracketsOpsAndSelects
public void setBracketsOpsAndSelects(java.util.List<Select> select, java.util.List<SetOperation> ops)
-
appendSelectBodyTo
public java.lang.StringBuilder appendSelectBodyTo(java.lang.StringBuilder builder)
- Specified by:
appendSelectBodyTo
in classSelect
-
withOperations
public SetOperationList withOperations(java.util.List<SetOperation> operationList)
-
withSelects
public SetOperationList withSelects(java.util.List<Select> selects)
-
addSelects
public SetOperationList addSelects(Select... selects)
-
addSelects
public SetOperationList addSelects(java.util.Collection<? extends Select> selects)
-
addOperations
public SetOperationList addOperations(SetOperation... operationList)
-
addOperations
public SetOperationList addOperations(java.util.Collection<? extends SetOperation> operationList)
-
-