Package sonia.scm.store
Class QueryableStore.NumberQueryField<T,N extends Number>
java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,N>
sonia.scm.store.QueryableStore.NumberQueryField<T,N>
- Type Parameters:
T- The type of the objects this condition is used for.N- The type of the number field.
- All Implemented Interfaces:
QueryableStore.QueryField<T,N>
- Direct Known Subclasses:
QueryableStore.CollectionSizeQueryField,QueryableStore.DoubleQueryField,QueryableStore.FloatQueryField,QueryableStore.IntegerQueryField,QueryableStore.LongQueryField,QueryableStore.MapSizeQueryField
- Enclosing interface:
- QueryableStore<T>
public abstract static class QueryableStore.NumberQueryField<T,N extends Number>
extends QueryableStore.BaseQueryField<T,N>
-
Method Summary
Modifier and TypeMethodDescriptionCreates a condition that checks if the fields is inclusively between the from and to values.Creates a condition that checks if the field is equal to the given value.Creates a condition that checks if the field is greater than the given value.greaterOrEquals(N value) Creates a condition that checks if the field is greater than or equal to the given value.in(Collection<N> values) Creates a condition that checks if the field is equal to any of the given values.Creates a condition that checks if the field is equal to any of the given values.Creates a condition that checks if the field is less than the given value.lessOrEquals(N value) Creates a condition that checks if the field is less than or equal to the given value.Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
-
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.
-
greater
Creates a condition that checks if the field is greater than the given value.- Parameters:
value- The value to compare the field with.- Returns:
- The condition to use in a query.
-
less
Creates a condition that checks if the field is less than the given value.- Parameters:
value- The value to compare the field with.- Returns:
- The condition to use in a query.
-
greaterOrEquals
Creates a condition that checks if the field is greater than or equal to the given value.- Parameters:
value- The value to compare the field with.- Returns:
- The condition to use in a query.
-
lessOrEquals
Creates a condition that checks if the field is less than or equal to the given value.- Parameters:
value- The value to compare the field with.- Returns:
- The condition to use in a query.
-
between
Creates a condition that checks if the fields is inclusively between the from and to values.- Parameters:
from- The lower limit to compare the value with.to- The upper limit to compare the value 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.
-