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
public class SqmCaseSearched<R> extends AbstractSqmExpression<R> implements JpaSearchedCase<R>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqmCaseSearched.WhenFragment<R>
-
Constructor Summary
Constructors Constructor Description SqmCaseSearched(int estimatedWhenSize, NodeBuilder nodeBuilder)
SqmCaseSearched(NodeBuilder nodeBuilder)
SqmCaseSearched(SqmExpressible<R> inherentType, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(SemanticQueryWalker<T> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
String
asLoggableText()
SqmCaseSearched<R>
copy(SqmCopyContext context)
SqmExpression<? extends R>
getOtherwise()
List<SqmCaseSearched.WhenFragment<? extends R>>
getWhenFragments()
protected void
internalApplyInferableType(SqmExpressible<?> newType)
SqmExpression<R>
otherwise(Expression<? extends R> result)
SqmCaseSearched<R>
otherwise(SqmExpression<? extends R> otherwiseExpression)
SqmExpression<R>
otherwise(R result)
SqmCaseSearched<R>
when(Expression<Boolean> condition, Expression<? extends R> result)
SqmCaseSearched<R>
when(Expression<Boolean> condition, R result)
SqmCaseSearched<R>
when(SqmPredicate predicate, SqmExpression<? extends R> result)
-
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
alias, applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, isNotNull, isNull, nodeBuilder
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
getSelectionItems, isCompoundSelection
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, getNodeType, setAlias, setExpressibleType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
-
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor
-
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
-
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, getNodeType, visitSubSelectableNodes
-
Methods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLength
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
-
-
-
Constructor Detail
-
SqmCaseSearched
public SqmCaseSearched(NodeBuilder nodeBuilder)
-
SqmCaseSearched
public SqmCaseSearched(SqmExpressible<R> inherentType, NodeBuilder nodeBuilder)
-
SqmCaseSearched
public SqmCaseSearched(int estimatedWhenSize, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmCaseSearched<R> copy(SqmCopyContext context)
- Specified by:
copy
in interfaceSqmExpression<R>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmSelectableNode<R>
- Specified by:
copy
in interfaceSqmTypedNode<R>
-
getWhenFragments
public List<SqmCaseSearched.WhenFragment<? extends R>> getWhenFragments()
-
getOtherwise
public SqmExpression<? extends R> getOtherwise()
-
when
public SqmCaseSearched<R> when(SqmPredicate predicate, SqmExpression<? extends R> result)
-
otherwise
public SqmCaseSearched<R> otherwise(SqmExpression<? extends R> otherwiseExpression)
-
internalApplyInferableType
protected void internalApplyInferableType(SqmExpressible<?> newType)
- Overrides:
internalApplyInferableType
in classAbstractSqmExpression<R>
-
accept
public <T> T accept(SemanticQueryWalker<T> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
asLoggableText
public String asLoggableText()
- Specified by:
asLoggableText
in interfaceSqmNode
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-
when
public SqmCaseSearched<R> when(Expression<Boolean> condition, R result)
- Specified by:
when
in interfaceCriteriaBuilder.Case<R>
- Specified by:
when
in interfaceJpaSearchedCase<R>
-
when
public SqmCaseSearched<R> when(Expression<Boolean> condition, Expression<? extends R> result)
- Specified by:
when
in interfaceCriteriaBuilder.Case<R>
- Specified by:
when
in interfaceJpaSearchedCase<R>
-
otherwise
public SqmExpression<R> otherwise(R result)
- Specified by:
otherwise
in interfaceCriteriaBuilder.Case<R>
- Specified by:
otherwise
in interfaceJpaSearchedCase<R>
-
otherwise
public SqmExpression<R> otherwise(Expression<? extends R> result)
- Specified by:
otherwise
in interfaceCriteriaBuilder.Case<R>
- Specified by:
otherwise
in interfaceJpaSearchedCase<R>
-
-