org.datanucleus.store.rdbms.sql.method
Class AvgFunction

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
      extended by org.datanucleus.store.rdbms.sql.method.SimpleAggregateMethod
          extended by org.datanucleus.store.rdbms.sql.method.AvgFunction
All Implemented Interfaces:
SQLMethod

public class AvgFunction
extends SimpleAggregateMethod

Expression handler to invoke the SQL AVG aggregation function. For use in evaluating AVG({expr}) where the RDBMS supports this function. Returns a NumericExpression "AVG({numericExpr})".


Field Summary
 
Fields inherited from class org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
clr, exprFactory, LOCALISER, stmt
 
Constructor Summary
AvgFunction()
           
 
Method Summary
protected  java.lang.Class getClassForMapping()
           
protected  java.lang.String getFunctionName()
           
 
Methods inherited from class org.datanucleus.store.rdbms.sql.method.SimpleAggregateMethod
getExpression
 
Methods inherited from class org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
getMappingForClass, setStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvgFunction

public AvgFunction()
Method Detail

getFunctionName

protected java.lang.String getFunctionName()
Specified by:
getFunctionName in class SimpleAggregateMethod

getClassForMapping

protected java.lang.Class getClassForMapping()
Specified by:
getClassForMapping in class SimpleAggregateMethod


Copyright © 2009. All Rights Reserved.