public class ExistsExpr extends SubSelectExpr
Modifier and Type | Method and Description |
---|---|
Expr |
bind(Query query)
Binds the expression to the query.
|
int |
evalBoolean(QueryContext context)
Evaluates the expression as a string.
|
java.lang.Class |
getType()
Returns the expected result type of the expression.
|
boolean |
isNull(QueryContext context)
Evaluates the expression to check for null
|
long |
subCost(java.util.ArrayList<FromItem> fromList)
Returns the cost based on the given FromList.
|
java.lang.String |
toString() |
evalString, getSubSelect
cost, createOrder, evalBytes, evalDate, evalDouble, evalEqual, evalEqual, evalGroup, evalLong, evalStream, evalToBuffer, evalToBuffer, evalToResult, getIndexExpr, getName, getSQLType, getTable, getTypeCode, indexCost, indexSubCost, initGroup, isBinaryStream, isBoolean, isDouble, isLong, isNullable, isParam, isSelect, splitAnd, updateDouble, updateLong, updateString
protected static final L10N L
public Expr bind(Query query) throws java.sql.SQLException
bind
in class SubSelectExpr
java.sql.SQLException
public java.lang.Class getType()
getType
in class SubSelectExpr
public long subCost(java.util.ArrayList<FromItem> fromList)
subCost
in class SubSelectExpr
public boolean isNull(QueryContext context) throws java.sql.SQLException
public int evalBoolean(QueryContext context) throws java.sql.SQLException
evalBoolean
in class Expr
rows
- the current database tuplejava.sql.SQLException
public java.lang.String toString()
toString
in class SubSelectExpr