Z
- the type of the parent pathX
- the type of this pathclass PathImpl<Z,X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>
Modifier and Type | Field and Description |
---|---|
protected Members.Member<? super Z,?> |
_member |
protected PathImpl<?,Z> |
_parent |
Modifier | Constructor and Description |
---|---|
protected |
PathImpl(Class<X> cls)
Protected constructor use by root path which neither represent a member nor has a parent.
|
|
PathImpl(PathImpl<?,Z> parent,
Members.Member<? super Z,?> member,
Class<X> cls)
Create a path from the given parent representing the given member.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
StringBuilder |
asVariable(AliasContext q)
Get a string representation of this node as a variable in the context of the given query.
|
<K,V,M extends Map<K,V>> |
get(javax.persistence.metamodel.MapAttribute<X,K,V> map)
Gets a new path that represents the given map-valued attribute from this path.
|
<E,C extends Collection<E>> |
get(javax.persistence.metamodel.PluralAttribute<X,C,E> coll)
Gets a new path that represents the given multi-valued attribute from this path.
|
<Y> javax.persistence.criteria.Path<Y> |
get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
Gets a new path that represents the given single-valued attribute from this path.
|
<Y> javax.persistence.criteria.Path<Y> |
get(String attName)
Gets a new path that represents the attribute of the given name from this path.
|
PathImpl<?,?> |
getCorrelatedJoin(PathImpl<?,?> path) |
PathImpl<?,?> |
getCorrelatedPath()
Gets the path correlated to this path, if any.
|
PathImpl<?,?> |
getCorrelatedRoot(SubqueryImpl<?> subquery) |
protected FieldMetaData |
getEmbeddedFieldMetaData(FieldMetaData fmd)
Gets the field that may have been embedded inside the given field.
|
protected Members.Member<?,?> |
getInnermostMember(PathImpl<?,?> parent,
Members.Member<?,?> member) |
PathImpl<?,?> |
getInnermostParentPath()
Gets the path that originates this traversal.
|
Members.Member<? extends Z,X> |
getMember() |
javax.persistence.metamodel.Bindable<X> |
getModel()
Gets the bindable object that corresponds to the path expression.
|
javax.persistence.criteria.Path<Z> |
getParentPath()
Gets the parent of this path or null if this path is the root.
|
javax.persistence.metamodel.Type<?> |
getType() |
boolean |
inSubquery(SubqueryImpl<?> subquery)
Affirms if this receiver occurs in the roots of the given subquery.
|
boolean |
isCorrelated()
Affirms if this path is correlated to another path.
|
void |
setCorrelatedPath(PathImpl<?,?> correlatedPath)
Makes this path correlated to the given path.
|
Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Convert this path to a kernel path.
|
protected void |
traversePath(PathImpl<?,?> parent,
Path path,
FieldMetaData fmd) |
javax.persistence.criteria.Expression<Class<? extends X>> |
type()
Get the type() expression corresponding to this path.
|
as, in, in, in, in, isNotNull, isNull, toKernelExpression
acceptVisit, alias, asProjection, assertValidName, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
protected final Members.Member<? super Z,?> _member
protected PathImpl(Class<X> cls)
public PathImpl(PathImpl<?,Z> parent, Members.Member<? super Z,?> member, Class<X> cls)
parent
- the path from which this path needs to be constructed. Must not be null.member
- the persistent property that represents this path.cls
- denotes the type expressed by this path.public javax.persistence.metamodel.Bindable<X> getModel()
getModel
in interface javax.persistence.criteria.Path<X>
IllegalArgumentException
- if this path is not bindablepublic final javax.persistence.criteria.Path<Z> getParentPath()
getParentPath
in interface javax.persistence.criteria.Path<X>
public PathImpl<?,?> getInnermostParentPath()
protected FieldMetaData getEmbeddedFieldMetaData(FieldMetaData fmd)
fmd
- a given fieldprotected Members.Member<?,?> getInnermostMember(PathImpl<?,?> parent, Members.Member<?,?> member)
public void setCorrelatedPath(PathImpl<?,?> correlatedPath)
public PathImpl<?,?> getCorrelatedPath()
public boolean isCorrelated()
public Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
toValue
in class ExpressionImpl<X>
factory
- creates the kernel expressionq
- the query definition context of this expressionpublic PathImpl<?,?> getCorrelatedRoot(SubqueryImpl<?> subquery)
public boolean inSubquery(SubqueryImpl<?> subquery)
protected void traversePath(PathImpl<?,?> parent, Path path, FieldMetaData fmd)
public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
get
in interface javax.persistence.criteria.Path<X>
public <E,C extends Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> coll)
get
in interface javax.persistence.criteria.Path<X>
public <K,V,M extends Map<K,V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> map)
get
in interface javax.persistence.criteria.Path<X>
public <Y> javax.persistence.criteria.Path<Y> get(String attName)
get
in interface javax.persistence.criteria.Path<X>
IllegalArgumentException
- if this path represents a basic attribute that is can not be traversed
further.public javax.persistence.metamodel.Type<?> getType()
public Members.Member<? extends Z,X> getMember()
public javax.persistence.criteria.Expression<Class<? extends X>> type()
type
in interface javax.persistence.criteria.Path<X>
public StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
asValue
in class SelectionImpl<X>
public StringBuilder asVariable(AliasContext q)
CriteriaExpression
asVariable
in interface CriteriaExpression
asVariable
in class SelectionImpl<X>
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.