Class CompoundExpressionStateObject

    • Field Detail

      • LEFT_STATE_OBJECT_PROPERTY

        public static final java.lang.String LEFT_STATE_OBJECT_PROPERTY
        Notifies the left state object property has changed.
        See Also:
        Constant Field Values
      • RIGHT_STATE_OBJECT_PROPERTY

        public static final java.lang.String RIGHT_STATE_OBJECT_PROPERTY
        Notifies the right state object property has changed.
        See Also:
        Constant Field Values
    • Method Detail

      • getIdentifier

        public abstract java.lang.String getIdentifier()
        Returns the identifier joining the two StateObjects.
        Returns:
        The JPQL identifier join two expressions
      • hasLeft

        public boolean hasLeft()
        Determines whether there is a StateObject that represents the left expression.
        Returns:
        true if there is a left StateObject; false if it is null
      • hasRight

        public boolean hasRight()
        Determines whether there is a StateObject that represents the right expression.
        Returns:
        true if there is a right StateObject; false if it is null
      • parseLeft

        public void parseLeft​(java.lang.String jpqlFragment)
        Parses the given JPQL fragment and update the left side of the compound expression.
        Parameters:
        jpqlFragment - The portion of the query to become the left side of the compound expression
      • parseRight

        public void parseRight​(java.lang.String jpqlFragment)
        Parses the given JPQL fragment and update the right side of the compound expression.
        Parameters:
        jpqlFragment - The portion of the query to become the right side of the compound expression
      • setLeft

        public void setLeft​(StateObject leftStateObject)
        Sets the left StateObject to become the given object.
        Parameters:
        leftStateObject - The StateObject representing the left expression
      • setRight

        public void setRight​(StateObject rightStateObject)
        Sets the right StateObject to become the given object.
        Parameters:
        rightStateObject - The StateObject representing the right expression