Class AggregateFunctionStateObject

All Implemented Interfaces:
StateObject
Direct Known Subclasses:
AvgFunctionStateObject, CountFunctionStateObject, MaxFunctionStateObject, MinFunctionStateObject, SumFunctionStateObject

public abstract class AggregateFunctionStateObject extends AbstractSingleEncapsulatedExpressionStateObject
In the SELECT clause the result of a query may be the result of an aggregate function applied to a path expression.
BNF: aggregate_expression ::= {AVG|MAX|MIN|SUM}([DISTINCT] state_field_path_expression) |
                              COUNT([DISTINCT] identification_variable | state_field_path_expression | single_valued_association_path_expression)
Since:
2.4
Version:
2.4
See Also:
  • Field Details

    • DISTINCT_PROPERTY

      public static final String DISTINCT_PROPERTY
      Notifies the visibility of the DISTINCT identifier has changed.
      See Also:
  • Constructor Details

    • AggregateFunctionStateObject

      protected AggregateFunctionStateObject(StateObject parent)
      Creates a new AggregateFunctionStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      Throws:
      NullPointerException - The given parent cannot be null
    • AggregateFunctionStateObject

      protected AggregateFunctionStateObject(StateObject parent, boolean distinct, StateObject stateObject)
      Creates a new AggregateStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      distinct - true to add DISTINCT to the query in order to have distinct values; false if it is not required
      stateObject - The StateObject representing the encapsulated expression
      Throws:
      NullPointerException - The given parent cannot be null
    • AggregateFunctionStateObject

      protected AggregateFunctionStateObject(StateObject parent, boolean distinct, String path)
      Creates a new AggregateFunctionStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      distinct - true to add DISTINCT to the query in order to have distinct values; false if it is not required
      path - Either the identification variable or the state field path expression
      Throws:
      NullPointerException - The given parent cannot be null
    • AggregateFunctionStateObject

      protected AggregateFunctionStateObject(StateObject parent, StateObject stateObject)
      Creates a new AggregateStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      stateObject - The StateObject representing the encapsulated expression
      Throws:
      NullPointerException - The given parent cannot be null
    • AggregateFunctionStateObject

      protected AggregateFunctionStateObject(StateObject parent, String path)
      Creates a new AggregateFunctionStateObject.
      Parameters:
      parent - The parent of this state object, which cannot be null
      path - Either the identification variable or the state field path expression
      Throws:
      NullPointerException - The given parent cannot be null
  • Method Details