Class Filter

java.lang.Object
org.hisp.dhis.query.Filter

public class Filter extends Object
Query filter.
Author:
Lars Helge Overland
  • Constructor Details

    • Filter

      public Filter()
  • Method Details

    • eq

      public static Filter eq(String property, Object value)
      Creates an equals to Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • ge

      public static Filter ge(String property, Object value)
      Creates a greater than or equals to Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • gt

      public static Filter gt(String property, Object value)
      Creates a greater than Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • le

      public static Filter le(String property, Object value)
      Creates a less than or equals to Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • lt

      public static Filter lt(String property, Object value)
      Creates a less than Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • isTrue

      public static Filter isTrue(String property)
      Creates an is true Filter.
      Parameters:
      property - the filter property.
      Returns:
      a Filter.
    • isFalse

      public static Filter isFalse(String property)
      Creates an is false Filter.
      Parameters:
      property - the filter property.
      Returns:
      a Filter.
    • like

      public static Filter like(String property, Object value)
      Creates a like Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • ilike

      public static Filter ilike(String property, Object value)
      Creates an ilike Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • token

      public static Filter token(String property, Object value)
      Creates a token Filter.
      Parameters:
      property - the filter property.
      value - the filter value.
      Returns:
      a Filter.
    • in

      public static Filter in(String property, List<String> values)
      Creates an in Filter.
      Parameters:
      property - the filter property.
      values - the filter values.
      Returns:
      a Filter.