Class AbsExpressionStateObject

  • All Implemented Interfaces:
    StateObject

    public class AbsExpressionStateObject
    extends AbstractSingleEncapsulatedExpressionStateObject
    The ABS function removes the minus sign from a specified argument and returns the absolute value, which is always a positive number or zero.

    This is one of the JPQL arithmetic functions. The ABS function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument to the function.

    BNF: expression ::= ABS(simple_arithmetic_expression)
    Version:
    2.4
    See Also:
    AbsExpression
    Author:
    Pascal Filion
    Since:
    2.4
    • Constructor Detail

      • AbsExpressionStateObject

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

        public AbsExpressionStateObject​(StateObject parent,
                                        StateObject stateObject)
        Creates a new AbsExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        stateObject - The StateObject representing the encapsulated expression
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • AbsExpressionStateObject

        protected AbsExpressionStateObject​(StateObject parent,
                                           java.lang.String jpqlFragment)
        Creates a new AbsExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        jpqlFragment - The portion of the query representing the encapsulated expression
        Throws:
        java.lang.NullPointerException - The given parent cannot be null