Package sonia.scm.store
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
This is not meant to be instantiated by users of the API!
QueryableType
.
This is not meant to be instantiated by users of the API!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a condition that checks if the field is equal to the given value.Creates a condition that checks if the field is equal to any of the given values.in
(Collection<E> values) Creates a condition that checks if the field is equal to any of the given values.Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
-
Constructor Details
-
EnumQueryField
-
-
Method Details
-
eq
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
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
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.
-