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

java.lang.Object
  extended by org.datanucleus.jpa.criteria.ExpressionImpl<X>
      extended by org.datanucleus.jpa.criteria.PathImpl<Z,X>
          extended by org.datanucleus.jpa.criteria.FetchImpl<Z,X>
Type Parameters:
Z - type from which joining
X - type of the attribute being joined
All Implemented Interfaces:
javax.persistence.criteria.Expression<X>, javax.persistence.criteria.Fetch<Z,X>, javax.persistence.criteria.FetchParent<Z,X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>

public class FetchImpl<Z,X>
extends PathImpl<Z,X>
implements javax.persistence.criteria.Fetch<Z,X>

Implementation of JPA2 Criteria "Fetch".


Field Summary
protected  java.util.Set<javax.persistence.criteria.Fetch<?,?>> fetches
           
protected  javax.persistence.criteria.JoinType joinType
           
 
Fields inherited from class org.datanucleus.jpa.criteria.PathImpl
attribute, parent
 
Constructor Summary
FetchImpl(FromImpl<?,Z> parent, AttributeImpl<? super Z,X> attr, javax.persistence.criteria.JoinType joinType)
          Constructor for a fetch join to an entity.
 
Method Summary
<Y> javax.persistence.criteria.Fetch<X,Y>
fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> attr)
           
<Y> javax.persistence.criteria.Fetch<X,Y>
fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> attr, javax.persistence.criteria.JoinType type)
           
<Y> javax.persistence.criteria.Fetch<X,Y>
fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
           
<Y> javax.persistence.criteria.Fetch<X,Y>
fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr, javax.persistence.criteria.JoinType type)
           
<X,Y> javax.persistence.criteria.Fetch<X,Y>
fetch(java.lang.String attrName)
           
<X,Y> javax.persistence.criteria.Fetch<X,Y>
fetch(java.lang.String attrName, javax.persistence.criteria.JoinType type)
           
 javax.persistence.metamodel.Attribute<? super Z,?> getAttribute()
           
 java.util.Set<javax.persistence.criteria.Fetch<X,?>> getFetches()
           
 javax.persistence.criteria.JoinType getJoinType()
           
 javax.persistence.criteria.FetchParent<?,Z> getParent()
           
 
Methods inherited from class org.datanucleus.jpa.criteria.PathImpl
get, get, get, get, getModel, getParentPath, getQueryExpression, getType, toString, 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

fetches

protected java.util.Set<javax.persistence.criteria.Fetch<?,?>> fetches

joinType

protected javax.persistence.criteria.JoinType joinType
Constructor Detail

FetchImpl

public FetchImpl(FromImpl<?,Z> parent,
                 AttributeImpl<? super Z,X> attr,
                 javax.persistence.criteria.JoinType joinType)
Constructor for a fetch join to an entity.

Parameters:
parent - Parent object
attr - The type joining to
joinType - Type of join (Inner/LeftOuter/RightOuter)
Method Detail

fetch

public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> attr,
                                                       javax.persistence.criteria.JoinType type)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

fetch

public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> attr)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

fetch

public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr,
                                                       javax.persistence.criteria.JoinType type)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

fetch

public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> attr)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

fetch

public <X,Y> javax.persistence.criteria.Fetch<X,Y> fetch(java.lang.String attrName,
                                                         javax.persistence.criteria.JoinType type)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

fetch

public <X,Y> javax.persistence.criteria.Fetch<X,Y> fetch(java.lang.String attrName)
Specified by:
fetch in interface javax.persistence.criteria.FetchParent<Z,X>

getFetches

public java.util.Set<javax.persistence.criteria.Fetch<X,?>> getFetches()
Specified by:
getFetches in interface javax.persistence.criteria.FetchParent<Z,X>

getAttribute

public javax.persistence.metamodel.Attribute<? super Z,?> getAttribute()
Specified by:
getAttribute in interface javax.persistence.criteria.Fetch<Z,X>

getJoinType

public javax.persistence.criteria.JoinType getJoinType()
Specified by:
getJoinType in interface javax.persistence.criteria.Fetch<Z,X>

getParent

public javax.persistence.criteria.FetchParent<?,Z> getParent()
Specified by:
getParent in interface javax.persistence.criteria.Fetch<Z,X>


Copyright © 2011. All Rights Reserved.