Interface JpaSearchedCase<T>
- All Superinterfaces:
CriteriaBuilder.Case<T>, Expression<T>, JpaCriteriaNode, JpaExpression<T>, JpaSelection<T>, JpaTupleElement<T>, Selection<T>, Serializable, TupleElement<T>
- All Known Implementing Classes:
SqmCaseSearched
-
Method Summary
Modifier and TypeMethodDescriptionotherwise(Expression<? extends T> result) Set the otherwise result of this searched case expression.Set the otherwise result of this searched case expression.when(Expression<Boolean> condition, Expression<? extends T> result) Add a when-then clause to this searched case expression.when(Expression<Boolean> condition, T result) Add a when-then clause to this searched case expression.Methods inherited from interface JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface TupleElement
getAlias
-
Method Details
-
when
Add a when-then clause to this searched case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<T>
-
when
@Nonnull JpaSearchedCase<T> when(@Nonnull Expression<Boolean> condition, @Nonnull Expression<? extends T> result) Add a when-then clause to this searched case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<T>
-
otherwise
Set the otherwise result of this searched case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<T>
-
otherwise
Set the otherwise result of this searched case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<T>
-