java.lang.Object
io.ebean.StdOperators
Standard Operators for use with strongly typed query construction.
This is currently deemed to be experimental and subject to change.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Query.Property<T> avg(Query.Property<T> property) Average of the given property.static <T> Query.Property<T> coalesce(Query.Property<T> property, Object value) Coalesce of the property and value.static Query.Property<String> concat(Query.Property<?> property, Object... values) Concat of the given property and values or other properties.static Expressioncontains(Query.Property<String> property, String value) Contains - for a given property and value.static Query.Property<Number> count(Query.Property<?> property) Count of the given property.static <T> Expressioneq(Query.Property<T> property, Query<?> subQuery) Equal to - for a property and sub-query.static <T> Expressioneq(Query.Property<T> property, T value) Equal to - for a property and value.static <T> ExpressioneqOrNull(Query.Property<T> property, T value) Equal to or null - for a property and value.static <T> Expressionge(Query.Property<T> property, Query<?> subQuery) Greater than or equal to - for a property and sub-query.static <T> Expressionge(Query.Property<T> property, T value) Greater than or equal to - for a property and value.static <T> ExpressiongeOrNull(Query.Property<T> property, T value) Greater than or null - for a property and value.static <T> Expressiongt(Query.Property<T> property, Query<?> subQuery) Greater than - for a property and sub-query.static <T> Expressiongt(Query.Property<T> property, T value) Greater than - for a property and value.static <T> ExpressiongtOrNull(Query.Property<T> property, T value) Greater than or null - for a property and value.static Expressionicontains(Query.Property<String> property, String value) Case-insensitive contains - for a given property and value.static Expressionilike(Query.Property<String> property, String value) Case-insensitive Like - for a given property and value.static <T> Expressionin(Query.Property<T> property, Query<?> subQuery) In - for a given property and sub-query.static <T> Expressionin(Query.Property<T> property, Collection<T> value) In - for a given property and collection of values.static <T> ExpressioninOrEmpty(Query.Property<T> property, Collection<T> value) In or empty - for a given property and collection of values.static <T> ExpressioninRange(Query.Property<T> lowProperty, Query.Property<T> property, Query.Property<T> highProperty) In range - for properties.static <T> ExpressioninRange(Query.Property<T> lowProperty, Query.Property<T> highProperty, T value) In range - for properties and a value.static <T> ExpressioninRange(Query.Property<T> property, T lowValue, T highValue) In range - for a property and values.static ExpressionistartsWith(Query.Property<String> property, String value) Case-insensitive starts with - for a given property and value.static <T> Expressionle(Query.Property<T> property, Query<?> subQuery) Greater than or equal to - for a property and sub-query.static <T> Expressionle(Query.Property<T> property, T value) Greater than or equal to - for a property and value.static <T> ExpressionleOrNull(Query.Property<T> property, T value) Greater than or equal to or null - for a property and value.static Expressionlike(Query.Property<String> property, String value) Like - for a given property and value.static Query.Property<String> lower(Query.Property<String> property) Lower of the given property.static <T> Expressionlt(Query.Property<T> property, Query<?> subQuery) Less than - for a property and sub-query.static <T> Expressionlt(Query.Property<T> property, T value) Less than - for a property and value.static <T> ExpressionltOrNull(Query.Property<T> property, T value) Less than or null - for a property and value.static <T> Query.Property<T> max(Query.Property<T> property) Max of the given property.static <T> Query.Property<T> min(Query.Property<T> property) Min of the given property.static <T> Expressionne(Query.Property<T> property, Query<?> subQuery) Not equal to - for a property and sub-query.static <T> Expressionne(Query.Property<T> property, T value) Not equal to - for a property and value.static <T> ExpressionnotIn(Query.Property<T> property, Query<?> subQuery) Not In - for a given property and sub-query.static <T> ExpressionnotIn(Query.Property<T> property, Collection<T> value) Not In - for a given property and collection of values.static ExpressionstartsWith(Query.Property<String> property, String value) Starts with - for a given property and value.static Query.Property<Number> sum(Query.Property<? extends Number> property) Sum of the given property.static Query.Property<String> upper(Query.Property<String> property) Upper of the given property.
-
Constructor Details
-
StdOperators
public StdOperators()
-
-
Method Details
-
sum
Sum of the given property. -
count
Count of the given property. -
avg
Average of the given property. -
max
Max of the given property. -
min
Min of the given property. -
coalesce
Coalesce of the property and value. -
lower
Lower of the given property. -
upper
Upper of the given property. -
concat
Concat of the given property and values or other properties. -
eq
Equal to - for a property and value. -
eq
Equal to - for a property and sub-query. -
eqOrNull
Equal to or null - for a property and value. -
ne
Not equal to - for a property and value. -
ne
Not equal to - for a property and sub-query. -
gt
Greater than - for a property and value. -
gt
Greater than - for a property and sub-query. -
gtOrNull
Greater than or null - for a property and value. -
ge
Greater than or equal to - for a property and value. -
ge
Greater than or equal to - for a property and sub-query. -
geOrNull
Greater than or null - for a property and value. -
lt
Less than - for a property and value. -
lt
Less than - for a property and sub-query. -
ltOrNull
Less than or null - for a property and value. -
le
Greater than or equal to - for a property and value. -
le
Greater than or equal to - for a property and sub-query. -
leOrNull
Greater than or equal to or null - for a property and value. -
inRange
In range - for a property and values. -
inRange
public static <T> Expression inRange(Query.Property<T> lowProperty, Query.Property<T> highProperty, T value) In range - for properties and a value. -
inRange
public static <T> Expression inRange(Query.Property<T> lowProperty, Query.Property<T> property, Query.Property<T> highProperty) In range - for properties. -
in
In - for a given property and collection of values. -
in
In - for a given property and sub-query. -
inOrEmpty
In or empty - for a given property and collection of values. -
notIn
Not In - for a given property and collection of values. -
notIn
Not In - for a given property and sub-query. -
like
Like - for a given property and value. -
ilike
Case-insensitive Like - for a given property and value. -
startsWith
Starts with - for a given property and value. -
istartsWith
Case-insensitive starts with - for a given property and value. -
contains
Contains - for a given property and value. -
icontains
Case-insensitive contains - for a given property and value.
-