Class AbstractSqmExpression<T>
java.lang.Object
org.hibernate.query.sqm.tree.spi.AbstractSqmNode
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaTupleElement<T>
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaSelection<T>
org.hibernate.query.sqm.tree.spi.expression.AbstractSqmExpression<T>
- All Implemented Interfaces:
Expression<T>, Selection<T>, TupleElement<T>, Serializable, JpaCriteriaNode, JpaExpression<T>, JpaSelection<T>, JpaTupleElement<T>, SqmExpression<T>, SqmSelectableNode<T>, SqmCacheable, SqmExpressibleAccessor<T>, SqmNode, SqmTypedNode<T>, SqmVisitableNode
- Direct Known Subclasses:
AbstractSqmParameter, AbstractSqmPath, AbstractSqmPredicate, AsWrapperSqmExpression, JpaCriteriaParameter, SqmAliasedNodeRef, SqmAny, SqmAnyDiscriminatorValue, SqmBinaryArithmetic, SqmBooleanExpressionWrapper, SqmByUnit, SqmCaseSearched, SqmCaseSimple, SqmCoalesce, SqmCollectionSize, SqmComparableExpressionWrapper, SqmEvery, SqmFieldLiteral, SqmFunction, SqmJpaCompoundSelection, SqmJpaCriteriaParameterWrapper, SqmLiteral, SqmLiteralEmbeddableType, SqmLiteralEntityType, SqmModifiedSubQueryExpression, SqmNamedExpression, SqmNumericExpressionWrapper, SqmOver, SqmOverflow, SqmParameterizedEntityType, SqmSelfRenderingExpression, SqmStar, SqmSummarization, SqmToDuration, SqmTuple, SqmUnaryOperation
public abstract class AbstractSqmExpression<T>
extends AbstractJpaSelection<T>
implements SqmExpression<T>
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSqmExpression(SqmBindableType<? super T> type, NodeBuilder criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyInferableType(SqmBindableType<?> type) Used to apply type information based on the expression's usage within the query.<X> SqmExpression<X> Narrow this expression to the given Java type.<X> SqmExpression<X> Create a cast expression for this expression.coalesce(Expression<? extends T> y) Create a coalesce expression using this expression.Create a coalesce expression using this expression.count()Create a count expression for this expression.Create a distinct count expression for this expression.equalTo(Expression<?> value) Create a predicate testing equality with this expression.Create a predicate testing equality with this expression.Return the Java type of this tuple element.in(Expression<?>... values) Create an in predicate for this expression.in(Expression<Collection<?>> values) Create an in predicate for this expression.Create an in predicate for this expression.Create an in predicate for this expression.in(Collection<?> values) Create an in predicate for this expression.protected voidinternalApplyInferableType(SqmBindableType<?> newType) isMember(Expression<? extends Collection<? super T>> collection) Create a predicate testing whether this expression is a member of a collection.isNotMember(Expression<? extends Collection<? super T>> collection) Create a predicate testing whether this expression is not a member of a collection.Create a predicate testing whether this expression is not null.isNull()Create a predicate testing whether this expression is null.org.hibernate.query.sqm.internal.SqmCriteriaNodeBuildernotEqualTo(Expression<?> value) Create a predicate testing inequality with this expression.notEqualTo(Object value) Create a predicate testing inequality with this expression.nullif(Expression<? extends T> y) Create a nullif expression using this expression.Create a nullif expression using this expression.<R> SqmCaseSimple<T, R> Create a simple case expression based on this expression.<R> SqmCaseSimple<T, R> selectCase(Class<R> resultType) Create a simple case expression based on this expression.Methods inherited from class AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, getNodeType, setAlias, setExpressibleTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface SqmCacheable
cacheHashCode, isCompatibleMethods inherited from interface SqmExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, copy, getNodeType, visitSubSelectableNodesMethods inherited from interface SqmNode
asLoggableTextMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
accept, appendHqlString, toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
AbstractSqmExpression
public AbstractSqmExpression(@Nullable SqmBindableType<? super T> type, @Nonnull NodeBuilder criteriaBuilder)
-
-
Method Details
-
nodeBuilder
- Specified by:
nodeBuilderin interfaceSqmNode- Overrides:
nodeBuilderin classAbstractSqmNode
-
applyInferableType
Description copied from interface:SqmExpressionUsed to apply type information based on the expression's usage within the query.- Specified by:
applyInferableTypein interfaceSqmExpression<T>
-
internalApplyInferableType
-
as
Description copied from interface:JpaExpressionNarrow this expression to the given Java type.- Specified by:
asin interfaceExpression<T>- Specified by:
asin interfaceJpaExpression<T>- Specified by:
asin interfaceSqmExpression<T>
-
isNull
Description copied from interface:JpaExpressionCreate a predicate testing whether this expression is null.- Specified by:
isNullin interfaceExpression<T>- Specified by:
isNullin interfaceJpaExpression<T>- Specified by:
isNullin interfaceSqmExpression<T>
-
isNotNull
Description copied from interface:JpaExpressionCreate a predicate testing whether this expression is not null.- Specified by:
isNotNullin interfaceExpression<T>- Specified by:
isNotNullin interfaceJpaExpression<T>- Specified by:
isNotNullin interfaceSqmExpression<T>
-
equalTo
Description copied from interface:JpaExpressionCreate a predicate testing equality with this expression.- Specified by:
equalToin interfaceExpression<T>- Specified by:
equalToin interfaceJpaExpression<T>- Specified by:
equalToin interfaceSqmExpression<T>
-
equalTo
Description copied from interface:JpaExpressionCreate a predicate testing equality with this expression.- Specified by:
equalToin interfaceExpression<T>- Specified by:
equalToin interfaceJpaExpression<T>- Specified by:
equalToin interfaceSqmExpression<T>
-
notEqualTo
Description copied from interface:JpaExpressionCreate a predicate testing inequality with this expression.- Specified by:
notEqualToin interfaceExpression<T>- Specified by:
notEqualToin interfaceJpaExpression<T>- Specified by:
notEqualToin interfaceSqmExpression<T>
-
notEqualTo
Description copied from interface:JpaExpressionCreate a predicate testing inequality with this expression.- Specified by:
notEqualToin interfaceExpression<T>- Specified by:
notEqualToin interfaceJpaExpression<T>- Specified by:
notEqualToin interfaceSqmExpression<T>
-
cast
Description copied from interface:JpaExpressionCreate a cast expression for this expression.- Specified by:
castin interfaceExpression<T>- Specified by:
castin interfaceJpaExpression<T>- Specified by:
castin interfaceSqmExpression<T>
-
selectCase
Description copied from interface:JpaExpressionCreate a simple case expression based on this expression.- Specified by:
selectCasein interfaceJpaExpression<T>
-
selectCase
Description copied from interface:JpaExpressionCreate a simple case expression based on this expression.- Specified by:
selectCasein interfaceExpression<T>- Specified by:
selectCasein interfaceJpaExpression<T>
-
in
Description copied from interface:JpaExpressionCreate an in predicate for this expression.- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
Description copied from interface:JpaExpressionCreate an in predicate for this expression.- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
Description copied from interface:JpaExpressionCreate an in predicate for this expression.- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
Description copied from interface:JpaExpressionCreate an in predicate for this expression.- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
Description copied from interface:JpaExpressionCreate an in predicate for this expression.- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>
-
coalesce
Description copied from interface:JpaExpressionCreate a coalesce expression using this expression.- Specified by:
coalescein interfaceExpression<T>- Specified by:
coalescein interfaceJpaExpression<T>
-
coalesce
Description copied from interface:JpaExpressionCreate a coalesce expression using this expression.- Specified by:
coalescein interfaceExpression<T>- Specified by:
coalescein interfaceJpaExpression<T>
-
nullif
Description copied from interface:JpaExpressionCreate a nullif expression using this expression.- Specified by:
nullifin interfaceExpression<T>- Specified by:
nullifin interfaceJpaExpression<T>
-
nullif
Description copied from interface:JpaExpressionCreate a nullif expression using this expression.- Specified by:
nullifin interfaceExpression<T>- Specified by:
nullifin interfaceJpaExpression<T>
-
isMember
@Nonnull public SqmPredicate isMember(@Nonnull Expression<? extends Collection<? super T>> collection) Description copied from interface:JpaExpressionCreate a predicate testing whether this expression is a member of a collection.- Specified by:
isMemberin interfaceExpression<T>- Specified by:
isMemberin interfaceJpaExpression<T>
-
isNotMember
@Nonnull public SqmPredicate isNotMember(@Nonnull Expression<? extends Collection<? super T>> collection) Description copied from interface:JpaExpressionCreate a predicate testing whether this expression is not a member of a collection.- Specified by:
isNotMemberin interfaceExpression<T>- Specified by:
isNotMemberin interfaceJpaExpression<T>
-
count
Description copied from interface:JpaExpressionCreate a count expression for this expression.- Specified by:
countin interfaceExpression<T>- Specified by:
countin interfaceJpaExpression<T>
-
countDistinct
Description copied from interface:JpaExpressionCreate a distinct count expression for this expression.- Specified by:
countDistinctin interfaceExpression<T>- Specified by:
countDistinctin interfaceJpaExpression<T>
-
getJavaTypeDescriptor
Description copied from interface:JpaTupleElementReturn the Java type of this tuple element.- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<T>
-