Class QueryableStore.CollectionQueryField<T>

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

public static class QueryableStore.CollectionQueryField<T> extends QueryableStore.BaseQueryField<T,Object>
This class is used to create conditions for queries. Instances of this class will be created by the annotation processor for each collection field of a class annotated with QueryableType. Note that this can only be used for collections of base types like String, number types, enums or booleans.
This is not meant to be instantiated by users of the API!
  • Constructor Details

    • CollectionQueryField

      public CollectionQueryField(String name)
  • Method Details

    • contains

      public Condition<T> contains(Object value)
      Creates a condition that checks if the field contains the given value.
      Parameters:
      value - The value to check for.
      Returns:
      The condition to use in a query.