com.alibaba.druid.sql.ast.expr
Class SQLExistsExpr

java.lang.Object
  extended by com.alibaba.druid.sql.ast.SQLObjectImpl
      extended by com.alibaba.druid.sql.ast.SQLExprImpl
          extended by com.alibaba.druid.sql.ast.expr.SQLExistsExpr
All Implemented Interfaces:
SQLExpr, SQLObject, Serializable

public class SQLExistsExpr
extends SQLExprImpl
implements Serializable

See Also:
Serialized Form

Field Summary
 boolean not
           
 SQLSelect subQuery
           
 
Constructor Summary
SQLExistsExpr()
           
SQLExistsExpr(SQLSelect subQuery)
           
SQLExistsExpr(SQLSelect subQuery, boolean not)
           
 
Method Summary
 boolean equals(Object obj)
           
 SQLSelect getSubQuery()
           
 int hashCode()
           
 boolean isNot()
           
 void output(StringBuffer buf)
           
 void setNot(boolean not)
           
 void setSubQuery(SQLSelect subQuery)
           
 
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, getAttribute, getAttributes, getAttributesDirect, getParent, putAttribute, setParent, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, getAttribute, getAttributes, getAttributesDirect, getParent, putAttribute, setParent
 

Field Detail

not

public boolean not

subQuery

public SQLSelect subQuery
Constructor Detail

SQLExistsExpr

public SQLExistsExpr()

SQLExistsExpr

public SQLExistsExpr(SQLSelect subQuery)

SQLExistsExpr

public SQLExistsExpr(SQLSelect subQuery,
                     boolean not)
Method Detail

isNot

public boolean isNot()

setNot

public void setNot(boolean not)

getSubQuery

public SQLSelect getSubQuery()

setSubQuery

public void setSubQuery(SQLSelect subQuery)

output

public void output(StringBuffer buf)
Specified by:
output in interface SQLObject
Overrides:
output in class SQLObjectImpl

hashCode

public int hashCode()
Specified by:
hashCode in class SQLExprImpl

equals

public boolean equals(Object obj)
Specified by:
equals in class SQLExprImpl


Copyright © 2012 Alibaba Group. All Rights Reserved.