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:
jakarta.persistence.criteria.Expression<X>,jakarta.persistence.criteria.FetchParent<Z,X>,jakarta.persistence.criteria.From<Z,X>,jakarta.persistence.criteria.Path<X>,jakarta.persistence.criteria.Selection<X>,jakarta.persistence.TupleElement<X>,Serializable,Cloneable,InternalExpression,InternalSelection
public class FromImpl<Z,X> extends PathImpl<X> implements jakarta.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 Set<jakarta.persistence.criteria.Fetch<X,?>>fetchesprotected booleanisFetchprotected booleanisJoinprotected Set<jakarta.persistence.criteria.Join<X,?>>joinsprotected jakarta.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(jakarta.persistence.criteria.Path<Z> parentPath, jakarta.persistence.metamodel.ManagedType managedType, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable<T> modelArtifact)FromImpl(jakarta.persistence.criteria.Path<Z> parentPath, jakarta.persistence.metamodel.ManagedType managedType, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable<T> modelArtifact, FromImpl correlatedParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Y> jakarta.persistence.criteria.Fetch<X,Y>fetch(jakarta.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc)Fetch join to the specified collection using an inner join.<Y> jakarta.persistence.criteria.Fetch<X,Y>fetch(jakarta.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc, jakarta.persistence.criteria.JoinType jt)Fetch join to the specified collection using the given join type.<Y> jakarta.persistence.criteria.Fetch<X,Y>fetch(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> assoc)Fetch join to the specified attribute using an inner join.<Y> jakarta.persistence.criteria.Fetch<X,Y>fetch(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> assoc, jakarta.persistence.criteria.JoinType jt)Fetch join to the specified attribute using the given join type.<T,Y>
jakarta.persistence.criteria.Fetch<T,Y>fetch(String assocName)Fetch join to the specified attribute or association using an inner join.<T,Y>
jakarta.persistence.criteria.Fetch<T,Y>fetch(String assocName, jakarta.persistence.criteria.JoinType jt)Fetch join to the specified attribute or association using the given join type.List<Expression>findJoinFetches()voidfindJoins(AbstractQueryImpl query)<K,V,M extends Map<K,V>>
jakarta.persistence.criteria.Expression<M>get(jakarta.persistence.metamodel.MapAttribute<X,K,V> map)Return the path corresponding to the referenced map-valued attribute.<E,C extends Collection<E>>
jakarta.persistence.criteria.Expression<C>get(jakarta.persistence.metamodel.PluralAttribute<X,C,E> collection)Return the path corresponding to the referenced collection-valued attribute.<Y> jakarta.persistence.criteria.Path<Y>get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> att)Return the path corresponding to the referenced non-collection valued attribute.<Y> jakarta.persistence.criteria.Path<Y>get(String attName)jakarta.persistence.criteria.From<Z,X>getCorrelationParent()Returns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).Set<jakarta.persistence.criteria.Fetch<X,?>>getFetches()Return the fetch joins that have been made from this type.Set<jakarta.persistence.criteria.Join<X,?>>getJoins()booleanisCorrelated()Whether theFromobject has been obtained as a result of correlation (use of aSubquerycorrelatemethod).booleanisFrom()<Y> jakarta.persistence.criteria.CollectionJoin<X,Y>join(jakarta.persistence.metamodel.CollectionAttribute<? super X,Y> collection)<Y> jakarta.persistence.criteria.CollectionJoin<X,Y>join(jakarta.persistence.metamodel.CollectionAttribute<? super X,Y> collection, jakarta.persistence.criteria.JoinType jt)<Y> jakarta.persistence.criteria.ListJoin<X,Y>join(jakarta.persistence.metamodel.ListAttribute<? super X,Y> list)<Y> jakarta.persistence.criteria.ListJoin<X,Y>join(jakarta.persistence.metamodel.ListAttribute<? super X,Y> list, jakarta.persistence.criteria.JoinType jt)<K,V>
jakarta.persistence.criteria.MapJoin<X,K,V>join(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> map)<K,V>
jakarta.persistence.criteria.MapJoin<X,K,V>join(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> map, jakarta.persistence.criteria.JoinType jt)<Y> jakarta.persistence.criteria.SetJoin<X,Y>join(jakarta.persistence.metamodel.SetAttribute<? super X,Y> set)<Y> jakarta.persistence.criteria.SetJoin<X,Y>join(jakarta.persistence.metamodel.SetAttribute<? super X,Y> set, jakarta.persistence.criteria.JoinType jt)<Y> jakarta.persistence.criteria.Join<X,Y>join(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attribute)<Y> jakarta.persistence.criteria.Join<X,Y>join(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attribute, jakarta.persistence.criteria.JoinType jt)<T,Y>
jakarta.persistence.criteria.Join<T,Y>join(String attributeName)<T,Y>
jakarta.persistence.criteria.Join<T,Y>join(String attributeName, jakarta.persistence.criteria.JoinType jt)<T,Y>
jakarta.persistence.criteria.CollectionJoin<T,Y>joinCollection(String attributeName)<T,Y>
jakarta.persistence.criteria.CollectionJoin<T,Y>joinCollection(String attributeName, jakarta.persistence.criteria.JoinType jt)<T,Y>
jakarta.persistence.criteria.ListJoin<T,Y>joinList(String attributeName)<T,Y>
jakarta.persistence.criteria.ListJoin<T,Y>joinList(String attributeName, jakarta.persistence.criteria.JoinType jt)<T,K,Y>
jakarta.persistence.criteria.MapJoin<T,K,Y>joinMap(String attributeName)<T,K,Y>
jakarta.persistence.criteria.MapJoin<T,K,Y>joinMap(String attributeName, jakarta.persistence.criteria.JoinType jt)<T,Y>
jakarta.persistence.criteria.SetJoin<T,Y>joinSet(String attributeName)<T,Y>
jakarta.persistence.criteria.SetJoin<T,Y>joinSet(String attributeName, jakarta.persistence.criteria.JoinType jt)jakarta.persistence.criteria.Expression<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 jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Field Detail
-
managedType
protected jakarta.persistence.metamodel.ManagedType managedType
-
isJoin
protected boolean isJoin
-
isFetch
protected boolean isFetch
-
correlatedParent
protected FromImpl correlatedParent
-
-
Constructor Detail
-
FromImpl
public FromImpl(jakarta.persistence.criteria.Path<Z> parentPath, jakarta.persistence.metamodel.ManagedType managedType, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable<T> modelArtifact)
-
FromImpl
public FromImpl(jakarta.persistence.criteria.Path<Z> parentPath, jakarta.persistence.metamodel.ManagedType managedType, jakarta.persistence.metamodel.Metamodel metamodel, Class<X> javaClass, Expression expressionNode, jakarta.persistence.metamodel.Bindable<T> modelArtifact, FromImpl correlatedParent)
-
-
Method Detail
-
getFetches
public Set<jakarta.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 jakarta.persistence.criteria.From<Z,X> getCorrelationParent()
Returns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).- Specified by:
getCorrelationParentin interfacejakarta.persistence.criteria.From<Z,X>- Returns:
- the parent of the correlated From object
- Throws:
IllegalStateException- if the From object has not been obtained through correlation
-
fetch
public <Y> jakarta.persistence.criteria.Fetch<X,Y> fetch(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> assoc)
Fetch join to the specified attribute using an inner join.
-
fetch
public <Y> jakarta.persistence.criteria.Fetch<X,Y> fetch(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> assoc, jakarta.persistence.criteria.JoinType jt)
Fetch join to the specified attribute using the given join type.
-
fetch
public <Y> jakarta.persistence.criteria.Fetch<X,Y> fetch(jakarta.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc)
Fetch join to the specified collection using an inner join.
-
fetch
public <Y> jakarta.persistence.criteria.Fetch<X,Y> fetch(jakarta.persistence.metamodel.PluralAttribute<? super X,?,Y> assoc, jakarta.persistence.criteria.JoinType jt)
Fetch join to the specified collection using the given join type.
-
fetch
public <T,Y> jakarta.persistence.criteria.Fetch<T,Y> fetch(String assocName)
Fetch join to the specified attribute or association using an inner join.
-
fetch
public <T,Y> jakarta.persistence.criteria.Fetch<T,Y> fetch(String assocName, jakarta.persistence.criteria.JoinType jt)
Fetch join to the specified attribute or association using the given join type.
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> att)
Return the path corresponding to the referenced non-collection valued attribute.
-
get
public <E,C extends Collection<E>> jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<X,C,E> collection)
Return the path corresponding to the referenced collection-valued attribute.
-
get
public <K,V,M extends Map<K,V>> jakarta.persistence.criteria.Expression<M> get(jakarta.persistence.metamodel.MapAttribute<X,K,V> map)
Return the path corresponding to the referenced map-valued attribute.
-
type
public jakarta.persistence.criteria.Expression<Class<? extends X>> type()
Return an expression corresponding to the type of the path.
-
get
public <Y> jakarta.persistence.criteria.Path<Y> get(String attName)
-
join
public <Y> jakarta.persistence.criteria.Join<X,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attribute)
-
join
public <Y> jakarta.persistence.criteria.Join<X,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super X,Y> attribute, jakarta.persistence.criteria.JoinType jt)
-
join
public <Y> jakarta.persistence.criteria.CollectionJoin<X,Y> join(jakarta.persistence.metamodel.CollectionAttribute<? super X,Y> collection)
-
join
public <Y> jakarta.persistence.criteria.SetJoin<X,Y> join(jakarta.persistence.metamodel.SetAttribute<? super X,Y> set)
-
join
public <Y> jakarta.persistence.criteria.ListJoin<X,Y> join(jakarta.persistence.metamodel.ListAttribute<? super X,Y> list)
-
join
public <K,V> jakarta.persistence.criteria.MapJoin<X,K,V> join(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> map)
-
join
public <Y> jakarta.persistence.criteria.CollectionJoin<X,Y> join(jakarta.persistence.metamodel.CollectionAttribute<? super X,Y> collection, jakarta.persistence.criteria.JoinType jt)
-
join
public <Y> jakarta.persistence.criteria.SetJoin<X,Y> join(jakarta.persistence.metamodel.SetAttribute<? super X,Y> set, jakarta.persistence.criteria.JoinType jt)
-
join
public <Y> jakarta.persistence.criteria.ListJoin<X,Y> join(jakarta.persistence.metamodel.ListAttribute<? super X,Y> list, jakarta.persistence.criteria.JoinType jt)
-
join
public <K,V> jakarta.persistence.criteria.MapJoin<X,K,V> join(jakarta.persistence.metamodel.MapAttribute<? super X,K,V> map, jakarta.persistence.criteria.JoinType jt)
-
join
public <T,Y> jakarta.persistence.criteria.Join<T,Y> join(String attributeName)
-
join
public <T,Y> jakarta.persistence.criteria.Join<T,Y> join(String attributeName, jakarta.persistence.criteria.JoinType jt)
-
joinCollection
public <T,Y> jakarta.persistence.criteria.CollectionJoin<T,Y> joinCollection(String attributeName)
-
joinCollection
public <T,Y> jakarta.persistence.criteria.CollectionJoin<T,Y> joinCollection(String attributeName, jakarta.persistence.criteria.JoinType jt)
-
joinList
public <T,Y> jakarta.persistence.criteria.ListJoin<T,Y> joinList(String attributeName)
-
joinList
public <T,Y> jakarta.persistence.criteria.ListJoin<T,Y> joinList(String attributeName, jakarta.persistence.criteria.JoinType jt)
-
joinMap
public <T,K,Y> jakarta.persistence.criteria.MapJoin<T,K,Y> joinMap(String attributeName)
-
joinMap
public <T,K,Y> jakarta.persistence.criteria.MapJoin<T,K,Y> joinMap(String attributeName, jakarta.persistence.criteria.JoinType jt)
-
joinSet
public <T,Y> jakarta.persistence.criteria.SetJoin<T,Y> joinSet(String attributeName)
-
joinSet
public <T,Y> jakarta.persistence.criteria.SetJoin<T,Y> joinSet(String attributeName, jakarta.persistence.criteria.JoinType jt)
-
findJoins
public void findJoins(AbstractQueryImpl query)
-
findJoinFetches
public List<Expression> findJoinFetches()
-
isFrom
public boolean isFrom()
- Specified by:
isFromin interfaceInternalSelection- Overrides:
isFromin classSelectionImpl<X>
-
-