Class PString<R>
java.lang.Object
io.ebean.typequery.TQProperty<R,String>
io.ebean.typequery.TQPropertyBase<R,String>
io.ebean.typequery.PBaseValueEqual<R,String>
io.ebean.typequery.PBaseComparable<R,String>
io.ebean.typequery.PString<R>
- Type Parameters:
R- the root query bean type
- All Implemented Interfaces:
io.ebean.Query.Property<String>
String property.
-
Field Summary
Fields inherited from class TQProperty
_name, _root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionContains - uses a like with '%' wildcard added to the beginning and end.containsIfPresent(@Nullable String value) Is contains if value is non-null and otherwise no expression is added to the query.Ends with - uses a like with '%' wildcard added to the beginning.eqIfNotBlank(@Nullable String value) Is equal to if the value is non-null and not blank, otherwise no expression is added to the query.Case insensitive contains.icontainsIfPresent(@Nullable String value) Is case-insensitive contains if value is non-null and otherwise no expression is added to the query.Case insensitive ends with.Case insensitive is equal to.Case insensitive is equal to.Case insensitive like.ilikeIfPresent(@Nullable String value) Is case-insensitive like if value is non-null and otherwise no expression is added to the query.istartsWith(String value) Case insensitive starts with.istartsWithIfPresent(@Nullable String value) Is case-insensitive starts with if value is non-null and otherwise no expression is added to the query.Like - include '%' and '_' placeholders as necessary.likeIfPresent(@Nullable String value) Is like if value is non-null and otherwise no expression is added to the query.startsWith(String value) Starts with - uses a like with '%' wildcard added to the end.startsWithIfPresent(@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
-
Constructor Details
-
PString
-
PString
-
-
Method Details
-
eqIfNotBlank
Is equal to if the value is non-null and not blank, otherwise no expression is added to the query.This is like
eqIfPresent()but additionally treats an empty or whitespace-only value as "not present". When present, the value is trimmed before being used in the equal to expression.This is a helper for building queries in fluid style where a String predicate is effectively optional, avoiding a separate
ifblock andtrimToNull()style helper.List<Customer> customers = new QCustomer() .name.eqIfNotBlank(nameFilter) .status.eqIfPresent(statusFilter) .findList();- Parameters:
value- the value which can be null or blank- Returns:
- the root query bean instance
-
ieq
-
iequalTo
-
like
-
likeIfPresent
-
startsWith
-
startsWithIfPresent
-
endsWith
-
contains
-
containsIfPresent
-
ilike
-
ilikeIfPresent
-
istartsWith
-
istartsWithIfPresent
-
iendsWith
-
icontains
-
icontainsIfPresent
-