Package sonia.scm.store
Class QueryableStore.CollectionSizeQueryField<T>
java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,N>
sonia.scm.store.QueryableStore.NumberQueryField<T,Long>
sonia.scm.store.QueryableStore.CollectionSizeQueryField<T>
- Type Parameters:
T
- The type of the objects this condition is used for.
- All Implemented Interfaces:
QueryableStore.AggregatableNumberQueryField<T,
,Long> QueryableStore.AggregatableQueryField<T,
,Long> QueryableStore.QueryField<T,
Long>
- Enclosing interface:
- QueryableStore<T>
public static class QueryableStore.CollectionSizeQueryField<T>
extends QueryableStore.NumberQueryField<T,Long>
implements QueryableStore.AggregatableNumberQueryField<T,Long>
This class is used to create conditions for queries, based on the size of a collection.
Instances of this class will be created by the annotation processor for each collection
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 collections of base types like String
, number types, enums or booleans.
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.NumberQueryField
between, eq, greater, greaterOrEquals, in, in, less, lessOrEquals
Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.store.QueryableStore.QueryField
getName, isIdField
-
Constructor Details
-
CollectionSizeQueryField
-
-
Method Details
-
isEmpty
Creates a condition that checks if the collection field is empty.- Returns:
- The condition to use in a query.
-
getFieldType
- Specified by:
getFieldType
in interfaceQueryableStore.AggregatableQueryField<T,
Long>
-