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(NodeBuilder nodeBuilder)
SqmCaseSearched(SqmExpressible<R> inherentType, int estimateWhenSize, 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<R>
getOtherwise()
List<SqmCaseSearched.WhenFragment<R>>
getWhenFragments()
protected void
internalApplyInferableType(SqmExpressible<?> newType)
SqmExpression<R>
otherwise(Expression<? extends R> result)
SqmCaseSearched<R>
otherwise(SqmExpression<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<R> result)
-
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
alias, applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, 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.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(SqmExpressible<R> inherentType, int estimateWhenSize, 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<R>> getWhenFragments()
-
getOtherwise
public SqmExpression<R> getOtherwise()
-
when
public SqmCaseSearched<R> when(SqmPredicate predicate, SqmExpression<R> result)
-
otherwise
public SqmCaseSearched<R> otherwise(SqmExpression<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>
-
-