Package org.datanucleus.api.jpa.criteria
Class PathImpl<Z,X>
- java.lang.Object
-
- org.datanucleus.api.jpa.criteria.ExpressionImpl<X>
-
- org.datanucleus.api.jpa.criteria.PathImpl<Z,X>
-
- Type Parameters:
X- Type referenced by the path
- All Implemented Interfaces:
Serializable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>
- Direct Known Subclasses:
FetchImpl,FromImpl,TreatPathImpl
public class PathImpl<Z,X> extends ExpressionImpl<X> implements javax.persistence.criteria.Path<X>
Implementation of JPA Criteria "Path".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeImpl<? super Z,?>attributeprotected PathImpl<?,Z>parent-
Fields inherited from class org.datanucleus.api.jpa.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 <Y> javax.persistence.criteria.Path<Y>get(String attrName)<K,V,M extends Map<K,V>>
javax.persistence.criteria.Expression<M>get(javax.persistence.metamodel.MapAttribute<? super X,K,V> attr)<E,C extends Collection<E>>
javax.persistence.criteria.Expression<C>get(javax.persistence.metamodel.PluralAttribute<? super X,C,E> attr)<Y> javax.persistence.criteria.Path<Y>get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)javax.persistence.metamodel.Bindable<X>getModel()javax.persistence.criteria.Path<?>getParentPath()org.datanucleus.store.query.expression.ExpressiongetQueryExpression()Accessor for the underlying DataNucleus expression for this path.javax.persistence.metamodel.Type<?>getType()StringtoString()Method to return the path as something suitable for use as JPQL single-string.javax.persistence.criteria.Expression<Class<? extends X>>type()-
Methods inherited from class org.datanucleus.api.jpa.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 javax.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>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<? super X,K,V> attr)
- Specified by:
getin interfacejavax.persistence.criteria.Path<Z>
-
get
public <E,C extends Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<? super X,C,E> attr)
- Specified by:
getin interfacejavax.persistence.criteria.Path<Z>
-
get
public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
- Specified by:
getin interfacejavax.persistence.criteria.Path<Z>
-
get
public <Y> javax.persistence.criteria.Path<Y> get(String attrName)
- Specified by:
getin interfacejavax.persistence.criteria.Path<Z>
-
getType
public javax.persistence.metamodel.Type<?> getType()
-
getModel
public javax.persistence.metamodel.Bindable<X> getModel()
- Specified by:
getModelin interfacejavax.persistence.criteria.Path<Z>
-
getParentPath
public javax.persistence.criteria.Path<?> getParentPath()
- Specified by:
getParentPathin interfacejavax.persistence.criteria.Path<Z>
-
type
public javax.persistence.criteria.Expression<Class<? extends X>> type()
- Specified by:
typein interfacejavax.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:
getQueryExpressionin 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:
toStringin classExpressionImpl<X>- Returns:
- The JPQL form
-
-