Class PathImpl<Z,X>
- java.lang.Object
-
- org.datanucleus.api.jakarta.criteria.ExpressionImpl<X>
-
- org.datanucleus.api.jakarta.criteria.PathImpl<Z,X>
-
- Type Parameters:
X
- Type referenced by the path
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<X>
,jakarta.persistence.criteria.Path<X>
,jakarta.persistence.criteria.Selection<X>
,jakarta.persistence.TupleElement<X>
,Serializable
- Direct Known Subclasses:
FetchImpl
,FromImpl
,TreatPathImpl
public class PathImpl<Z,X> extends ExpressionImpl<X> implements jakarta.persistence.criteria.Path<X>
Implementation of Jakarta Persistence Criteria "Path".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeImpl<? super Z,?>
attribute
protected PathImpl<?,Z>
parent
-
Fields inherited from class org.datanucleus.api.jakarta.criteria.ExpressionImpl
cb
-
-
Constructor Summary
Constructors Constructor Description PathImpl(CriteriaBuilderImpl cb, Class<X> cls)
PathImpl(CriteriaBuilderImpl cb, PathImpl<?,Z> parent, AttributeImpl<? super Z,?> attr, Class<X> cls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V,M extends Map<K,V>>
jakarta.persistence.criteria.Expression<M>get(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> attr)
<E,C extends Collection<E>>
jakarta.persistence.criteria.Expression<C>get(jakarta.persistence.metamodel.PluralAttribute<? super X,C,E> attr)
<Y> jakarta.persistence.criteria.Path<Y>
get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attr)
<Y> jakarta.persistence.criteria.Path<Y>
get(String attrName)
jakarta.persistence.metamodel.Bindable<X>
getModel()
jakarta.persistence.criteria.Path<?>
getParentPath()
org.datanucleus.store.query.expression.Expression
getQueryExpression()
Accessor for the underlying DataNucleus expression for this path.jakarta.persistence.metamodel.Type<?>
getType()
String
toString()
Method to return the path as something suitable for use as JPQL single-string.jakarta.persistence.criteria.Expression<Class<? extends X>>
type()
-
Methods inherited from class org.datanucleus.api.jakarta.criteria.ExpressionImpl
alias, as, getAlias, getCompoundSelectionItems, getJavaType, in, in, in, in, isCompoundSelection, isNotNull, isNull
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Field Detail
-
attribute
protected final AttributeImpl<? super Z,?> attribute
-
-
Constructor Detail
-
PathImpl
public PathImpl(CriteriaBuilderImpl cb, Class<X> cls)
-
PathImpl
public PathImpl(CriteriaBuilderImpl cb, PathImpl<?,Z> parent, AttributeImpl<? super Z,?> attr, Class<X> cls)
-
-
Method Detail
-
get
public <K,V,M extends Map<K,V>> jakarta.persistence.criteria.Expression<M> get(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> attr)
- Specified by:
get
in interfacejakarta.persistence.criteria.Path<Z>
-
get
public <E,C extends Collection<E>> jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<? super X,C,E> attr)
- Specified by:
get
in interfacejakarta.persistence.criteria.Path<Z>
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attr)
- Specified by:
get
in interfacejakarta.persistence.criteria.Path<Z>
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(String attrName)
- Specified by:
get
in interfacejakarta.persistence.criteria.Path<Z>
-
getType
public jakarta.persistence.metamodel.Type<?> getType()
-
getModel
public jakarta.persistence.metamodel.Bindable<X> getModel()
- Specified by:
getModel
in interfacejakarta.persistence.criteria.Path<Z>
-
getParentPath
public jakarta.persistence.criteria.Path<?> getParentPath()
- Specified by:
getParentPath
in interfacejakarta.persistence.criteria.Path<Z>
-
type
public jakarta.persistence.criteria.Expression<Class<? extends X>> type()
- Specified by:
type
in interfacejakarta.persistence.criteria.Path<Z>
-
getQueryExpression
public org.datanucleus.store.query.expression.Expression getQueryExpression()
Accessor for the underlying DataNucleus expression for this path. Creates it if not yet existing.- Overrides:
getQueryExpression
in classExpressionImpl<X>
- Returns:
- The DataNucleus query expression
-
toString
public String toString()
Method to return the path as something suitable for use as JPQL single-string.- Overrides:
toString
in classExpressionImpl<X>
- Returns:
- The JPQL form
-
-