Class PBaseNumber<R,T extends Comparable>

Type Parameters:
R - the root query bean type
T - the property type
All Implemented Interfaces:
io.ebean.Query.Property<T>
Direct Known Subclasses:
PBigDecimal, PBigInteger, PDayOfWeek, PDouble, PDuration, PFloat, PInteger, PLong, PShort, PYear

public abstract class PBaseNumber<R,T extends Comparable> extends PBaseComparable<R,T>
Base property for number types.
  • Constructor Details

    • PBaseNumber

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

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

    • equalTo

      public final R equalTo(int value)
      Is equal to.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • greaterThan

      public final R greaterThan(int value)
      Greater than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • lessThan

      public final R lessThan(int value)
      Less than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • eq

      public final R eq(int value)
      Is equal to.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • gt

      public final R gt(int value)
      Greater than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • lt

      public final R lt(int value)
      Less than.
      Parameters:
      value - the equal to bind value
      Returns:
      the root query bean instance
    • between

      public final R between(int lower, int upper)
      Between lower and upper values.
      Parameters:
      lower - the lower bind value
      upper - the upper bind value
      Returns:
      the root query bean instance