|
||||||||||
| 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.SumExpr
public class SumExpr
| Field Summary | |
|---|---|
protected static L10N |
L
|
| Fields inherited from class com.caucho.db.sql.Expr |
|---|
FALSE, TRUE, UNKNOWN |
| Constructor Summary | |
|---|---|
SumExpr()
|
|
| Method Summary | |
|---|---|
protected void |
addArg(Expr expr)
|
protected 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. |
void |
initGroup(QueryContext context)
Initializes aggregate functions during the group phase. |
boolean |
isNull(QueryContext context)
Returns true for a null value. |
| Methods inherited from class com.caucho.db.sql.Expr |
|---|
cost, createOrder, evalBoolean, evalDate, evalStream, evalToBuffer, evalToBuffer, evalToResult, getIndexExpr, getName, getSQLType, getTable, isBinaryStream, isBoolean, isDouble, isLong, isSelect, splitAnd, subCost |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
| Constructor Detail |
|---|
public SumExpr()
| Method Detail |
|---|
protected void addArg(Expr expr)
throws java.sql.SQLException
addArg in class FunExprjava.sql.SQLException
protected Expr bind(Query query)
throws java.sql.SQLException
bind in class Exprjava.sql.SQLExceptionpublic java.lang.Class getType()
Expr
getType in class Expr
public void initGroup(QueryContext context)
throws java.sql.SQLException
initGroup in class Exprcontext - the current database tuple
java.sql.SQLException
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 Exprrows - the current tuple being evaluated
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.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||