Class FromImpl<Z,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>
-
- org.eclipse.persistence.internal.jpa.querydef.FromImpl<Z,X>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.FetchParent<Z,X>,javax.persistence.criteria.From<Z,X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
public class FromImpl<Z,X> extends PathImpl<X> implements javax.persistence.criteria.From<Z,X>
Purpose: Contains the implementation of the From interface of the JPA criteria API.
Description: This class represents a from clause element which could be the root of the query of the end node of a join statement.
- Since:
- EclipseLink 1.2
- Author:
- gyorke
- See Also:
From, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FromImplcorrelatedParentprotected java.util.Set<javax.persistence.criteria.Fetch<X,?>>fetchesprotected booleanisFetchprotected booleanisJoinprotected java.util.Set<javax.persistence.criteria.Join<X,?>>joinsprotected javax.persistence.metamodel.ManagedTypemanagedType-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.PathImpl
modelArtifact, 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 FromImpl(javax.persistence.criteria.Path<Z> parentPath, javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable<T> modelArtifact)FromImpl(javax.persistence.criteria.Path<Z> parentPath, javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable<T> modelArtifact, FromImpl correlatedParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,Y>
javax.persistence.criteria.Fetch<T,Y>fetch(java.lang.String assocName)Fetch join to the specified attribute or association using an inner join.<T,Y>
javax.persistence.criteria.Fetch<T,Y>fetch(java.lang.String assocName, javax.persistence.criteria.JoinType jt)Fetch join to the specified attribute or association using the given join type.<Y> javax.persistence.criteria.Fetch<X,Y>fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc)Fetch join to the specified collection using an inner join.<Y> javax.persistence.criteria.Fetch<X,Y>fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc, javax.persistence.criteria.JoinType jt)Fetch join to the specified collection using the given join type.<Y> javax.persistence.criteria.Fetch<X,Y>fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> assoc)Fetch join to the specified attribute using an inner join.<Y> javax.persistence.criteria.Fetch<X,Y>fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> assoc, javax.persistence.criteria.JoinType jt)Fetch join to the specified attribute using the given join type.java.util.List<org.eclipse.persistence.expressions.Expression>findJoinFetches()voidfindJoins(AbstractQueryImpl 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.criteria.From<Z,X>getCorrelationParent()Returns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).java.util.Set<javax.persistence.criteria.Fetch<X,?>>getFetches()Return the fetch joins that have been made from this type.java.util.Set<javax.persistence.criteria.Join<X,?>>getJoins()booleanisCorrelated()Whether theFromobject has been obtained as a result of correlation (use of aSubquerycorrelatemethod).booleanisFrom()<T,Y>
javax.persistence.criteria.Join<T,Y>join(java.lang.String attributeName)<T,Y>
javax.persistence.criteria.Join<T,Y>join(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)<Y> javax.persistence.criteria.CollectionJoin<X,Y>join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection)<Y> javax.persistence.criteria.CollectionJoin<X,Y>join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection, javax.persistence.criteria.JoinType jt)<Y> javax.persistence.criteria.ListJoin<X,Y>join(javax.persistence.metamodel.ListAttribute<? super X,Y> list)<Y> javax.persistence.criteria.ListJoin<X,Y>join(javax.persistence.metamodel.ListAttribute<? super X,Y> list, javax.persistence.criteria.JoinType jt)<K,V>
javax.persistence.criteria.MapJoin<X,K,V>join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map)<K,V>
javax.persistence.criteria.MapJoin<X,K,V>join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map, javax.persistence.criteria.JoinType jt)<Y> javax.persistence.criteria.SetJoin<X,Y>join(javax.persistence.metamodel.SetAttribute<? super X,Y> set)<Y> javax.persistence.criteria.SetJoin<X,Y>join(javax.persistence.metamodel.SetAttribute<? super X,Y> set, javax.persistence.criteria.JoinType jt)<Y> javax.persistence.criteria.Join<X,Y>join(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)<Y> javax.persistence.criteria.Join<X,Y>join(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute, javax.persistence.criteria.JoinType jt)<T,Y>
javax.persistence.criteria.CollectionJoin<T,Y>joinCollection(java.lang.String attributeName)<T,Y>
javax.persistence.criteria.CollectionJoin<T,Y>joinCollection(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)<T,Y>
javax.persistence.criteria.ListJoin<T,Y>joinList(java.lang.String attributeName)<T,Y>
javax.persistence.criteria.ListJoin<T,Y>joinList(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)<T,K,Y>
javax.persistence.criteria.MapJoin<T,K,Y>joinMap(java.lang.String attributeName)<T,K,Y>
javax.persistence.criteria.MapJoin<T,K,Y>joinMap(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)<T,Y>
javax.persistence.criteria.SetJoin<T,Y>joinSet(java.lang.String attributeName)<T,Y>
javax.persistence.criteria.SetJoin<T,Y>joinSet(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)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.PathImpl
clone, findRootAndParameters, getModel, getParentPath
-
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, 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
-
-
-
-
Field Detail
-
managedType
protected javax.persistence.metamodel.ManagedType managedType
-
joins
protected java.util.Set<javax.persistence.criteria.Join<X,?>> joins
-
fetches
protected java.util.Set<javax.persistence.criteria.Fetch<X,?>> fetches
-
isJoin
protected boolean isJoin
-
isFetch
protected boolean isFetch
-
correlatedParent
protected FromImpl correlatedParent
-
-
Constructor Detail
-
FromImpl
public FromImpl(javax.persistence.criteria.Path<Z> parentPath, javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable<T> modelArtifact)
-
FromImpl
public FromImpl(javax.persistence.criteria.Path<Z> parentPath, javax.persistence.metamodel.ManagedType managedType, javax.persistence.metamodel.Metamodel metamodel, java.lang.Class<X> javaClass, org.eclipse.persistence.expressions.Expression expressionNode, javax.persistence.metamodel.Bindable<T> modelArtifact, FromImpl correlatedParent)
-
-
Method Detail
-
getFetches
public java.util.Set<javax.persistence.criteria.Fetch<X,?>> getFetches()
Return the fetch joins that have been made from this type.
-
isCorrelated
public boolean isCorrelated()
Whether theFromobject has been obtained as a result of correlation (use of aSubquerycorrelatemethod).
-
getCorrelationParent
public javax.persistence.criteria.From<Z,X> getCorrelationParent()
Returns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).
-
fetch
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> assoc)
Fetch join to the specified attribute using an inner join.
-
fetch
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.SingularAttribute<? super X,Y> assoc, javax.persistence.criteria.JoinType jt)
Fetch join to the specified attribute using the given join type.
-
fetch
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc)
Fetch join to the specified collection using an inner join.
-
fetch
public <Y> javax.persistence.criteria.Fetch<X,Y> fetch(javax.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc, javax.persistence.criteria.JoinType jt)
Fetch join to the specified collection using the given join type.
-
fetch
public <T,Y> javax.persistence.criteria.Fetch<T,Y> fetch(java.lang.String assocName)
Fetch join to the specified attribute or association using an inner join.
-
fetch
public <T,Y> javax.persistence.criteria.Fetch<T,Y> fetch(java.lang.String assocName, javax.persistence.criteria.JoinType jt)Fetch join to the specified attribute or association using the given join type.
-
getJoins
public java.util.Set<javax.persistence.criteria.Join<X,?>> getJoins()
-
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.
-
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.
-
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.
-
type
public javax.persistence.criteria.Expression<java.lang.Class<? extends X>> type()
Return an expression corresponding to the type of the path.
-
get
public <Y> javax.persistence.criteria.Path<Y> get(java.lang.String attName)
-
join
public <Y> javax.persistence.criteria.Join<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute)
-
join
public <Y> javax.persistence.criteria.Join<X,Y> join(javax.persistence.metamodel.SingularAttribute<? super X,Y> attribute, javax.persistence.criteria.JoinType jt)
-
join
public <Y> javax.persistence.criteria.CollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection)
-
join
public <Y> javax.persistence.criteria.SetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X,Y> set)
-
join
public <Y> javax.persistence.criteria.ListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X,Y> list)
-
join
public <K,V> javax.persistence.criteria.MapJoin<X,K,V> join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map)
-
join
public <Y> javax.persistence.criteria.CollectionJoin<X,Y> join(javax.persistence.metamodel.CollectionAttribute<? super X,Y> collection, javax.persistence.criteria.JoinType jt)
-
join
public <Y> javax.persistence.criteria.SetJoin<X,Y> join(javax.persistence.metamodel.SetAttribute<? super X,Y> set, javax.persistence.criteria.JoinType jt)
-
join
public <Y> javax.persistence.criteria.ListJoin<X,Y> join(javax.persistence.metamodel.ListAttribute<? super X,Y> list, javax.persistence.criteria.JoinType jt)
-
join
public <K,V> javax.persistence.criteria.MapJoin<X,K,V> join(javax.persistence.metamodel.MapAttribute<? super X,K,V> map, javax.persistence.criteria.JoinType jt)
-
join
public <T,Y> javax.persistence.criteria.Join<T,Y> join(java.lang.String attributeName)
-
join
public <T,Y> javax.persistence.criteria.Join<T,Y> join(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)
-
joinCollection
public <T,Y> javax.persistence.criteria.CollectionJoin<T,Y> joinCollection(java.lang.String attributeName)
-
joinCollection
public <T,Y> javax.persistence.criteria.CollectionJoin<T,Y> joinCollection(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)
-
joinList
public <T,Y> javax.persistence.criteria.ListJoin<T,Y> joinList(java.lang.String attributeName)
-
joinList
public <T,Y> javax.persistence.criteria.ListJoin<T,Y> joinList(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)
-
joinMap
public <T,K,Y> javax.persistence.criteria.MapJoin<T,K,Y> joinMap(java.lang.String attributeName)
-
joinMap
public <T,K,Y> javax.persistence.criteria.MapJoin<T,K,Y> joinMap(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)
-
joinSet
public <T,Y> javax.persistence.criteria.SetJoin<T,Y> joinSet(java.lang.String attributeName)
-
joinSet
public <T,Y> javax.persistence.criteria.SetJoin<T,Y> joinSet(java.lang.String attributeName, javax.persistence.criteria.JoinType jt)
-
findJoins
public void findJoins(AbstractQueryImpl query)
-
findJoinFetches
public java.util.List<org.eclipse.persistence.expressions.Expression> findJoinFetches()
-
isFrom
public boolean isFrom()
- Specified by:
isFromin interfaceInternalSelection- Overrides:
isFromin classSelectionImpl<X>
-
-