Class PathImpl<X>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.querydef.SelectionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl<X>
-
- org.eclipse.persistence.internal.jpa.querydef.PathImpl<X>
-
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<X>,jakarta.persistence.criteria.Path<X>,jakarta.persistence.criteria.Selection<X>,jakarta.persistence.TupleElement<X>,Serializable,Cloneable,InternalExpression,InternalSelection
- Direct Known Subclasses:
FromImpl
public class PathImpl<X> extends ExpressionImpl<X> implements jakarta.persistence.criteria.Path<X>, Cloneable
Purpose: Contains the implementation of the Path interface of the JPA criteria API.
Description: This class represents an abstract path which is a model of the expression through joins.
- Since:
- EclipseLink 1.2
- Author:
- gyorke
- See Also:
Path, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectmodelArtifactprotected jakarta.persistence.criteria.Path<?>pathParent-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
isLiteral, literal, metamodel
-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, currentNode, javaType
-
-
Constructor Summary
Constructors Constructor Description PathImpl(jakarta.persistence.criteria.Path<?> parent, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable modelArtifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Objectclone()voidfindRootAndParameters(CommonAbstractCriteriaImpl query)<K,V,M extends Map<K,V>>
jakarta.persistence.criteria.Expression<M>get(jakarta.persistence.metamodel.MapAttribute<X,K,V> map)Return the path corresponding to the referenced map-valued attribute.<E,C extends Collection<E>>
jakarta.persistence.criteria.Expression<C>get(jakarta.persistence.metamodel.PluralAttribute<X,C,E> collection)Return the path corresponding to the referenced collection-valued attribute.<Y> jakarta.persistence.criteria.Path<Y>get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> att)Return the path corresponding to the referenced non-collection valued attribute.<Y> jakarta.persistence.criteria.Path<Y>get(String attName)jakarta.persistence.metamodel.Bindable<X>getModel()Return the bindable object that corresponds to the path expression.jakarta.persistence.criteria.Path<?>getParentPath()Return the parent "node" in the path.jakarta.persistence.criteria.Expression<Class<? extends X>>type()Return an expression corresponding to the type of the path.-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.ExpressionImpl
as, buildExpressionForAs, in, in, in, in, isCompoundExpression, isExpression, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubquery
-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.SelectionImpl
alias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isFrom, isRoot, setJavaType
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Field Detail
-
pathParent
protected jakarta.persistence.criteria.Path<?> pathParent
-
modelArtifact
protected Object modelArtifact
-
-
Constructor Detail
-
PathImpl
public PathImpl(jakarta.persistence.criteria.Path<?> parent, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable modelArtifact)
-
-
Method Detail
-
getModel
public jakarta.persistence.metamodel.Bindable<X> getModel()
Return the bindable object that corresponds to the path expression.- Specified by:
getModelin interfacejakarta.persistence.criteria.Path<X>- Returns:
- bindable object corresponding to the path
-
getParentPath
public jakarta.persistence.criteria.Path<?> getParentPath()
Return the parent "node" in the path.- Specified by:
getParentPathin interfacejakarta.persistence.criteria.Path<X>- Returns:
- parent
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> att)
Return the path corresponding to the referenced non-collection valued attribute.- Specified by:
getin interfacejakarta.persistence.criteria.Path<X>- Parameters:
att- attribute- Returns:
- path corresponding to the referenced attribute
-
get
public <E,C extends Collection<E>> jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<X,C,E> collection)
Return the path corresponding to the referenced collection-valued attribute.- Specified by:
getin interfacejakarta.persistence.criteria.Path<X>- Parameters:
collection- collection-valued attribute- Returns:
- expression corresponding to the referenced attribute
-
get
public <K,V,M extends Map<K,V>> jakarta.persistence.criteria.Expression<M> get(jakarta.persistence.metamodel.MapAttribute<X,K,V> map)
Return the path corresponding to the referenced map-valued attribute.- Specified by:
getin interfacejakarta.persistence.criteria.Path<X>- Parameters:
map- map-valued attribute- Returns:
- expression corresponding to the referenced attribute
-
type
public jakarta.persistence.criteria.Expression<Class<? extends X>> type()
Return an expression corresponding to the type of the path.- Specified by:
typein interfacejakarta.persistence.criteria.Path<X>- Returns:
- expression corresponding to the type of the path
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(String attName)
- Specified by:
getin interfacejakarta.persistence.criteria.Path<X>
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classExpressionImpl<X>
-
-