Package io.ebean.typequery
Class PBaseString<R,T>
- java.lang.Object
-
- io.ebean.typequery.TQProperty<R>
-
- io.ebean.typequery.TQPropertyBase<R>
-
- io.ebean.typequery.PBaseValueEqual<R,T>
-
- io.ebean.typequery.PBaseCompareable<R,String>
-
- io.ebean.typequery.PBaseString<R,T>
-
- Type Parameters:
R- the root query bean type
public abstract class PBaseString<R,T> extends PBaseCompareable<R,String>
Base for property types that store as String Varchar types.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rcontains(String value)Contains - uses a like with '%' wildcard added to the beginning and end.RendsWith(String value)Ends with - uses a like with '%' wildcard added to the beginning.RequalToType(T value)Is equal to.Ricontains(String value)Case insensitive contains.RiendsWith(String value)Case insensitive ends with.Rieq(String value)Case insensitive is equal to.RiequalTo(String value)Case insensitive is equal to.Rilike(String value)Case insensitive like.RistartsWith(String value)Case insensitive starts with.Rlike(String value)Like - include '%' and '_' placeholders as necessary.Rmatch(String value)Add a full text "Match" expression.RnotEqualToType(T value)Is not equal to.RstartsWith(String value)Starts with - uses a like with '%' wildcard added to the end.-
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
isNotNull, isNull, toString
-
-
-
-
Method Detail
-
equalToType
public final R equalToType(T value)
Is equal to. The same aseqbut uses the strong type as argument rather than String.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
notEqualToType
public final R notEqualToType(T value)
Is not equal to. The same asnebut uses the strong type as argument rather than String.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
ieq
public R ieq(String value)
Case insensitive is equal to.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
iequalTo
public R iequalTo(String value)
Case insensitive is equal to.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
like
public R like(String value)
Like - include '%' and '_' placeholders as necessary.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
startsWith
public R startsWith(String value)
Starts with - uses a like with '%' wildcard added to the end.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
endsWith
public R endsWith(String value)
Ends with - uses a like with '%' wildcard added to the beginning.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
contains
public R contains(String value)
Contains - uses a like with '%' wildcard added to the beginning and end.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
ilike
public R ilike(String value)
Case insensitive like.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
istartsWith
public R istartsWith(String value)
Case insensitive starts with.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
iendsWith
public R iendsWith(String value)
Case insensitive ends with.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
icontains
public R icontains(String value)
Case insensitive contains.- Parameters:
value- the equal to bind value- Returns:
- the root query bean instance
-
-