- 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,Short>
-
- io.ebean.typequery.PShort<R>
-
- Type Parameters:
R- the root query bean type
public final class PShort<R> extends PBaseNumber<R,Short>
Short property.
-
-
Field Summary
-
Fields inherited from class io.ebean.typequery.TQProperty
_name, _root
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RbitwiseAll(short flags)Add expression for ALL of the given bit flags to be set.RbitwiseAnd(short flags, short mask)Add bitwise AND expression of the given bit flags to compare with the match/mask.RbitwiseAny(short flags)Add expression for ANY of the given bit flags to be set.RbitwiseNot(short flags)Add expression for the given bit flags to be NOT set.-
Methods inherited from class io.ebean.typequery.PBaseNumber
between, eq, equalTo, greaterThan, gt, lessThan, lt
-
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
-
bitwiseAnd
public R bitwiseAnd(short flags, short mask)
Add bitwise AND expression of the given bit flags to compare with the match/mask.// Flags Bulk + Size = Size // ... meaning Bulk is not set and Size is set short selectedFlags = BwFlags.HAS_BULK + BwFlags.HAS_SIZE; short mask = BwFlags.HAS_SIZE; // Only Size flag set bitwiseAnd(selectedFlags, mask)- Parameters:
flags- The flags we are looking for
-
bitwiseAll
public R bitwiseAll(short flags)
Add expression for ALL of the given bit flags to be set.bitwiseAll(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)- Parameters:
flags- The flags we are looking for
-
bitwiseAny
public R bitwiseAny(short flags)
Add expression for ANY of the given bit flags to be set.bitwiseAny(BwFlags.HAS_BULK + BwFlags.HAS_COLOUR)- Parameters:
flags- The flags we are looking for
-
bitwiseNot
public R bitwiseNot(short flags)
Add expression for the given bit flags to be NOT set.bitwiseNot(BwFlags.HAS_COLOUR)- Parameters:
flags- The flags we are looking for
-
-