Class AbstractSqmExpression<T>
- 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<T>
-
- All Implemented Interfaces:
Expression<T>
,Selection<T>
,TupleElement<T>
,Serializable
,JpaCriteriaNode
,JpaExpression<T>
,JpaSelection<T>
,JpaTupleElement<T>
,SqmExpression<T>
,SqmSelectableNode<T>
,SqmExpressibleAccessor<T>
,SqmNode
,SqmTypedNode<T>
,SqmVisitableNode
- Direct Known Subclasses:
AbstractSqmParameter
,AbstractSqmPath
,AbstractSqmPredicate
,JpaCriteriaParameter
,SqmAliasedNodeRef
,SqmAny
,SqmAnyDiscriminatorValue
,SqmBinaryArithmetic
,SqmByUnit
,SqmCaseSearched
,SqmCaseSimple
,SqmCoalesce
,SqmCollectionSize
,SqmEvery
,SqmFkExpression
,SqmFunction
,SqmJpaCompoundSelection
,SqmJpaCriteriaParameterWrapper
,SqmLiteral
,SqmLiteralEntityType
,SqmModifiedSubQueryExpression
,SqmOver
,SqmOverflow
,SqmParameterizedEntityType
,SqmSelfRenderingExpression
,SqmStar
,SqmSummarization
,SqmToDuration
,SqmTuple
,SqmUnaryOperation
public abstract class AbstractSqmExpression<T> extends AbstractJpaSelection<T> implements SqmExpression<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSqmExpression(SqmExpressible<? super T> type, NodeBuilder criteriaBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaSelection<T>
alias(String name)
void
applyInferableType(SqmExpressible<?> type)
Used to apply type information based on the expression's usage within the query.<X> SqmExpression<X>
as(Class<X> type)
SqmExpression<BigDecimal>
asBigDecimal()
SqmExpression<BigInteger>
asBigInteger()
SqmExpression<Double>
asDouble()
SqmExpression<Float>
asFloat()
SqmExpression<Integer>
asInteger()
SqmExpression<Long>
asLong()
SqmExpression<String>
asString()
SqmPredicate
equalTo(Expression<T> that)
SqmPredicate
equalTo(T that)
JavaType<T>
getJavaTypeDescriptor()
SqmPredicate
in(Expression<?>... values)
SqmPredicate
in(Expression<Collection<?>> values)
SqmPredicate
in(Object... values)
SqmPredicate
in(Collection<?> values)
protected void
internalApplyInferableType(SqmExpressible<?> newType)
SqmPredicate
isNotNull()
SqmPredicate
isNull()
SqmCriteriaNodeBuilder
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
getCompoundSelectionItems, getSelectionItems
-
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType
-
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
-
Methods inherited from interface org.hibernate.query.sqm.tree.expression.SqmExpression
castAs, copy, getNodeType, visitSubSelectableNodes
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText
-
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
accept, appendHqlString, toHqlString
-
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
-
-
-
Constructor Detail
-
AbstractSqmExpression
public AbstractSqmExpression(SqmExpressible<? super T> type, NodeBuilder criteriaBuilder)
-
-
Method Detail
-
nodeBuilder
public SqmCriteriaNodeBuilder nodeBuilder()
- Specified by:
nodeBuilder
in interfaceSqmNode
- Overrides:
nodeBuilder
in classAbstractSqmNode
-
applyInferableType
public void applyInferableType(SqmExpressible<?> type)
Description copied from interface:SqmExpression
Used to apply type information based on the expression's usage within the query.- Specified by:
applyInferableType
in interfaceSqmExpression<T>
-
internalApplyInferableType
protected void internalApplyInferableType(SqmExpressible<?> newType)
-
asLong
public SqmExpression<Long> asLong()
- Specified by:
asLong
in interfaceJpaExpression<T>
- Specified by:
asLong
in interfaceSqmExpression<T>
-
asInteger
public SqmExpression<Integer> asInteger()
- Specified by:
asInteger
in interfaceJpaExpression<T>
- Specified by:
asInteger
in interfaceSqmExpression<T>
-
asFloat
public SqmExpression<Float> asFloat()
- Specified by:
asFloat
in interfaceJpaExpression<T>
- Specified by:
asFloat
in interfaceSqmExpression<T>
-
asDouble
public SqmExpression<Double> asDouble()
- Specified by:
asDouble
in interfaceJpaExpression<T>
- Specified by:
asDouble
in interfaceSqmExpression<T>
-
asBigDecimal
public SqmExpression<BigDecimal> asBigDecimal()
- Specified by:
asBigDecimal
in interfaceJpaExpression<T>
- Specified by:
asBigDecimal
in interfaceSqmExpression<T>
-
asBigInteger
public SqmExpression<BigInteger> asBigInteger()
- Specified by:
asBigInteger
in interfaceJpaExpression<T>
- Specified by:
asBigInteger
in interfaceSqmExpression<T>
-
asString
public SqmExpression<String> asString()
- Specified by:
asString
in interfaceJpaExpression<T>
- Specified by:
asString
in interfaceSqmExpression<T>
-
as
public <X> SqmExpression<X> as(Class<X> type)
- Specified by:
as
in interfaceExpression<T>
- Specified by:
as
in interfaceJpaExpression<T>
- Specified by:
as
in interfaceSqmExpression<T>
-
isNull
public SqmPredicate isNull()
- Specified by:
isNull
in interfaceExpression<T>
- Specified by:
isNull
in interfaceJpaExpression<T>
- Specified by:
isNull
in interfaceSqmExpression<T>
-
isNotNull
public SqmPredicate isNotNull()
- Specified by:
isNotNull
in interfaceExpression<T>
- Specified by:
isNotNull
in interfaceJpaExpression<T>
- Specified by:
isNotNull
in interfaceSqmExpression<T>
-
equalTo
public SqmPredicate equalTo(Expression<T> that)
- Specified by:
equalTo
in interfaceJpaExpression<T>
- Specified by:
equalTo
in interfaceSqmExpression<T>
-
equalTo
public SqmPredicate equalTo(T that)
- Specified by:
equalTo
in interfaceJpaExpression<T>
- Specified by:
equalTo
in interfaceSqmExpression<T>
-
in
public SqmPredicate in(Object... values)
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<?>... values)
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
public SqmPredicate in(Collection<?> values)
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<Collection<?>> values)
- Specified by:
in
in interfaceExpression<T>
- Specified by:
in
in interfaceJpaExpression<T>
- Specified by:
in
in interfaceSqmExpression<T>
-
alias
public JpaSelection<T> alias(String name)
- Specified by:
alias
in interfaceJpaSelection<T>
- Specified by:
alias
in interfaceSelection<T>
- Overrides:
alias
in classAbstractJpaSelection<T>
-
getJavaTypeDescriptor
public JavaType<T> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptor
in interfaceJpaTupleElement<T>
-
-