Style Intelligence v12.0

inetsoft.uql.asset
Class AggregateHelper

java.lang.Object
  extended by inetsoft.uql.asset.AggregateHelper

public abstract class AggregateHelper
extends Object

Helper class for generating aggregate functions.


Constructor Summary
AggregateHelper()
           
 
Method Summary
 String getAggregateExpression(String func, String col, String col2)
          Get the aggregate expression for calculating the specified function.
abstract  String getAggregateFunction(String func)
          Get the aggregate function name of the specified function.
abstract  String getColumnString(DataRef column)
          Get a column string representation for use in SQL query.
abstract  String getDBType()
          Get the db type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateHelper

public AggregateHelper()
Method Detail

getColumnString

public abstract String getColumnString(DataRef column)
Get a column string representation for use in SQL query.


getAggregateExpression

public String getAggregateExpression(String func,
                                     String col,
                                     String col2)
Get the aggregate expression for calculating the specified function.

Parameters:
func - function is one of: stddev, stddevp, var, varp, covar, correl.
Returns:
aggregate expression (SQL) or null if the database doesn't support the aggregate function.

getDBType

public abstract String getDBType()
Get the db type.


getAggregateFunction

public abstract String getAggregateFunction(String func)
Get the aggregate function name of the specified function.

Parameters:
func - function is one of: stddev, stddevp, var, varp, covar, correl.
Returns:
function name or null if function is not supported in SQL.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.