com.caucho.db.sql
Class GroupResultExpr

java.lang.Object
  extended by com.caucho.db.sql.Expr
      extended by 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
           
 
Fields inherited from class com.caucho.db.sql.Expr
FALSE, TRUE, UNKNOWN
 
Method Summary
 Expr bind(Query query)
           
 void evalGroup(QueryContext context)
          Evaluates aggregate functions during the group phase.
 java.lang.String evalString(QueryContext context)
          Evaluates the expression as a string.
 java.lang.String getName()
          Returns any name.
 java.lang.String toString()
           
 
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
 

Field Detail

L

protected static final L10N L
Method Detail

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