Class JoinImpl<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>
-
- org.eclipse.persistence.internal.jpa.querydef.JoinImpl<Z,X>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,javax.persistence.criteria.Expression<X>,javax.persistence.criteria.Fetch<Z,X>,javax.persistence.criteria.FetchParent<Z,X>,javax.persistence.criteria.From<Z,X>,javax.persistence.criteria.Join<Z,X>,javax.persistence.criteria.Path<X>,javax.persistence.criteria.Selection<X>,javax.persistence.TupleElement<X>,InternalExpression,InternalSelection
- Direct Known Subclasses:
CollectionJoinImpl,ListJoinImpl,MapJoinImpl,SetJoinImpl
public class JoinImpl<Z,X> extends FromImpl<Z,X> implements javax.persistence.criteria.Join<Z,X>, javax.persistence.criteria.Fetch<Z,X>
Purpose: Contains the implementation of the Join interface of the JPA criteria API.
Description: This class represents a join of an attribute from a "From"element.
- Since:
- EclipseLink 1.2
- Author:
- gyorke
- See Also:
Join, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.persistence.criteria.JoinTypejoinTypeprotected javax.persistence.criteria.Expression<java.lang.Boolean>on-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.FromImpl
correlatedParent, fetches, isFetch, isJoin, joins, managedType
-
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 JoinImpl(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)JoinImpl(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, javax.persistence.criteria.JoinType joinType)JoinImpl(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, javax.persistence.criteria.JoinType joinType, FromImpl correlatedParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> javax.persistence.criteria.Expression<T>buildExpressionForAs(java.lang.Class<T> type)javax.persistence.metamodel.Attribute<? super Z,?>getAttribute()Return the metamodel Attribute corresponding to the join.javax.persistence.criteria.JoinTypegetJoinType()Return the join type.javax.persistence.criteria.PredicategetOn()javax.persistence.criteria.From<?,Z>getParent()Return the parent of the join.JoinImpl<Z,X>on(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)JoinImpl<Z,X>on(javax.persistence.criteria.Predicate... restrictions)-
Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.FromImpl
fetch, fetch, fetch, fetch, fetch, fetch, findJoinFetches, findJoins, get, get, get, get, getCorrelationParent, getFetches, getJoins, isCorrelated, isFrom, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, type
-
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, 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
-
Methods inherited from interface javax.persistence.criteria.FetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
-
Methods inherited from interface javax.persistence.criteria.From
getCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet
-
Methods inherited from interface javax.persistence.criteria.Path
get, get, get, get, getModel, getParentPath, type
-
-
-
-
Constructor Detail
-
JoinImpl
public JoinImpl(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)
-
JoinImpl
public JoinImpl(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, javax.persistence.criteria.JoinType joinType)
-
JoinImpl
public JoinImpl(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, javax.persistence.criteria.JoinType joinType, FromImpl correlatedParent)
-
-
Method Detail
-
getAttribute
public javax.persistence.metamodel.Attribute<? super Z,?> getAttribute()
Return the metamodel Attribute corresponding to the join.
-
getParent
public javax.persistence.criteria.From<?,Z> getParent()
Return the parent of the join.
-
getJoinType
public javax.persistence.criteria.JoinType getJoinType()
Return the join type.
-
buildExpressionForAs
protected <T> javax.persistence.criteria.Expression<T> buildExpressionForAs(java.lang.Class<T> type)
- Overrides:
buildExpressionForAsin classExpressionImpl<X>
-
getOn
public javax.persistence.criteria.Predicate getOn()
-
-