Package sonia.scm.store
Class QueryableStore.BooleanQueryField<T>
java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,Boolean>
sonia.scm.store.QueryableStore.BooleanQueryField<T>
- Type Parameters:
T
- The type of the objects this condition is used for.
- All Implemented Interfaces:
QueryableStore.QueryField<T,
Boolean>
- Enclosing interface:
- QueryableStore<T>
public static class QueryableStore.BooleanQueryField<T>
extends QueryableStore.BaseQueryField<T,Boolean>
This class is used to create conditions for queries. Instances of this class will be created by the annotation
processor for each boolean 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
Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
-
Constructor Details
-
BooleanQueryField
-
-
Method Details
-
eq
Creates a condition that checks if the field is equal to the given value.- Parameters:
b
- The value to compare the field with.- Returns:
- The condition to use in a query.
-
isTrue
Creates a condition that checks if the field is true.- Returns:
- The condition to use in a query.
-
isFalse
Creates a condition that checks if the field is false.- Returns:
- The condition to use in a query.
-