Class AbstractValueNode<T>

    • Constructor Detail

      • AbstractValueNode

        public AbstractValueNode​(T content)
        Constructs a new Value Node.
        Parameters:
        content - the node content
    • Method Detail

      • eq

        public EqualsNode eq​(AbstractValueNode node)
        Helper method used to easily create expressions such as "VALUE1 = VALUE2" without having to instantiate new objects. Note that the method is called "eq" in order not to be confused with the standard equals(Object).
        Parameters:
        node - the node that will be the second operand of the equals
        Returns:
        an EqualsNode that has the current object as the fist operand, and the parameter as the second operand
        Since:
        9.8RC1
      • notEq

        public NotEqualsNode notEq​(AbstractValueNode node)
        Just as eq(AbstractValueNode), this method is a helper to create expressions without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the "not equals" node
        Returns:
        a NotEqualsNode composed of the current object as the first operand and the parameter as the second operand
        Since:
        9.8RC1
      • startsWith

        public StartsWith startsWith​(AbstractValueNode node)
        Helper that allows to create StartsWith without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the "like" node
        Returns:
        a StartsWith where the current object is the first operand and the parameter is the second operand
        Since:
        9.8RC1
      • endsWith

        public EndsWith endsWith​(AbstractValueNode node)
        Helper that allows to create EndsWith without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the "like" node
        Returns:
        a StartsWith where the current object is the first operand and the parameter is the second operand
        Since:
        10.2, 9.11.4
      • greaterThan

        public GreaterThanNode greaterThan​(AbstractValueNode node)
        Helper that allows to create GreaterThanNode without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the ">=" node
        Returns:
        a GreaterThanNode where the current object is the first operand and the parameter is the second operand
        Since:
        9.9RC1
      • lesserThan

        public LesserThanNode lesserThan​(AbstractValueNode node)
        Helper that allows to create LesserThanNode without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the "<=" node
        Returns:
        a LesserThanNode where the current object is the first operand and the parameter is the second operand
        Since:
        9.9RC1
      • in

        public InNode in​(Collection<AbstractValueNode> values)
        Helper that allows to create InNode without having to instantiate new objects.
        Parameters:
        values - a collection of nodes
        Returns:
        a InNode where the current object is the first operand and the parameter is the second operand
        Since:
        9.10RC1
      • inStrings

        public InNode inStrings​(Collection<String> values)
        Helper that allows to create InNode without having to instantiate new objects.
        Parameters:
        values - a collection of string
        Returns:
        a InNode where the current object is the first operand and the parameter is the second operand
        Since:
        9.10RC1
      • inSubQuery

        public InSubQueryNode inSubQuery​(String subQuery,
                                         Map<String,​Object> parameters)
        Helper that allows to create InSubQueryNode without having to instantiate new objects.
        Parameters:
        subQuery - the sub query in plain HQL language
        parameters - the named parameters for the sub query
        Returns:
        a InSubQueryNode where the current object is the first operand and the sub query is the second operand
        Since:
        10.8RC1, 9.11.8
      • concat

        public ConcatNode concat​(AbstractValueNode node)
        Helper that allows to create ConcatNode without having to instantiate new objects.
        Parameters:
        node - the node that will be the second operand of the concat
        Returns:
        an ConcatNode that has the current object as the fist operand, and the parameter as the second operand
        Since:
        10.8RC1, 9.11.8
      • getContent

        public T getContent()
        Returns:
        the node content
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object