Package sonia.scm.store
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>
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
This is not meant to be instantiated by users of the API!
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainsKey(Object key) Creates a condition that checks if the field contains the given key.containsValue(Object value) Creates a condition that checks if the field contains the given value.Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
-
Constructor Details
-
MapQueryField
-
-
Method Details
-
containsKey
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
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.
-