Class QueryableStore.MapQueryField<T>

java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,Object>
sonia.scm.store.QueryableStore.MapQueryField<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.MapQueryField<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 map field of a class annotated with QueryableType. Note that this can only be used for maps with base types like String, number types, enums or booleans as keys.
This is not meant to be instantiated by users of the API!
  • Constructor Details

    • MapQueryField

      public MapQueryField(String name)
  • Method Details

    • containsKey

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

      public Condition<T> containsValue(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.