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<? extends T> type, NodeBuilder criteriaBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaSelection<T>alias(String name)voidapplyInferableType(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()JavaType<T>getJavaTypeDescriptor()SqmPredicatein(Expression<?>... values)SqmPredicatein(Expression<Collection<?>> values)SqmPredicatein(Object... values)SqmPredicatein(Collection<?> values)protected voidinternalApplyInferableType(SqmExpressible<?> newType)SqmPredicateisNotNull()SqmPredicateisNull()SqmCriteriaNodeBuildernodeBuilder()-
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.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<? extends T> type, NodeBuilder criteriaBuilder)
-
-
Method Detail
-
nodeBuilder
public SqmCriteriaNodeBuilder nodeBuilder()
- Specified by:
nodeBuilderin interfaceSqmNode- Overrides:
nodeBuilderin classAbstractSqmNode
-
applyInferableType
public void applyInferableType(SqmExpressible<?> type)
Description copied from interface:SqmExpressionUsed to apply type information based on the expression's usage within the query.- Specified by:
applyInferableTypein interfaceSqmExpression<T>
-
internalApplyInferableType
protected void internalApplyInferableType(SqmExpressible<?> newType)
-
asLong
public SqmExpression<Long> asLong()
- Specified by:
asLongin interfaceJpaExpression<T>- Specified by:
asLongin interfaceSqmExpression<T>
-
asInteger
public SqmExpression<Integer> asInteger()
- Specified by:
asIntegerin interfaceJpaExpression<T>- Specified by:
asIntegerin interfaceSqmExpression<T>
-
asFloat
public SqmExpression<Float> asFloat()
- Specified by:
asFloatin interfaceJpaExpression<T>- Specified by:
asFloatin interfaceSqmExpression<T>
-
asDouble
public SqmExpression<Double> asDouble()
- Specified by:
asDoublein interfaceJpaExpression<T>- Specified by:
asDoublein interfaceSqmExpression<T>
-
asBigDecimal
public SqmExpression<BigDecimal> asBigDecimal()
- Specified by:
asBigDecimalin interfaceJpaExpression<T>- Specified by:
asBigDecimalin interfaceSqmExpression<T>
-
asBigInteger
public SqmExpression<BigInteger> asBigInteger()
- Specified by:
asBigIntegerin interfaceJpaExpression<T>- Specified by:
asBigIntegerin interfaceSqmExpression<T>
-
asString
public SqmExpression<String> asString()
- Specified by:
asStringin interfaceJpaExpression<T>- Specified by:
asStringin interfaceSqmExpression<T>
-
as
public <X> SqmExpression<X> as(Class<X> type)
- Specified by:
asin interfaceExpression<T>- Specified by:
asin interfaceJpaExpression<T>- Specified by:
asin interfaceSqmExpression<T>
-
isNull
public SqmPredicate isNull()
- Specified by:
isNullin interfaceExpression<T>- Specified by:
isNullin interfaceJpaExpression<T>- Specified by:
isNullin interfaceSqmExpression<T>
-
isNotNull
public SqmPredicate isNotNull()
- Specified by:
isNotNullin interfaceExpression<T>- Specified by:
isNotNullin interfaceJpaExpression<T>- Specified by:
isNotNullin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Object... values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<?>... values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Collection<?> values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
public SqmPredicate in(Expression<Collection<?>> values)
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
alias
public JpaSelection<T> alias(String name)
- Specified by:
aliasin interfaceJpaSelection<T>- Specified by:
aliasin interfaceSelection<T>- Overrides:
aliasin classAbstractJpaSelection<T>
-
getJavaTypeDescriptor
public JavaType<T> getJavaTypeDescriptor()
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<T>
-
-