- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.statement.select.Select
-
- net.sf.jsqlparser.statement.select.ParenthesedSelect
-
- net.sf.jsqlparser.statement.select.WithItem
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
,FromItem
,Statement
public class WithItem extends ParenthesedSelect
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
recursive
private java.util.List<SelectItem<?>>
withItemList
-
Fields inherited from class net.sf.jsqlparser.statement.select.ParenthesedSelect
alias, pivot, select, unPivot
-
Fields inherited from class net.sf.jsqlparser.statement.select.Select
fetch, forClause, forMode, forUpdateTable, isolation, limit, limitBy, offset, oracleSiblings, orderByElements, withItemsList
-
-
Constructor Summary
Constructors Constructor Description WithItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(SelectVisitor<T> selectVisitor, S context)
WithItem
addWithItemList(java.util.Collection<? extends SelectItem<?>> withItemList)
WithItem
addWithItemList(SelectItem<?>... withItemList)
java.lang.StringBuilder
appendSelectBodyTo(java.lang.StringBuilder builder)
java.util.List<SelectItem<?>>
getWithItemList()
TheSelectItem
s in this WITH (for example the A,B,C in "WITH mywith (A,B,C) AS ...")boolean
isRecursive()
void
setRecursive(boolean recursive)
void
setWithItemList(java.util.List<SelectItem<?>> withItemList)
WithItem
withRecursive(boolean recursive)
WithItem
withWithItemList(java.util.List<SelectItem<?>> withItemList)
-
Methods inherited from class net.sf.jsqlparser.statement.select.ParenthesedSelect
accept, getAlias, getPivot, getPlainSelect, getSelect, getSetOperationList, getUnPivot, getValues, setAlias, setPivot, setSelect, setUnPivot, withAlias, withOrderByElements, withSelect
-
Methods inherited from class net.sf.jsqlparser.statement.select.Select
accept, accept, addOrderByElements, addOrderByElements, addOrderByElements, addOrderByExpressions, addWithItemsList, addWithItemsList, appendStringListTo, appendTo, as, getFetch, getForClause, getFormattedList, getFormattedList, getForMode, getForUpdateTable, getIsolation, getLimit, getLimitBy, getOffset, getOrderByElements, getSelectBody, getStringList, getStringList, getWait, getWithItemsList, isNoWait, isOracleSiblings, isSkipLocked, orderByToString, orderByToString, setFetch, setForClause, setForMode, setForUpdateTable, setIsolation, setLimit, setLimitBy, setNoWait, setOffset, setOracleSiblings, setOrderByElements, setSkipLocked, setWait, setWithItemsList, toString, withFetch, withForMode, withForUpdateTable, withIsolation, withLimit, withLimitBy, withOffset, withOracleSiblings, 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
-
Methods inherited from interface net.sf.jsqlparser.statement.select.FromItem
accept, withPivot, withUnPivot
-
-
-
-
Field Detail
-
withItemList
private java.util.List<SelectItem<?>> withItemList
-
recursive
private boolean recursive
-
-
Method Detail
-
isRecursive
public boolean isRecursive()
-
setRecursive
public void setRecursive(boolean recursive)
-
getWithItemList
public java.util.List<SelectItem<?>> getWithItemList()
TheSelectItem
s in this WITH (for example the A,B,C in "WITH mywith (A,B,C) AS ...")- Returns:
- a list of
SelectItem
s
-
setWithItemList
public void setWithItemList(java.util.List<SelectItem<?>> withItemList)
-
appendSelectBodyTo
public java.lang.StringBuilder appendSelectBodyTo(java.lang.StringBuilder builder)
- Overrides:
appendSelectBodyTo
in classParenthesedSelect
-
accept
public <T,S> T accept(SelectVisitor<T> selectVisitor, S context)
- Overrides:
accept
in classParenthesedSelect
-
withWithItemList
public WithItem withWithItemList(java.util.List<SelectItem<?>> withItemList)
-
withRecursive
public WithItem withRecursive(boolean recursive)
-
addWithItemList
public WithItem addWithItemList(SelectItem<?>... withItemList)
-
addWithItemList
public WithItem addWithItemList(java.util.Collection<? extends SelectItem<?>> withItemList)
-
-