Modifier and Type | Method and Description |
---|---|
Expr |
bind(Query parent)
Binds the expression.
|
void |
eval(QueryContext parent,
QueryContext context)
Sets the value.
|
int |
evalBoolean(QueryContext context)
Evaluates the expression as a boolean.
|
long |
evalDate(QueryContext context)
Evaluates the expression as a date
|
double |
evalDouble(QueryContext context)
Evaluates the expression as a double.
|
long |
evalLong(QueryContext context)
Evaluates the expression as a long.
|
java.lang.String |
evalString(QueryContext context)
Evaluates the expression as a string.
|
int |
evalToBuffer(QueryContext context,
byte[] buffer,
int offset)
Evaluates the expression to a buffer
|
Expr |
getExpr()
Returns the expr.
|
java.lang.Class |
getType()
Returns the type of the expression.
|
boolean |
isNull(QueryContext context)
Evaluates the expression as a string.
|
long |
subCost(java.util.ArrayList<FromItem> fromList)
Returns the cost based on the given FromList.
|
java.lang.String |
toString() |
cost, createOrder, evalBytes, evalEqual, evalEqual, evalGroup, evalStream, evalToBuffer, evalToResult, getIndexExpr, getName, getSQLType, getTable, getTypeCode, indexCost, indexSubCost, initGroup, isBinaryStream, isBoolean, isDouble, isLong, isNullable, isParam, isSelect, splitAnd, updateDouble, updateLong, updateString
public java.lang.Class getType()
public Expr getExpr()
public long subCost(java.util.ArrayList<FromItem> fromList)
public void eval(QueryContext parent, QueryContext context) throws java.sql.SQLException
java.sql.SQLException
public boolean isNull(QueryContext context) throws java.sql.SQLException
public java.lang.String evalString(QueryContext context) throws java.sql.SQLException
evalString
in class Expr
rows
- the current database tuplejava.sql.SQLException
public int evalBoolean(QueryContext context) throws java.sql.SQLException
evalBoolean
in class Expr
rows
- the current database tuplejava.sql.SQLException
public long evalLong(QueryContext context) throws java.sql.SQLException
public double evalDouble(QueryContext context) throws java.sql.SQLException
evalDouble
in class Expr
rows
- the current database tuplejava.sql.SQLException
public long evalDate(QueryContext context) throws java.sql.SQLException
public int evalToBuffer(QueryContext context, byte[] buffer, int offset) throws java.sql.SQLException
evalToBuffer
in class Expr
rows
- the current database tuplejava.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object