Class PBaseDate<R,T extends Comparable>

Type Parameters:
R - the root query bean type
T - the scalar type
All Implemented Interfaces:
io.ebean.Query.Property<T>
Direct Known Subclasses:
PCalendar, PInstant, PJodaDateMidnight, PJodaDateTime, PJodaLocalDate, PJodaLocalDateTime, PLocalDate, PLocalDateTime, PMonth, PMonthDay, POffsetDateTime, PSqlDate, PTimestamp, PUtilDate, PYearMonth, PZonedDateTime

public abstract class PBaseDate<R,T extends Comparable> extends PBaseComparable<R,T>
Base property for date and date time types.
  • Constructor Details

    • PBaseDate

      public PBaseDate(String name, R root)
      Construct with a property name and root instance.
      Parameters:
      name - property name
      root - the root query bean instance
    • PBaseDate

      public PBaseDate(String name, R root, String prefix)
      Construct with additional path prefix.
  • Method Details

    • after

      public final R after(T value)
      Same as greater than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • before

      public final R before(T value)
      Same as less than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance