com.caucho.db.fun
Class NowExpr
java.lang.Object
com.caucho.db.sql.Expr
com.caucho.db.sql.FunExpr
com.caucho.db.fun.NowExpr
public class NowExpr
- extends FunExpr
Field Summary |
protected static L10N |
L
|
Methods inherited from class com.caucho.db.sql.Expr |
bind, cost, createOrder, evalBoolean, evalBytes, evalDate, evalEqual, evalEqual, evalGroup, evalStream, evalToBuffer, evalToBuffer, evalToResult, getIndexExpr, getName, getSQLType, getTable, getTypeCode, indexCost, indexSubCost, initGroup, isBinaryStream, isBoolean, isDouble, isLong, isNullable, isParam, isSelect, splitAnd, subCost, updateDouble, updateLong, updateString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
L
protected static final L10N L
NowExpr
public NowExpr()
addArg
protected void addArg(Expr expr)
throws java.sql.SQLException
- Specified by:
addArg
in class FunExpr
- Throws:
java.sql.SQLException
getType
public java.lang.Class getType()
- Returns the expected result type of the expression.
- Overrides:
getType
in class Expr
isNull
public boolean isNull(QueryContext context)
throws java.sql.SQLException
- Returns true for a null value.
- Overrides:
isNull
in class Expr
- Parameters:
rows
- the current tuple being evaluated
- Returns:
- true if null
- Throws:
java.sql.SQLException
evalDouble
public double evalDouble(QueryContext context)
throws java.sql.SQLException
- Evaluates the expression as a double.
- Overrides:
evalDouble
in class Expr
- Parameters:
rows
- the current tuple being evaluated
- Returns:
- the double value
- Throws:
java.sql.SQLException
evalLong
public long evalLong(QueryContext context)
throws java.sql.SQLException
- Evaluates the expression as a long.
- Overrides:
evalLong
in class Expr
- Parameters:
rows
- the current tuple being evaluated
- Returns:
- the long value
- Throws:
java.sql.SQLException
evalString
public java.lang.String evalString(QueryContext context)
throws java.sql.SQLException
- Evaluates the expression as a string.
- Overrides:
evalString
in class Expr
- Parameters:
rows
- the current tuple being evaluated
- Returns:
- the string value
- Throws:
java.sql.SQLException