Class QueryableStore.BooleanQueryField<T>

java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,Boolean>
sonia.scm.store.QueryableStore.BooleanQueryField<T>
Type Parameters:
T - The type of the objects this condition is used for.
All Implemented Interfaces:
QueryableStore.QueryField<T,Boolean>
Enclosing interface:
QueryableStore<T>

public static class QueryableStore.BooleanQueryField<T> extends QueryableStore.BaseQueryField<T,Boolean>
This class is used to create conditions for queries. Instances of this class will be created by the annotation processor for each boolean field of a class annotated with QueryableType.
This is not meant to be instantiated by users of the API!
  • Constructor Details

    • BooleanQueryField

      public BooleanQueryField(String name)
  • Method Details

    • eq

      public Condition<T> eq(Boolean b)
      Creates a condition that checks if the field is equal to the given value.
      Parameters:
      b - The value to compare the field with.
      Returns:
      The condition to use in a query.
    • isTrue

      public Condition<T> isTrue()
      Creates a condition that checks if the field is true.
      Returns:
      The condition to use in a query.
    • isFalse

      public Condition<T> isFalse()
      Creates a condition that checks if the field is false.
      Returns:
      The condition to use in a query.