Class SqmCaseSearched<R>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<T>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<T>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<R>
org.hibernate.query.sqm.tree.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>,SqmExpressibleAccessor<R>,SqmNode,SqmTypedNode<R>,SqmVisitableNode
- Author:
- Steve Ebersole
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmCaseSearched(int estimatedWhenSize, NodeBuilder nodeBuilder) SqmCaseSearched(NodeBuilder nodeBuilder) SqmCaseSearched(SqmExpressible<R> inherentType, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(SemanticQueryWalker<T> walker) Accept the walker per visitationvoidcopy(SqmCopyContext context) SqmExpression<? extends R>List<SqmCaseSearched.WhenFragment<? extends R>>protected voidinternalApplyInferableType(SqmExpressible<?> newType) otherwise(Expression<? extends R> result) Add an "else" clause to the case expression.otherwise(SqmExpression<? extends R> otherwiseExpression) Add an "else" clause to the case expression.when(Expression<Boolean> condition, Expression<? extends R> result) Add a when/then clause to the case expression.when(Expression<Boolean> condition, R result) Add a when/then clause to the case expression.when(SqmPredicate predicate, SqmExpression<? extends R> result) Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, isNotNull, isNull, nodeBuilderMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, getNodeType, setAlias, setExpressibleTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
cast, castAs, getNodeType, visitSubSelectableNodesMethods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlStringMethods inherited from interface jakarta.persistence.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
-
otherwise
-
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
-
when
Description copied from interface:CriteriaBuilder.CaseAdd a when/then clause to the case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<R>- Specified by:
whenin interfaceJpaSearchedCase<R>- Parameters:
condition- "when" conditionresult- "then" result value- Returns:
- general case expression
-
when
Description copied from interface:CriteriaBuilder.CaseAdd a when/then clause to the case expression.- Specified by:
whenin interfaceCriteriaBuilder.Case<R>- Specified by:
whenin interfaceJpaSearchedCase<R>- Parameters:
condition- "when" conditionresult- "then" result expression- Returns:
- general case expression
-
otherwise
Description copied from interface:CriteriaBuilder.CaseAdd an "else" clause to the case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<R>- Specified by:
otherwisein interfaceJpaSearchedCase<R>- Parameters:
result- "else" result- Returns:
- expression
-
otherwise
Description copied from interface:CriteriaBuilder.CaseAdd an "else" clause to the case expression.- Specified by:
otherwisein interfaceCriteriaBuilder.Case<R>- Specified by:
otherwisein interfaceJpaSearchedCase<R>- Parameters:
result- "else" result expression- Returns:
- expression
-