|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.sql.Expr
com.caucho.db.sql.FunExpr
com.caucho.db.sql.MaxExpr
public class MaxExpr
| Field Summary |
|---|
| Fields inherited from class com.caucho.db.sql.Expr |
|---|
FALSE, TRUE, UNKNOWN |
| Constructor Summary | |
|---|---|
MaxExpr()
|
|
| Method Summary | |
|---|---|
protected void |
addArg(Expr expr)
|
Expr |
bind(Query query)
|
double |
evalDouble(QueryContext context)
Evaluates the expression as a double. |
void |
evalGroup(QueryContext context)
Evaluates aggregate functions during the group phase. |
long |
evalLong(QueryContext context)
Evaluates the expression as a long. |
java.lang.String |
evalString(QueryContext context)
Evaluates the expression as a string. |
java.lang.Class |
getType()
Returns the expected result type of the expression. |
boolean |
isNull(QueryContext context)
Returns true if the value is null. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.db.sql.Expr |
|---|
cost, createOrder, evalBoolean, evalBytes, evalDate, evalEqual, evalEqual, 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, wait, wait, wait |
| Constructor Detail |
|---|
public MaxExpr()
| Method Detail |
|---|
protected void addArg(Expr expr)
throws java.sql.SQLException
addArg in class FunExprjava.sql.SQLException
public Expr bind(Query query)
throws java.sql.SQLException
bind in class Exprjava.sql.SQLExceptionpublic java.lang.Class getType()
getType in class Expr
public void evalGroup(QueryContext context)
throws java.sql.SQLException
evalGroup in class Exprcontext - the current database tuple
java.sql.SQLException
public boolean isNull(QueryContext context)
throws java.sql.SQLException
isNull in class ExprqueryContext - the query context
java.sql.SQLException
public double evalDouble(QueryContext context)
throws java.sql.SQLException
evalDouble in class Exprrows - the current tuple being evaluated
java.sql.SQLException
public long evalLong(QueryContext context)
throws java.sql.SQLException
evalLong in class Exprrows - the current tuple being evaluated
java.sql.SQLException
public java.lang.String evalString(QueryContext context)
throws java.sql.SQLException
evalString in class Exprrows - the current tuple being evaluated
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||