Class SqmPluralValuedSimplePath<C>
java.lang.Object
org.hibernate.query.sqm.tree.spi.AbstractSqmNode
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaTupleElement<C>
org.hibernate.query.sqm.tree.spi.jpa.AbstractJpaSelection<C>
org.hibernate.query.sqm.tree.spi.expression.AbstractSqmExpression<C>
org.hibernate.query.sqm.tree.spi.domain.AbstractSqmPath<C>
org.hibernate.query.sqm.tree.spi.domain.AbstractSqmSimplePath<C>
org.hibernate.query.sqm.tree.spi.domain.SqmPluralValuedSimplePath<C>
- Type Parameters:
C- The collection type
- All Implemented Interfaces:
Expression<C>, Path<C>, PluralExpression<C,Object>, Selection<C>, TupleElement<C>, Serializable, JpaCriteriaNode, JpaExpression<C>, JpaPath<C>, JpaPluralExpression<C, Object>, JpaSelection<C>, JpaTupleElement<C>, SemanticPathPart, SqmPath<C>, SqmPluralPath<C, Object>, SqmSimplePath<C>, SqmExpression<C>, SqmSelectableNode<C>, SqmCacheable, SqmExpressibleAccessor<C>, SqmNode, SqmTypedNode<C>, SqmVisitableNode
- Direct Known Subclasses:
SqmPluralPartSelectionPath
public class SqmPluralValuedSimplePath<C>
extends AbstractSqmSimplePath<C>
implements SqmPluralPath<C,Object>
An SqmPath for plural attribute paths
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmPluralValuedSimplePath(NavigablePath navigablePath, SqmPluralPersistentAttribute<?, C, ?> referencedNavigable, SqmPath<?> lhs, String explicitAlias, NodeBuilder nodeBuilder) SqmPluralValuedSimplePath(NavigablePath navigablePath, SqmPluralPersistentAttribute<?, C, ?> referencedNavigable, SqmPath<?> lhs, String explicitAlias, NodeBuilder nodeBuilder, boolean mapAttributeAccess) SqmPluralValuedSimplePath(NavigablePath navigablePath, SqmPluralPersistentAttribute<?, C, ?> referencedNavigable, SqmPath<?> lhs, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(SemanticQueryWalker<T> walker) Accept the walker per visitationcontains(Expression elem) Create a predicate testing whether this plural expression contains the given element.Create a predicate testing whether this plural expression contains the given element.copy(SqmCopyContext context) Return the Java type of this tuple element.isEmpty()Create a predicate testing whether this plural expression is empty.booleanCreate a predicate testing whether this plural expression is not empty.notContains(Expression elem) Create a predicate testing whether this plural expression does not contain the given element.notContains(Object elem) Create a predicate testing whether this plural expression does not contain the given element.SqmPath<?> resolveIndexedAccess(SqmExpression<?> selector, boolean isTerminal, SqmCreationState creationState) SqmPath<?> resolvePathPart(String name, boolean isTerminal, SqmCreationState creationState) size()Create an expression for the size of this plural expression.<S extends C>
SqmTreatedPath<C, S> Support for JPA's explicit (TREAT) down-casting.<S extends C>
SqmTreatedEntityValuedSimplePath<C, S> treatAs(EntityDomainType<S> treatTarget) Support for JPA's explicit (TREAT) down-casting.SqmExpression<Class<? extends C>> type()Create an expression for the type of this path.Methods inherited from class AbstractSqmSimplePath
appendHqlString, getLhs, getModel, getNodeType, getParentNavigablePath, getReferencedPathSourceMethods inherited from class AbstractSqmPath
cacheHashCode, copyTo, equals, get, get, get, get, get, get, get, get, get, get, getExplicitAlias, getExpressible, getNavigablePath, getNavigablePathCopy, getNodeJavaType, getResolvedModel, getReusablePath, getReusablePaths, getTreatedPath, hashCode, isCompatible, registerReusablePath, resolvePath, resolvePath, setExplicitAlias, toString, treatAs, treatAs, treatAs, treatAs, visitReusablePathsMethods inherited from class AbstractSqmExpression
applyInferableType, as, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, internalApplyInferableType, isMember, isNotMember, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from class AbstractJpaSelection
alias, getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from interface JpaExpression
coalesce, coalesce, count, countDistinct, in, isMember, isNotMember, nullif, nullif, selectCase, selectCaseMethods inherited from interface JpaPath
getParentPath, treatMethods 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
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, castAs, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualTo, visitSubSelectableNodesMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmPath
applyInferableType, findRoot, get, get, get, get, get, getExplicitAlias, getLhs, getNavigablePath, getNodeType, getReferencedPathSource, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, setExplicitAlias, treatAs, treatAs, treatAs, treatAs, visitReusablePathsMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
appendHqlString, toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
Method Details
-
copy
- Specified by:
copyin interfaceSqmExpression<C>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmPath<C>- Specified by:
copyin interfaceSqmSelectableNode<C>- Specified by:
copyin interfaceSqmTypedNode<C>
-
isMapAttributeAccess
public boolean isMapAttributeAccess() -
getPluralAttribute
-
getJavaTypeDescriptor
Description copied from interface:JpaTupleElementReturn the Java type of this tuple element.- Specified by:
getJavaTypeDescriptorin interfaceJpaTupleElement<C>- Specified by:
getJavaTypeDescriptorin interfaceSqmPath<C>- Overrides:
getJavaTypeDescriptorin classAbstractSqmPath<C>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
resolvePathPart
@Nonnull public SqmPath<?> resolvePathPart(@Nonnull String name, boolean isTerminal, @Nonnull SqmCreationState creationState) - Specified by:
resolvePathPartin interfaceSemanticPathPart- Specified by:
resolvePathPartin interfaceSqmPath<C>
-
resolveIndexedAccess
@Nonnull public SqmPath<?> resolveIndexedAccess(@Nonnull SqmExpression<?> selector, boolean isTerminal, @Nonnull SqmCreationState creationState) - Specified by:
resolveIndexedAccessin interfaceSemanticPathPart- Specified by:
resolveIndexedAccessin interfaceSqmPath<C>
-
type
Description copied from interface:JpaPathCreate an expression for the type of this path. -
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting. -
treatAs
@Nonnull public <S extends C> SqmTreatedEntityValuedSimplePath<C,S> treatAs(@Nonnull EntityDomainType<S> treatTarget) Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting. -
isEmpty
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression is empty.- Specified by:
isEmptyin interfaceJpaPluralExpression<C,Object> - Specified by:
isEmptyin interfacePluralExpression<C,Object>
-
isNotEmpty
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression is not empty.- Specified by:
isNotEmptyin interfaceJpaPluralExpression<C,Object> - Specified by:
isNotEmptyin interfacePluralExpression<C,Object>
-
size
Description copied from interface:JpaPluralExpressionCreate an expression for the size of this plural expression.- Specified by:
sizein interfaceJpaPluralExpression<C,Object> - Specified by:
sizein interfacePluralExpression<C,Object>
-
notContains
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression does not contain the given element.- Specified by:
notContainsin interfaceJpaPluralExpression<C,Object> - Specified by:
notContainsin interfacePluralExpression<C,Object>
-
notContains
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression does not contain the given element.- Specified by:
notContainsin interfaceJpaPluralExpression<C,Object> - Specified by:
notContainsin interfacePluralExpression<C,Object>
-
contains
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression contains the given element.- Specified by:
containsin interfaceJpaPluralExpression<C,Object> - Specified by:
containsin interfacePluralExpression<C,Object>
-
contains
Description copied from interface:JpaPluralExpressionCreate a predicate testing whether this plural expression contains the given element.- Specified by:
containsin interfaceJpaPluralExpression<C,Object> - Specified by:
containsin interfacePluralExpression<C,Object>
-