net.sf.jsqlparser.statement.select
Class SubSelect

java.lang.Object
  extended by net.sf.jsqlparser.statement.select.SubSelect
All Implemented Interfaces:
Expression, ItemsList, FromItem

public class SubSelect
extends java.lang.Object
implements FromItem, Expression, ItemsList

A subselect followed by an optional alias.


Field Summary
private  java.lang.String alias
           
private  SelectBody selectBody
           
 
Constructor Summary
SubSelect()
           
 
Method Summary
 void accept(ExpressionVisitor expressionVisitor)
           
 void accept(FromItemVisitor fromItemVisitor)
           
 void accept(ItemsListVisitor itemsListVisitor)
           
 java.lang.String getAlias()
           
 SelectBody getSelectBody()
           
 void setAlias(java.lang.String string)
           
 void setSelectBody(SelectBody body)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selectBody

private SelectBody selectBody

alias

private java.lang.String alias
Constructor Detail

SubSelect

public SubSelect()
Method Detail

accept

public void accept(FromItemVisitor fromItemVisitor)
Specified by:
accept in interface FromItem

getSelectBody

public SelectBody getSelectBody()

setSelectBody

public void setSelectBody(SelectBody body)

accept

public void accept(ExpressionVisitor expressionVisitor)
Specified by:
accept in interface Expression

getAlias

public java.lang.String getAlias()
Specified by:
getAlias in interface FromItem

setAlias

public void setAlias(java.lang.String string)
Specified by:
setAlias in interface FromItem

accept

public void accept(ItemsListVisitor itemsListVisitor)
Specified by:
accept in interface ItemsList

toString

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