Class QueryKeyExpression

    • Method Detail

      • equalsValue

        @Nonnull
        public QueryComponent equalsValue​(@Nonnull
                                          Object comparand)
        Checks if the key expression has a value equal to the given comparand.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • notEquals

        @Nonnull
        public QueryComponent notEquals​(@Nonnull
                                        Object comparand)
        Checks if the key expression has a value not equal to the given comparand.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • greaterThan

        @Nonnull
        public QueryComponent greaterThan​(@Nonnull
                                          Object comparand)
        Checks if the key expression has a value greater than the given comparand.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • greaterThanOrEquals

        @Nonnull
        public QueryComponent greaterThanOrEquals​(@Nonnull
                                                  Object comparand)
        Checks if the key expression has a value greater than or equal to the given comparand.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • lessThan

        @Nonnull
        public QueryComponent lessThan​(@Nonnull
                                       Object comparand)
        Checks if the key expression has a value less than the given comparand.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • lessThanOrEquals

        @Nonnull
        public QueryComponent lessThanOrEquals​(@Nonnull
                                               Object comparand)
        Checks if the key expression has a value less than or equal to the given comparand. Evaluates to null if the field does not have a value.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • startsWith

        @Nonnull
        public QueryComponent startsWith​(@Nonnull
                                         String comparand)
        Checks if the key expression starts with the given string.
        Parameters:
        comparand - the object to compare with the value in the field
        Returns:
        a new component for doing the actual evaluation
      • isNull

        @Nonnull
        public QueryComponent isNull()
        Returns true if the key expression evaluates to null.
        Returns:
        a new component for doing the actual evaluation
      • notNull

        @Nonnull
        public QueryComponent notNull()
        Returns true if the key expression does not evaluate to null.
        Returns:
        a new component for doing the actual evaluation
      • equalsParameter

        @Nonnull
        public QueryComponent equalsParameter​(@Nonnull
                                              String param)
        Checks if the key expression has a value equal to the given parameter.
        Parameters:
        param - the name of the parameter
        Returns:
        a new component for doing the actual evaluation