Package sonia.scm.store
Class QueryableStore.InstantQueryField<T>
java.lang.Object
sonia.scm.store.QueryableStore.BaseQueryField<T,Instant>
sonia.scm.store.QueryableStore.InstantQueryField<T>
- Type Parameters:
T
- The type of the objects this condition is used for.
- All Implemented Interfaces:
QueryableStore.QueryField<T,
Instant>
- Enclosing interface:
- QueryableStore<T>
public static class QueryableStore.InstantQueryField<T>
extends QueryableStore.BaseQueryField<T,Instant>
This class is used to create conditions for queries. Instances of this class will be created by the annotation
processor for each date 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 after the given value.Creates a condition that checks if the field is after the given value.Creates a condition that checks if the field is before the given value.Creates a condition that checks if the field is before the given value.Creates a condition that checks if the field is between the given values.Creates a condition that checks if the field is between the given values.Creates a condition that checks if the field is equal to the given value.Creates a condition that checks if the field is equal to the given value.Methods inherited from class sonia.scm.store.QueryableStore.BaseQueryField
getName, isIdField, isNull
-
Constructor Details
-
InstantQueryField
-
-
Method Details
-
eq
Creates a condition that checks if the field is equal to the given value. The given instant will be truncated to milliseconds.- Parameters:
value
- The value to compare the field with.- Returns:
- The condition to use in a query.
-
after
Creates a condition that checks if the field is after the given value.- Parameters:
value
- The value to compare the field with.- Returns:
- The condition to use in a query.
-
before
Creates a condition that checks if the field is before 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 field is between the given values.- Parameters:
from
- The lower bound of the range to compare the field with.to
- The upper bound of the range to compare the field with.- Returns:
- The condition to use in a query.
-
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.
-
after
Creates a condition that checks if the field is after the given value.- Parameters:
value
- The value to compare the field with.- Returns:
- The condition to use in a query.
-
before
Creates a condition that checks if the field is before 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 field is between the given values.- Parameters:
from
- The lower bound of the range to compare the field with.to
- The upper bound of the range to compare the field with.- Returns:
- The condition to use in a query.
-