com.caucho.db.sql
Class GroupResultExpr
java.lang.Object
com.caucho.db.sql.Expr
com.caucho.db.sql.GroupResultExpr
- All Implemented Interfaces:
- GroupExpr
public class GroupResultExpr
- extends Expr
- implements GroupExpr
Represents a GROUP BY expression.
Field Summary |
protected static L10N |
L
|
Methods inherited from class com.caucho.db.sql.Expr |
cost, createOrder, evalBoolean, evalBytes, evalDate, evalDouble, evalEqual, evalEqual, evalLong, evalStream, evalToBuffer, evalToBuffer, evalToResult, getIndexExpr, getSQLType, getTable, getType, getTypeCode, indexCost, indexSubCost, initGroup, isBinaryStream, isBoolean, isDouble, isLong, isNull, 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 |
L
protected static final L10N L
getName
public java.lang.String getName()
- Returns any name.
- Overrides:
getName
in class Expr
bind
public Expr bind(Query query)
throws java.sql.SQLException
- Overrides:
bind
in class Expr
- Throws:
java.sql.SQLException
evalGroup
public void evalGroup(QueryContext context)
throws java.sql.SQLException
- Evaluates aggregate functions during the group phase.
- Overrides:
evalGroup
in class Expr
- Parameters:
context
- the current database tuple
- Throws:
java.sql.SQLException
evalString
public java.lang.String evalString(QueryContext context)
- Description copied from class:
Expr
- Evaluates the expression as a string.
- Overrides:
evalString
in class Expr
- Returns:
- the string value
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object