All Implemented Interfaces:
StateObject

public class MaxFunctionStateObject extends AggregateFunctionStateObject
One of the aggregate functions. The arguments must correspond to orderable state-field types (i.e., numeric types, string types, character types, or date types). The return type of this function is based on the state-field's type.

BNF: expression ::= MAX([DISTINCT] state_field_path_expression)

Since:
2.4
Version:
2.4
See Also:
  • Constructor Details

    • MaxFunctionStateObject

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

      public MaxFunctionStateObject(StateObject parent, boolean distinct, StateObject stateObject)
      Creates a new MaxFunctionStateObject.
      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
    • MaxFunctionStateObject

      public MaxFunctionStateObject(StateObject parent, boolean distinct, String path)
      Creates a new MaxFunctionStateObject.
      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
    • MaxFunctionStateObject

      public MaxFunctionStateObject(StateObject parent, StateObject stateObject)
      Creates a new MaxFunctionStateObject.
      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
    • MaxFunctionStateObject

      public MaxFunctionStateObject(StateObject parent, String path)
      Creates a new MaxFunctionStateObject.
      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