- java.lang.Object
-
- io.ebean.typequery.TQProperty<R>
-
- io.ebean.typequery.TQPropertyBase<R>
-
- io.ebean.typequery.PBaseValueEqual<R,T>
-
- io.ebean.typequery.PBaseCompareable<R,T>
-
- io.ebean.typequery.PBaseNumber<R,T>
-
- Type Parameters:
R- the root query bean typeT- the number type
- Direct Known Subclasses:
PBigDecimal,PBigInteger,PDayOfWeek,PDouble,PDuration,PFloat,PInteger,PJodaLocalTime,PLocalTime,PLong,POffsetDateTime,POffsetTime,PShort,PTime,PYear
public abstract class PBaseNumber<R,T extends Comparable> extends PBaseCompareable<R,T>
Base property for number types.
-
-
Field Summary
-
Fields inherited from class io.ebean.typequery.TQProperty
_name, _root
-
-
Constructor Summary
Constructors Constructor Description PBaseNumber(String name, R root)Construct with a property name and root instance.PBaseNumber(String name, R root, String prefix)Construct with additional path prefix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rbetween(int lower, int upper)Between lower and upper values.Req(int value)Is equal to.RequalTo(int value)Is equal to.RgreaterThan(int value)Greater than.Rgt(int value)Greater than.RlessThan(int value)Less than.Rlt(int value)Less than.-
Methods inherited from class io.ebean.typequery.PBaseCompareable
between, ge, geOrNull, greaterOrEqualTo, greaterThan, greaterThanOrNull, gt, gtOrNull, inRange, inRangeWith, le, leOrNull, lessOrEqualTo, lessThan, lessThanOrNull, lt, ltOrNull
-
Methods inherited from class io.ebean.typequery.PBaseValueEqual
asMapKey, eq, eqOrNull, equalTo, equalToOrNull, in, in, in, inOrEmpty, isIn, isIn, isIn, ne, notEqualTo, notIn, notIn
-
Methods inherited from class io.ebean.typequery.TQPropertyBase
asc, desc
-
Methods inherited from class io.ebean.typequery.TQProperty
expr, isNotNull, isNull, propertyName, toString
-
-
-
-
Method Detail
-
equalTo
public R equalTo(int value)
Is equal to.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
greaterThan
public R greaterThan(int value)
Greater than.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
lessThan
public R lessThan(int value)
Less than.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
eq
public R eq(int value)
Is equal to.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
gt
public R gt(int value)
Greater than.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
lt
public R lt(int value)
Less than.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
between
public R between(int lower, int upper)
Between lower and upper values.- Parameters:
lower- the lower bind valueupper- the upper bind value- Returns:
- the root query bean instance
-
-