Class PBaseString<R,T>
java.lang.Object
io.ebean.typequery.TQProperty<R,T>
io.ebean.typequery.TQPropertyBase<R,T>
io.ebean.typequery.PBaseValueEqual<R,T>
io.ebean.typequery.PBaseComparable<R,T>
io.ebean.typequery.PBaseString<R,T>
- Type Parameters:
R- the root query bean type
- All Implemented Interfaces:
io.ebean.Query.Property<T>
- Direct Known Subclasses:
PCidr, PClass, PCurrency, PInet, PInetAddress, PLocale, PTimeZone, PUri, PUrl, PZoneId, PZoneOffset
Base for property types that store as String Varchar types.
-
Field Summary
Fields inherited from class TQProperty
_name, _root -
Method Summary
Modifier and TypeMethodDescriptionfinal RBetween lower and upper values.final RContains - uses a like with '%' wildcard added to the beginning and end.final RcontainsIfPresent(@Nullable String value) Is contains if value is non-null and otherwise no expression is added to the query.final REnds with - uses a like with '%' wildcard added to the beginning.final REqual to.final RequalToType(T value) Deprecated, for removal: This API element is subject to removal in a future version.final RGreater than or Equal to.final RGreater than or Equal to OR Null.final RGreater than.final RGreater than OR Null.final RCase-insensitive contains.final RicontainsIfPresent(@Nullable String value) Is case-insensitive contains if value is non-null and otherwise no expression is added to the query.final RCase-insensitive ends with.final RCase-insensitive is equal to.final RCase-insensitive is equal to.final RCase-insensitive like.final RilikeIfPresent(@Nullable String value) Is case-insensitive like if value is non-null and otherwise no expression is added to the query.final RGreater or equal to lower value and strictly less than upper value.final RistartsWith(String value) Case-insensitive starts with.final RistartsWithIfPresent(@Nullable String value) Is case-insensitive starts with if value is non-null and otherwise no expression is added to the query.final RLess than or Equal to.final RLess than or Equal to OR null.final RLike - include '%' and '_' placeholders as necessary.final RlikeIfPresent(@Nullable String value) Is like if value is non-null and otherwise no expression is added to the query.final RLess than.final RLess than OR Null.final RNot equal to.final RnotEqualToType(T value) Deprecated, for removal: This API element is subject to removal in a future version.migrate toPBaseValueEqual.ne(Object).final RstartsWith(String value) Starts with - uses a like with '%' wildcard added to the end.final RstartsWithIfPresent(@Nullable String value) Is starts with if value is non-null and otherwise no expression is added to the query.Methods inherited from class PBaseComparable
between, betweenProperties, ge, ge, ge, geIfPresent, geOrNull, geSubQuery, greaterOrEqualTo, greaterThan, greaterThanOrNull, gt, gt, gt, gtIfPresent, gtOrNull, gtSubQuery, inRange, inRangeWith, inRangeWith, le, le, le, leIfPresent, leOrNull, lessOrEqualTo, lessThan, lessThanOrNull, leSubQuery, lt, lt, lt, ltIfPresent, ltOrNull, ltSubQueryMethods inherited from class PBaseValueEqual
asMapKey, eq, eq, eq, eqIfPresent, eqOrNull, eqSubQuery, equalTo, equalToOrNull, in, in, in, inOrEmpty, inSubQuery, isIn, isIn, isIn, ne, ne, ne, neSubQuery, notEqualTo, notIn, notIn, notIn, notInSubQueryMethods inherited from class TQPropertyBase
asc, descMethods inherited from class TQProperty
expr, isNotNull, isNull, propertyName, toString
-
Method Details
-
equalToType
Deprecated, for removal: This API element is subject to removal in a future version.migrate toPBaseValueEqual.eq(Object).Is equal to. The same as
eqbut uses the strong type as argument rather than String.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
notEqualToType
Deprecated, for removal: This API element is subject to removal in a future version.migrate toPBaseValueEqual.ne(Object).Is not equal to. The same as
nebut uses the strong type as argument rather than String.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
eq
-
ne
-
gt
-
gtOrNull
-
ge
-
geOrNull
-
lt
-
ltOrNull
-
le
-
leOrNull
-
inRange
Greater or equal to lower value and strictly less than upper value.This is generally preferable over Between for date and datetime types as SQL Between is inclusive on the upper bound (
<=) and generally we need the upper bound to be exclusive (<).- Parameters:
lower- the lower bind value (>=)upper- the upper bind value (<)- Returns:
- the root query bean instance
-
between
-
ieq
-
iequalTo
-
like
-
startsWith
-
startsWithIfPresent
-
endsWith
-
contains
-
containsIfPresent
-
ilike
-
ilikeIfPresent
-
istartsWith
-
istartsWithIfPresent
-
iendsWith
-
icontains
-
icontainsIfPresent
-
likeIfPresent
-
PBaseValueEqual.eq(Object).