Module org.eclipse.persistence.jpa
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:
Expression<X>
,Fetch<Z,
,X> FetchParent<Z,
,X> From<Z,
,X> Join<Z,
,X> Path<X>
,Selection<X>
,TupleElement<X>
,Serializable
,Cloneable
,InternalExpression
,InternalSelection
- Direct Known Subclasses:
CollectionJoinImpl
,ListJoinImpl
,MapJoinImpl
,SetJoinImpl
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
- See Also:
-
Field Summary
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
ConstructorDescriptionJoinImpl
(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact) JoinImpl
(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType) JoinImpl
(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType, FromImpl correlatedParent) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Expression
<T> buildExpressionForAs
(Class<T> type) Return the metamodel Attribute corresponding to the join.Return the join type.getOn()
Return the parent of the join.on
(Expression<Boolean> restriction) 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 jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
Methods inherited from interface jakarta.persistence.criteria.FetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
Methods inherited from interface jakarta.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 jakarta.persistence.criteria.Path
get, get, get, get, getModel, getParentPath, type
Methods inherited from interface jakarta.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.TupleElement
getAlias, getJavaType
-
Field Details
-
joinType
-
on
-
-
Constructor Details
-
JoinImpl
public JoinImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact) -
JoinImpl
public JoinImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType) -
JoinImpl
public JoinImpl(Path<Z> parentPath, ManagedType managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType, FromImpl correlatedParent)
-
-
Method Details
-
getAttribute
Return the metamodel Attribute corresponding to the join.- Specified by:
getAttribute
in interfaceFetch<Z,
X> - Specified by:
getAttribute
in interfaceJoin<Z,
X> - Returns:
- metamodel Attribute type for the join
-
getParent
Return the parent of the join. -
getJoinType
Return the join type.- Specified by:
getJoinType
in interfaceFetch<Z,
X> - Specified by:
getJoinType
in interfaceJoin<Z,
X> - Returns:
- join type
-
buildExpressionForAs
- Overrides:
buildExpressionForAs
in classExpressionImpl<X>
-
getOn
-
on
-
on
-