com.caucho.amber.expr.fun
Class SumFunExpr

java.lang.Object
  extended by com.caucho.amber.expr.AbstractAmberExpr
      extended by com.caucho.amber.expr.fun.FunExpr
          extended by com.caucho.amber.expr.fun.SumFunExpr
All Implemented Interfaces:
AmberExpr

public class SumFunExpr
extends FunExpr

SUM() function expression


Field Summary
 
Fields inherited from interface com.caucho.amber.expr.AmberExpr
IS_INNER_JOIN, USES_DATA
 
Constructor Summary
protected SumFunExpr(QueryParser parser, java.lang.String id, java.util.ArrayList<AmberExpr> args, boolean distinct)
          Creates a new function expression
 
Method Summary
static SumFunExpr create(QueryParser parser, java.lang.String id, java.util.ArrayList<AmberExpr> args, boolean distinct)
           
 AmberType getType()
          Returns the expr type.
 
Methods inherited from class com.caucho.amber.expr.fun.FunExpr
bindSelect, generateHaving, generateUpdateWhere, generateWhere, getArgs, getObject, toString, usesFrom
 
Methods inherited from class com.caucho.amber.expr.AbstractAmberExpr
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SumFunExpr

protected SumFunExpr(QueryParser parser,
                     java.lang.String id,
                     java.util.ArrayList<AmberExpr> args,
                     boolean distinct)
Creates a new function expression

Method Detail

create

public static SumFunExpr create(QueryParser parser,
                                java.lang.String id,
                                java.util.ArrayList<AmberExpr> args,
                                boolean distinct)

getType

public AmberType getType()
Returns the expr type.

Specified by:
getType in interface AmberExpr
Overrides:
getType in class FunExpr