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>, 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> <X> SqmExpression<X> coalesce(Expression<? extends T> y) count()equalTo(Expression<?> value) in(Expression<?>... values) in(Expression<Collection<?>> values) in(Collection<?> values) protected voidinternalApplyInferableType(SqmBindableType<?> newType) isMember(Expression<? extends Collection<? super T>> collection) isNotMember(Expression<? extends Collection<? super T>> collection) isNull()org.hibernate.query.sqm.internal.SqmCriteriaNodeBuildernotEqualTo(Expression<?> value) notEqualTo(Object value) nullif(Expression<? extends T> y) <R> SqmCaseSimple<T, R> <R> SqmCaseSimple<T, R> selectCase(Class<R> resultType) 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, 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, NodeBuilder criteriaBuilder)
-
-
Method Details
-
nodeBuilder
public org.hibernate.query.sqm.internal.SqmCriteriaNodeBuilder 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
- Specified by:
asin interfaceExpression<T>- Specified by:
asin interfaceJpaExpression<T>- Specified by:
asin interfaceSqmExpression<T>
-
isNull
- Specified by:
isNullin interfaceExpression<T>- Specified by:
isNullin interfaceJpaExpression<T>- Specified by:
isNullin interfaceSqmExpression<T>
-
isNotNull
- Specified by:
isNotNullin interfaceExpression<T>- Specified by:
isNotNullin interfaceJpaExpression<T>- Specified by:
isNotNullin interfaceSqmExpression<T>
-
equalTo
- Specified by:
equalToin interfaceExpression<T>- Specified by:
equalToin interfaceJpaExpression<T>- Specified by:
equalToin interfaceSqmExpression<T>
-
equalTo
- Specified by:
equalToin interfaceExpression<T>- Specified by:
equalToin interfaceJpaExpression<T>- Specified by:
equalToin interfaceSqmExpression<T>
-
notEqualTo
- Specified by:
notEqualToin interfaceExpression<T>- Specified by:
notEqualToin interfaceJpaExpression<T>- Specified by:
notEqualToin interfaceSqmExpression<T>
-
notEqualTo
- Specified by:
notEqualToin interfaceExpression<T>- Specified by:
notEqualToin interfaceJpaExpression<T>- Specified by:
notEqualToin interfaceSqmExpression<T>
-
cast
- Specified by:
castin interfaceExpression<T>- Specified by:
castin interfaceJpaExpression<T>- Specified by:
castin interfaceSqmExpression<T>
-
selectCase
- Specified by:
selectCasein interfaceJpaExpression<T>
-
selectCase
- Specified by:
selectCasein interfaceExpression<T>- Specified by:
selectCasein interfaceJpaExpression<T>
-
in
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>- Specified by:
inin interfaceSqmExpression<T>
-
in
- Specified by:
inin interfaceExpression<T>- Specified by:
inin interfaceJpaExpression<T>
-
coalesce
- Specified by:
coalescein interfaceExpression<T>- Specified by:
coalescein interfaceJpaExpression<T>
-
coalesce
- Specified by:
coalescein interfaceExpression<T>- Specified by:
coalescein interfaceJpaExpression<T>
-
nullif
- Specified by:
nullifin interfaceExpression<T>- Specified by:
nullifin interfaceJpaExpression<T>
-
nullif
- Specified by:
nullifin interfaceExpression<T>- Specified by:
nullifin interfaceJpaExpression<T>
-
isMember
@Nonnull public SqmPredicate isMember(@Nonnull Expression<? extends Collection<? super T>> collection) - Specified by:
isMemberin interfaceExpression<T>- Specified by:
isMemberin interfaceJpaExpression<T>
-
isNotMember
@Nonnull public SqmPredicate isNotMember(@Nonnull Expression<? extends Collection<? super T>> collection) - Specified by:
isNotMemberin interfaceExpression<T>- Specified by:
isNotMemberin interfaceJpaExpression<T>
-
count
- Specified by:
countin interfaceExpression<T>- Specified by:
countin interfaceJpaExpression<T>
-
countDistinct
- Specified by:
countDistinctin interfaceExpression<T>- Specified by:
countDistinctin interfaceJpaExpression<T>
-
getJavaTypeDescriptor
- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<T>
-