Class JoinImpl<Z,X>
- java.lang.Object
-
- org.datanucleus.api.jakarta.criteria.ExpressionImpl<X>
-
- org.datanucleus.api.jakarta.criteria.PathImpl<Z,X>
-
- org.datanucleus.api.jakarta.criteria.FromImpl<Z,X>
-
- org.datanucleus.api.jakarta.criteria.JoinImpl<Z,X>
-
- Type Parameters:
Z
- type from which joiningX
- type of the attribute being joined
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<X>
,jakarta.persistence.criteria.FetchParent<Z,X>
,jakarta.persistence.criteria.From<Z,X>
,jakarta.persistence.criteria.Join<Z,X>
,jakarta.persistence.criteria.Path<X>
,jakarta.persistence.criteria.Selection<X>
,jakarta.persistence.TupleElement<X>
,Serializable
- Direct Known Subclasses:
PluralJoinImpl
public class JoinImpl<Z,X> extends FromImpl<Z,X> implements jakarta.persistence.criteria.Join<Z,X>
Implementation of Jakarta Persistence Criteria "Join".- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.datanucleus.api.jakarta.criteria.FromImpl
fetchJoins, joins, type
-
Fields inherited from class org.datanucleus.api.jakarta.criteria.ExpressionImpl
cb
-
-
Constructor Summary
Constructors Constructor Description JoinImpl(CriteriaBuilderImpl cb, FromImpl<?,Z> parent, PluralAttributeImpl<? super Z,Collection<X>,X> attr, jakarta.persistence.criteria.JoinType joinType)
Constructor for a join to a collection (1-N, M-N relations).JoinImpl(CriteriaBuilderImpl cb, FromImpl<?,Z> parent, SingularAttributeImpl<Z,X> attr, jakarta.persistence.criteria.JoinType joinType)
Constructor for a join to an entity (1-1, N-1 relations).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.metamodel.Attribute<? super Z,?>
getAttribute()
jakarta.persistence.criteria.JoinType
getJoinType()
jakarta.persistence.criteria.Predicate
getOn()
jakarta.persistence.criteria.From<?,Z>
getParent()
jakarta.persistence.criteria.Join<Z,X>
on(jakarta.persistence.criteria.Expression<Boolean> restriction)
jakarta.persistence.criteria.Join<Z,X>
on(jakarta.persistence.criteria.Predicate... restrictions)
-
Methods inherited from class org.datanucleus.api.jakarta.criteria.FromImpl
fetch, fetch, fetch, fetch, fetch, fetch, getAttributeType, getCorrelationParent, getFetches, getJoins, getQueryExpression, getQueryExpression, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, toString, toString
-
Methods inherited from class org.datanucleus.api.jakarta.criteria.PathImpl
get, get, get, get, getModel, getParentPath, getType, type
-
Methods inherited from class org.datanucleus.api.jakarta.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 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
-
-
-
-
Constructor Detail
-
JoinImpl
public JoinImpl(CriteriaBuilderImpl cb, FromImpl<?,Z> parent, SingularAttributeImpl<Z,X> attr, jakarta.persistence.criteria.JoinType joinType)
Constructor for a join to an entity (1-1, N-1 relations).- Parameters:
cb
- Criteria Builderparent
- Parent objectattr
- The type joining tojoinType
- Type of join (Inner/LeftOuter/RightOuter)
-
JoinImpl
public JoinImpl(CriteriaBuilderImpl cb, FromImpl<?,Z> parent, PluralAttributeImpl<? super Z,Collection<X>,X> attr, jakarta.persistence.criteria.JoinType joinType)
Constructor for a join to a collection (1-N, M-N relations).- Parameters:
cb
- Criteria Builderparent
- Parent objectattr
- The type joining tojoinType
- Type of join (Inner/LeftOuter/RightOuter)
-
-
Method Detail
-
getAttribute
public jakarta.persistence.metamodel.Attribute<? super Z,?> getAttribute()
-
getJoinType
public jakarta.persistence.criteria.JoinType getJoinType()
-
getParent
public jakarta.persistence.criteria.From<?,Z> getParent()
-
getOn
public jakarta.persistence.criteria.Predicate getOn()
-
on
public jakarta.persistence.criteria.Join<Z,X> on(jakarta.persistence.criteria.Expression<Boolean> restriction)
-
-