Package org.hibernate.query.criteria
Interface JpaPath<T>
-
- All Superinterfaces:
Expression<T>
,JpaCriteriaNode
,JpaExpression<T>
,JpaSelection<T>
,JpaTupleElement<T>
,Path<T>
,Selection<T>
,Serializable
,TupleElement<T>
- All Known Subinterfaces:
DiscriminatorSqmPath<T>
,JpaCollectionJoin<O,T>
,JpaCrossJoin<T>
,JpaDerivedFrom<T>
,JpaDerivedJoin<T>
,JpaDerivedRoot<T>
,JpaEntityJoin<T>
,JpaFrom<O,T>
,JpaJoin<O,T>
,JpaJoinedFrom<O,T>
,JpaListJoin<O,T>
,JpaMapJoin<O,K,V>
,JpaPluralJoin<O,C,E>
,JpaRoot<T>
,JpaSetJoin<O,T>
,SqmAttributeJoin<O,T>
,SqmCorrelation<O,T>
,SqmFrom<O,T>
,SqmJoin<O,T>
,SqmPath<T>
,SqmPathWrapper<W,T>
,SqmQualifiedJoin<O,T>
,SqmSimplePath<T>
,SqmTreatedPath<T,S>
- All Known Implementing Classes:
AbstractSqmAttributeJoin
,AbstractSqmFrom
,AbstractSqmJoin
,AbstractSqmPath
,AbstractSqmPluralJoin
,AbstractSqmQualifiedJoin
,AbstractSqmSimplePath
,AbstractSqmSpecificPluralPartPath
,AnyDiscriminatorSqmPath
,EntityDiscriminatorSqmPath
,NonAggregatedCompositeSimplePath
,SqmAnyValuedSimplePath
,SqmBagJoin
,SqmBasicValuedSimplePath
,SqmCorrelatedBagJoin
,SqmCorrelatedCrossJoin
,SqmCorrelatedEntityJoin
,SqmCorrelatedListJoin
,SqmCorrelatedMapJoin
,SqmCorrelatedPluralPartJoin
,SqmCorrelatedRoot
,SqmCorrelatedRootJoin
,SqmCorrelatedSetJoin
,SqmCorrelatedSingularJoin
,SqmCrossJoin
,SqmCteJoin
,SqmCteRoot
,SqmDerivedJoin
,SqmDerivedRoot
,SqmElementAggregateFunction
,SqmEmbeddedValuedSimplePath
,SqmEntityJoin
,SqmEntityValuedSimplePath
,SqmIndexAggregateFunction
,SqmIndexedCollectionAccessPath
,SqmListJoin
,SqmMapJoin
,SqmPluralPartJoin
,SqmPluralValuedSimplePath
,SqmRoot
,SqmSetJoin
,SqmSingularJoin
,SqmTreatedBagJoin
,SqmTreatedCrossJoin
,SqmTreatedEntityJoin
,SqmTreatedListJoin
,SqmTreatedMapJoin
,SqmTreatedPluralPartJoin
,SqmTreatedRoot
,SqmTreatedSetJoin
,SqmTreatedSimplePath
,SqmTreatedSingularJoin
public interface JpaPath<T> extends JpaExpression<T>, Path<T>
API extension to the JPAPath
contract
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <K,V,M extends Map<K,V>>
JpaExpression<M>get(MapAttribute<T,K,V> map)
<E,C extends Collection<E>>
JpaExpression<C>get(PluralAttribute<T,C,E> collection)
<Y> JpaPath<Y>
get(SingularAttribute<? super T,Y> attribute)
<Y> JpaPath<Y>
get(String attributeName)
JpaPath<?>
getLhs()
The source (think "left hand side") of this pathNavigablePath
getNavigablePath()
Get this path's NavigablePathdefault JpaPath<?>
getParentPath()
SqmPathSource<?>
getResolvedModel()
Get this path's actual resolved model, i.e.<S extends T>
JpaPath<S>treatAs(Class<S> treatJavaType)
Support for JPA's explicit (TREAT) down-casting.<S extends T>
JpaPath<S>treatAs(EntityDomainType<S> treatJavaType)
Support for JPA's explicit (TREAT) down-casting.JpaExpression<Class<? extends T>>
type()
-
Methods inherited from interface org.hibernate.query.criteria.JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
-
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
-
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor
-
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
-
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
-
-
-
Method Detail
-
getNavigablePath
NavigablePath getNavigablePath()
Get this path's NavigablePath
-
getLhs
JpaPath<?> getLhs()
The source (think "left hand side") of this path
-
treatAs
<S extends T> JpaPath<S> treatAs(Class<S> treatJavaType)
Support for JPA's explicit (TREAT) down-casting.
-
treatAs
<S extends T> JpaPath<S> treatAs(EntityDomainType<S> treatJavaType)
Support for JPA's explicit (TREAT) down-casting.
-
getResolvedModel
SqmPathSource<?> getResolvedModel()
Get this path's actual resolved model, i.e. the concrete type for generic attributes.
-
getParentPath
default JpaPath<?> getParentPath()
- Specified by:
getParentPath
in interfacePath<T>
-
get
<Y> JpaPath<Y> get(SingularAttribute<? super T,Y> attribute)
-
get
<E,C extends Collection<E>> JpaExpression<C> get(PluralAttribute<T,C,E> collection)
-
get
<K,V,M extends Map<K,V>> JpaExpression<M> get(MapAttribute<T,K,V> map)
-
-