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:
java.io.Serializable,java.lang.Cloneable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
- Direct Known Subclasses:
FromImpl
public class PathImpl<X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>, java.lang.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 java.lang.ObjectmodelArtifactprotected javax.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(javax.persistence.criteria.Path<?> parent, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectclone()voidfindRootAndParameters(CommonAbstractCriteriaImpl query)<Y> javax.persistence.criteria.Path<Y>get(java.lang.String attName)<K,V,M extends java.util.Map<K,V>>
javax.persistence.criteria.Expression<M>get(javax.persistence.metamodel.MapAttribute<X,K,V> map)Return the path corresponding to the referenced map-valued attribute.<E,C extends java.util.Collection<E>>
javax.persistence.criteria.Expression<C>get(javax.persistence.metamodel.PluralAttribute<X,C,E> collection)Return the path corresponding to the referenced collection-valued attribute.<Y> javax.persistence.criteria.Path<Y>get(javax.persistence.metamodel.SingularAttribute<? super X,Y> att)Return the path corresponding to the referenced non-collection valued attribute.javax.persistence.metamodel.Bindable<X>getModel()Return the bindable object that corresponds to the path expression.javax.persistence.criteria.Path<?>getParentPath()Return the parent "node" in the path.javax.persistence.criteria.Expression<java.lang.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 javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Constructor Detail
-
PathImpl
public PathImpl(javax.persistence.criteria.Path<?> parent, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable modelArtifact)
-
-
Method Detail
-
getModel
public javax.persistence.metamodel.Bindable<X> getModel()
Return the bindable object that corresponds to the path expression.- Specified by:
getModelin interfacejavax.persistence.criteria.Path<X>- Returns:
- bindable object corresponding to the path
-
getParentPath
public javax.persistence.criteria.Path<?> getParentPath()
Return the parent "node" in the path.- Specified by:
getParentPathin interfacejavax.persistence.criteria.Path<X>- Returns:
- parent
-
get
public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> att)
Return the path corresponding to the referenced non-collection valued attribute.- Specified by:
getin interfacejavax.persistence.criteria.Path<X>- Parameters:
att- attribute- Returns:
- path corresponding to the referenced attribute
-
get
public <E,C extends java.util.Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> collection)
Return the path corresponding to the referenced collection-valued attribute.- Specified by:
getin interfacejavax.persistence.criteria.Path<X>- Parameters:
collection- collection-valued attribute- Returns:
- expression corresponding to the referenced attribute
-
get
public <K,V,M extends java.util.Map<K,V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> map)
Return the path corresponding to the referenced map-valued attribute.- Specified by:
getin interfacejavax.persistence.criteria.Path<X>- Parameters:
map- map-valued attribute- Returns:
- expression corresponding to the referenced attribute
-
type
public javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
Return an expression corresponding to the type of the path.- Specified by:
typein interfacejavax.persistence.criteria.Path<X>- Returns:
- expression corresponding to the type of the path
-
get
public <Y> javax.persistence.criteria.Path<Y> get(java.lang.String attName)
- Specified by:
getin interfacejavax.persistence.criteria.Path<X>
-
findRootAndParameters
public void findRootAndParameters(CommonAbstractCriteriaImpl query)
- Specified by:
findRootAndParametersin interfaceInternalSelection- Overrides:
findRootAndParametersin classExpressionImpl<X>
-
clone
protected java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-