net.sf.jsqlparser.statement.select
Class WithItem
java.lang.Object
net.sf.jsqlparser.statement.select.WithItem
public class WithItem
- extends java.lang.Object
One of the parts of a "WITH" clause of a "SELECT" statement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
private java.lang.String name
withItemList
private java.util.List withItemList
selectBody
private SelectBody selectBody
WithItem
public WithItem()
getName
public java.lang.String getName()
- The name of this WITH item (for example, "myWITH" in "WITH myWITH AS (SELECT A,B,C))"
- Returns:
- the name of this WITH
setName
public void setName(java.lang.String name)
getSelectBody
public SelectBody getSelectBody()
- The
SelectBody
of this WITH item is the part after the "AS" keyword
- Returns:
SelectBody
of this WITH item
setSelectBody
public void setSelectBody(SelectBody selectBody)
getWithItemList
public java.util.List getWithItemList()
- The
SelectItem
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 withItemList)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object