Class QueryableStore.EnumQueryField<T,E extends Enum<E>>

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

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

    • EnumQueryField

      public EnumQueryField(String name)
  • Method Details

    • eq

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

      public Condition<T> in(E... values)
      Creates a condition that checks if the field is equal to any of the given values.
      Parameters:
      values - The values to compare the field with.
      Returns:
      The condition to use in a query.
    • in

      public Condition<T> in(Collection<E> values)
      Creates a condition that checks if the field is equal to any of the given values.
      Parameters:
      values - The values to compare the field with.
      Returns:
      The condition to use in a query.