org.datanucleus.jpa.criteria
Class PathImpl<Z,X>

java.lang.Object
  extended by org.datanucleus.jpa.criteria.ExpressionImpl<X>
      extended by org.datanucleus.jpa.criteria.PathImpl<Z,X>
Type Parameters:
X - Type referenced by the path
All Implemented Interfaces:
javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>
Direct Known Subclasses:
FetchImpl, FromImpl

public class PathImpl<Z,X>
extends ExpressionImpl<X>
implements javax.persistence.criteria.Path<X>

Implementation of JPA2 Criteria "Path".


Field Summary
protected  AttributeImpl<? super Z,?> attribute
           
protected  PathImpl<?,Z> parent
           
 
Constructor Summary
PathImpl(java.lang.Class<X> cls)
           
PathImpl(PathImpl<?,Z> parent, AttributeImpl<? super Z,?> attr, java.lang.Class<X> cls)
           
 
Method Summary
<K,V,M extends java.util.Map<K,V>>
javax.persistence.criteria.Expression<M>
get(javax.persistence.metamodel.MapAttribute<X,K,V> attr)
           
<E,C extends java.util.Collection<E>>
javax.persistence.criteria.Expression<C>
get(javax.persistence.metamodel.PluralAttribute<X,C,E> attr)
           
<Y> javax.persistence.criteria.Path<Y>
get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
           
<Y> javax.persistence.criteria.Path<Y>
get(java.lang.String attrName)
           
 javax.persistence.metamodel.Bindable<X> getModel()
           
 javax.persistence.criteria.Path<?> getParentPath()
           
 org.datanucleus.query.expression.Expression getQueryExpression()
          Accessor for the underlying DataNucleus expression for this path.
 javax.persistence.metamodel.Type<?> getType()
           
 java.lang.String toString()
          Method to return the path as something suitable for use as JPQL single-string.
 javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
           
 
Methods inherited from class org.datanucleus.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
 
Methods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Field Detail

parent

protected final PathImpl<?,Z> parent

attribute

protected final AttributeImpl<? super Z,?> attribute
Constructor Detail

PathImpl

public PathImpl(java.lang.Class<X> cls)

PathImpl

public PathImpl(PathImpl<?,Z> parent,
                AttributeImpl<? super Z,?> attr,
                java.lang.Class<X> cls)
Method Detail

get

public <K,V,M extends java.util.Map<K,V>> javax.persistence.criteria.Expression<M> get(javax.persistence.metamodel.MapAttribute<X,K,V> attr)
Specified by:
get in interface javax.persistence.criteria.Path<X>

get

public <E,C extends java.util.Collection<E>> javax.persistence.criteria.Expression<C> get(javax.persistence.metamodel.PluralAttribute<X,C,E> attr)
Specified by:
get in interface javax.persistence.criteria.Path<X>

get

public <Y> javax.persistence.criteria.Path<Y> get(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
Specified by:
get in interface javax.persistence.criteria.Path<X>

get

public <Y> javax.persistence.criteria.Path<Y> get(java.lang.String attrName)
Specified by:
get in interface javax.persistence.criteria.Path<X>

getType

public javax.persistence.metamodel.Type<?> getType()

getModel

public javax.persistence.metamodel.Bindable<X> getModel()
Specified by:
getModel in interface javax.persistence.criteria.Path<X>

getParentPath

public javax.persistence.criteria.Path<?> getParentPath()
Specified by:
getParentPath in interface javax.persistence.criteria.Path<X>

type

public javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
Specified by:
type in interface javax.persistence.criteria.Path<X>

getQueryExpression

public org.datanucleus.query.expression.Expression getQueryExpression()
Accessor for the underlying DataNucleus expression for this path. Creates it if not yet existing.

Overrides:
getQueryExpression in class ExpressionImpl<X>
Returns:
The DataNucleus query expression

toString

public java.lang.String toString()
Method to return the path as something suitable for use as JPQL single-string.

Overrides:
toString in class ExpressionImpl<X>
Returns:
The JPQL form


Copyright © 2011. All Rights Reserved.