net.sf.jsqlparser.statement.select
Class WithItem

java.lang.Object
  extended by 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


Field Summary
private  java.lang.String name
           
private  SelectBody selectBody
           
private  java.util.List withItemList
           
 
Constructor Summary
WithItem()
           
 
Method Summary
 java.lang.String getName()
          The name of this WITH item (for example, "myWITH" in "WITH myWITH AS (SELECT A,B,C))"
 SelectBody getSelectBody()
          The SelectBody of this WITH item is the part after the "AS" keyword
 java.util.List getWithItemList()
          The SelectItems in this WITH (for example the A,B,C in "WITH mywith (A,B,C) AS ...")
 void setName(java.lang.String name)
           
 void setSelectBody(SelectBody selectBody)
           
 void setWithItemList(java.util.List withItemList)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

withItemList

private java.util.List withItemList

selectBody

private SelectBody selectBody
Constructor Detail

WithItem

public WithItem()
Method Detail

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 SelectItems in this WITH (for example the A,B,C in "WITH mywith (A,B,C) AS ...")

Returns:
a list of SelectItems

setWithItemList

public void setWithItemList(java.util.List withItemList)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object