Class SqmCaseSearched<R>
java.lang.Object
org.hibernate.query.sqm.tree.spi.AbstractSqmNode
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaTupleElement<R>
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaSelection<R>
org.hibernate.query.sqm.tree.spi.expression.AbstractSqmExpression<R>
org.hibernate.query.sqm.tree.spi.expression.SqmCaseSearched<R>
- All Implemented Interfaces:
CriteriaBuilder.Case<R>, Expression<R>, Selection<R>, TupleElement<R>, Serializable, JpaCriteriaNode, JpaExpression<R>, JpaSearchedCase<R>, JpaSelection<R>, JpaTupleElement<R>, SqmExpression<R>, SqmSelectableNode<R>, SqmCacheable, SqmExpressibleAccessor<R>, SqmNode, SqmTypedNode<R>, SqmVisitableNode
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmCaseSearched(int estimatedWhenSize, NodeBuilder nodeBuilder) SqmCaseSearched(NodeBuilder nodeBuilder) SqmCaseSearched(SqmBindableType<R> inherentType, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(SemanticQueryWalker<T> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) booleanSqmExpression<? extends R> List<SqmCaseSearched.WhenFragment<? extends R>> inthashCode()protected voidinternalApplyInferableType(SqmBindableType<?> newType) booleanisCompatible(Object object) otherwise(Expression<? extends R> result) Set the otherwise result of this searched case expression.otherwise(SqmExpression<? extends R> otherwiseExpression) Set the otherwise result of this searched case expression.when(Expression<Boolean> condition, Expression<? extends R> result) Add a when-then clause to this searched case expression.when(Expression<Boolean> condition, R result) Add a when-then clause to this searched case expression.when(SqmPredicate predicate, SqmExpression<? extends R> result) Methods inherited from class AbstractSqmExpression
applyInferableType, as, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from class AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, getNodeType, setAlias, setExpressibleTypeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaExpression
coalesce, coalesce, count, countDistinct, in, isMember, isNotMember, 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 SqmExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, getNodeType, visitSubSelectableNodesMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
SqmCaseSearched
-
SqmCaseSearched
-
SqmCaseSearched
-
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmExpression<R>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmSelectableNode<R>- Specified by:
copyin interfaceSqmTypedNode<R>
-
getWhenFragments
-
getOtherwise
-
when
@Nonnull public SqmCaseSearched<R> when(@Nonnull SqmPredicate predicate, @Nonnull SqmExpression<? extends R> result) -
otherwise
@Nonnull public SqmCaseSearched<R> otherwise(@Nonnull SqmExpression<? extends R> otherwiseExpression) -
internalApplyInferableType
- Overrides:
internalApplyInferableTypein classAbstractSqmExpression<R>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
asLoggableText
- Specified by:
asLoggableTextin interfaceSqmNode
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-
when
Description copied from interface:JpaSearchedCaseAdd a when-then clause to this searched case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<R>- Specified by:
whenin interfaceJpaSearchedCase<R>
-
when
@Nonnull public SqmCaseSearched<R> when(@Nonnull Expression<Boolean> condition, @Nonnull Expression<? extends R> result) Description copied from interface:JpaSearchedCaseAdd a when-then clause to this searched case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<R>- Specified by:
whenin interfaceJpaSearchedCase<R>
-
otherwise
Description copied from interface:JpaSearchedCaseSet the otherwise result of this searched case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<R>- Specified by:
otherwisein interfaceJpaSearchedCase<R>
-
otherwise
Description copied from interface:JpaSearchedCaseSet the otherwise result of this searched case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<R>- Specified by:
otherwisein interfaceJpaSearchedCase<R>
-