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 QueryableType.
This is not meant to be instantiated by users of the API!
  • Constructor Details

    • InstantQueryField

      public InstantQueryField(String name)
  • Method Details

    • eq

      public Condition<T> eq(Instant value)
      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

      public Condition<T> after(Instant value)
      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

      public Condition<T> before(Instant value)
      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

      public Condition<T> between(Instant from, Instant to)
      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

      public Condition<T> eq(Date value)
      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

      public Condition<T> after(Date value)
      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

      public Condition<T> before(Date value)
      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

      public Condition<T> between(Date from, Date to)
      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.