Package com.querydsl.core.types.dsl
Class ComparableExpression<T extends Comparable>
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.core.types.dsl.ComparableExpressionBase<T>
com.querydsl.core.types.dsl.ComparableExpression<T>
- Type Parameters:
T- expression type
- All Implemented Interfaces:
Expression<T>,Serializable
- Direct Known Subclasses:
ComparableOperation,ComparablePath,ComparableTemplate,LiteralExpression
public abstract class ComparableExpression<T extends Comparable>
extends ComparableExpressionBase<T>
ComparableExpression extends ComparableExpressionBase to provide comparison methods.- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an alias for the expressionCreate an alias for the expressionbetween(@Nullable Expression<T> from, @Nullable Expression<T> to) Create athis between from and toexpressionCreate athis between from and toexpressioncoalesce(Expression<?>... exprs) Create acoalesce(this, exprs...)expressioncoalesce(Expression<T> expr) Create acoalesce(this, expr)expressionCreate acoalesce(this, arg)expressionCreate acoalesce(this, args...)expressiongoe(Expression<T> right) Create athis >= rightexpressionCreate athis >= rightexpressiongoeAll(CollectionExpression<?, ? super T> right) Create athis >= all rightexpressiongoeAll(SubQueryExpression<? extends T> right) Create athis >= all rightexpressiongoeAny(CollectionExpression<?, ? super T> right) Create athis >= any rightexpressiongoeAny(SubQueryExpression<? extends T> right) Create athis >= any rightexpressiongt(Expression<T> right) Create athis > rightexpressionCreate athis > rightexpressiongtAll(CollectionExpression<?, ? super T> right) Create athis > all rightexpressiongtAll(SubQueryExpression<? extends T> right) Create athis > all rightexpressiongtAny(CollectionExpression<?, ? super T> right) Create athis > any rightexpressiongtAny(SubQueryExpression<? extends T> right) Create athis > any rightexpressionloe(Expression<T> right) Create athis <= rightexpressionCreate athis <= rightexpressionloeAll(CollectionExpression<?, ? super T> right) Create athis <= all rightexpressionloeAll(SubQueryExpression<? extends T> right) Create athis <= all rightexpressionloeAny(CollectionExpression<?, ? super T> right) Create athis <= any rightexpressionloeAny(SubQueryExpression<? extends T> right) Create athis <= any rightexpressionlt(Expression<T> right) Create athis < rightexpressionCreate athis < rightexpressionltAll(CollectionExpression<?, ? super T> right) Create athis < all rightexpressionltAll(SubQueryExpression<? extends T> right) Create athis < all rightexpressionltAny(CollectionExpression<?, ? super T> right) Create athis < any rightexpressionltAny(SubQueryExpression<? extends T> right) Create athis < any rightexpressionmax()Create amax(this)expressionmin()Create amin(this)expressionnotBetween(Expression<T> from, Expression<T> to) Create athis not between from and toexpressionnotBetween(T from, T to) Create athis not between from and toexpressionnullif(Expression<T> other) Create anullif(this, other)expressionCreate anullif(this, other)expressionMethods inherited from class com.querydsl.core.types.dsl.ComparableExpressionBase
asc, descMethods inherited from class com.querydsl.core.types.dsl.SimpleExpression
count, countDistinct, eq, eq, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, when, whenMethods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
accept
-
Constructor Details
-
ComparableExpression
-
-
Method Details
-
as
Description copied from class:SimpleExpressionCreate an alias for the expression- Overrides:
asin classSimpleExpression<T extends Comparable>- Returns:
- alias expression
-
as
Description copied from class:SimpleExpressionCreate an alias for the expression- Overrides:
asin classSimpleExpression<T extends Comparable>- Returns:
- alias expression
-
between
Create athis between from and toexpressionIs equivalent to
from <= this <= to- Parameters:
from- inclusive start of rangeto- inclusive end of range- Returns:
- this between from and to
-
between
public BooleanExpression between(@Nullable @Nullable Expression<T> from, @Nullable @Nullable Expression<T> to) Create athis between from and toexpressionIs equivalent to
from <= this <= to- Parameters:
from- inclusive start of rangeto- inclusive end of range- Returns:
- this between from and to
-
notBetween
Create athis not between from and toexpressionIs equivalent to
this < from || this > to- Parameters:
from- inclusive start of rangeto- inclusive end of range- Returns:
- this not between from and to
-
notBetween
Create athis not between from and toexpressionIs equivalent to
this < from || this > to- Parameters:
from- inclusive start of rangeto- inclusive end of range- Returns:
- this not between from and to
-
gt
Create athis > rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > right
- See Also:
-
gt
Create athis > rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > right
- See Also:
-
gtAll
Create athis > all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > all right
-
gtAny
Create athis > any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > any right
-
gtAll
Create athis > all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > all right
-
gtAny
Create athis > any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this > any right
-
goe
Create athis >= rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= right
- See Also:
-
goe
Create athis >= rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= right
- See Also:
-
goeAll
Create athis >= all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= all right
-
goeAny
Create athis >= any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= any right
-
goeAll
Create athis >= all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= all right
-
goeAny
Create athis >= any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this >= any right
-
lt
Create athis < rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < right
- See Also:
-
lt
Create athis < rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < right
- See Also:
-
ltAll
Create athis < all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < all right
-
ltAny
Create athis < any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < any right
-
ltAll
Create athis < all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < all right
-
ltAny
Create athis < any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this < any right
-
loe
Create athis <= rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= right
- See Also:
-
loe
Create athis <= rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= right
- See Also:
-
loeAll
Create athis <= all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= all right
-
loeAny
Create athis <= any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= any right
-
loeAll
Create athis <= all rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= all right
-
loeAny
Create athis <= any rightexpression- Parameters:
right- rhs of the comparison- Returns:
- this <= any right
-
min
Create amin(this)expressionGet the minimum value of this expression (aggregation)
- Overrides:
minin classComparableExpressionBase<T extends Comparable>- Returns:
- min(this)
-
max
Create amax(this)expressionGet the maximum value of this expression (aggregation)
- Overrides:
maxin classComparableExpressionBase<T extends Comparable>- Returns:
- max(this)
-
nullif
Create anullif(this, other)expression- Overrides:
nullifin classComparableExpressionBase<T extends Comparable>- Parameters:
other-- Returns:
- nullif(this, other)
-
nullif
Create anullif(this, other)expression- Overrides:
nullifin classComparableExpressionBase<T extends Comparable>- Parameters:
other-- Returns:
- nullif(this, other)
-
coalesce
Create acoalesce(this, expr)expression- Overrides:
coalescein classComparableExpressionBase<T extends Comparable>- Parameters:
expr- additional argument- Returns:
- coalesce
-
coalesce
Create acoalesce(this, exprs...)expression- Overrides:
coalescein classComparableExpressionBase<T extends Comparable>- Parameters:
exprs- additional arguments- Returns:
- coalesce
-
coalesce
Create acoalesce(this, arg)expression- Overrides:
coalescein classComparableExpressionBase<T extends Comparable>- Parameters:
arg- additional argument- Returns:
- coalesce
-
coalesce
Create acoalesce(this, args...)expression- Overrides:
coalescein classComparableExpressionBase<T extends Comparable>- Parameters:
args- additional arguments- Returns:
- coalesce
-