Interface JpaSimpleCase<C,R>
- All Superinterfaces:
CriteriaBuilder.SimpleCase<C,R>, Expression<R>, JpaCriteriaNode, JpaExpression<R>, JpaSelection<R>, JpaTupleElement<R>, Selection<R>, Serializable, TupleElement<R>
- All Known Implementing Classes:
SqmCaseSimple
-
Method Summary
Modifier and TypeMethodDescriptionReturn the expression tested by this simple case expression.otherwise(Expression<? extends R> result) Set the otherwise result of this simple case expression.Set the otherwise result of this simple case expression.when(C condition, Expression<? extends R> result) Add a when-then clause to this simple case expression.Add a when-then clause to this simple case expression.when(Expression<? extends C> condition, Expression<? extends R> result) Add a when-then clause to this simple case expression.when(Expression<? extends C> condition, R result) Add a when-then clause to this simple 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
-
getExpression
Return the expression tested by this simple case expression.- Specified by:
getExpressionin interfaceCriteriaBuilder.SimpleCase<C,R>
-
when
-
when
Add a when-then clause to this simple case expression.- Specified by:
whenin interfaceCriteriaBuilder.SimpleCase<C,R>
-
when
Add a when-then clause to this simple case expression.- Specified by:
whenin interfaceCriteriaBuilder.SimpleCase<C,R>
-
when
@Nonnull JpaSimpleCase<C,R> when(@Nonnull Expression<? extends C> condition, @Nonnull Expression<? extends R> result) Add a when-then clause to this simple case expression.- Specified by:
whenin interfaceCriteriaBuilder.SimpleCase<C,R>
-
otherwise
Set the otherwise result of this simple case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.SimpleCase<C,R>
-
otherwise
Set the otherwise result of this simple case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.SimpleCase<C,R>
-