Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.querydef

public Class SetJoinImpl<Z, X>

extends JoinImpl<Z, X>
implements SetJoin<Z, X>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.criteria.SetJoin, jakarta.persistence.criteria.PluralJoin, jakarta.persistence.criteria.Join, jakarta.persistence.criteria.From, jakarta.persistence.criteria.FetchParent, jakarta.persistence.criteria.Path, jakarta.persistence.criteria.Expression, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.querydef.BasicSetJoinImpl
Imports
jakarta.persistence.criteria.Expression, .JoinType, .Path, .Predicate, .SetJoin, jakarta.persistence.metamodel.Bindable, .ManagedType, .Metamodel

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.

Author
gyorke
Since
EclipseLink 1.2
See Also
ListJoin

Field Summary

Inherited from org.eclipse.persistence.internal.jpa.querydef.JoinImpl:
joinTypeon

Constructor Summary

AccessConstructor and Description
public <T>
SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact)

public <T>
SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType)

public <T>
SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType, FromImpl<Z, X> correlatedParent)

Method Summary

Modifier and TypeMethod and Description
public SetAttribute<? super Z, X>

Returns:

metamodel type representing the Collection that is the target of the join
getModel
()

Overrides org.eclipse.persistence.internal.jpa.querydef.PathImpl.getModel.

Implements jakarta.persistence.criteria.SetJoin.getModel, jakarta.persistence.criteria.Path.getModel.

Return the metamodel representation for the collection.
public SetJoinImpl<Z, X>
on(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Overrides org.eclipse.persistence.internal.jpa.querydef.JoinImpl.on.

Implements jakarta.persistence.criteria.SetJoin.on, jakarta.persistence.criteria.Join.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
public SetJoinImpl<Z, X>
on(Predicate...
zero or more restriction predicates
restrictions
)

Overrides org.eclipse.persistence.internal.jpa.querydef.JoinImpl.on.

Implements jakarta.persistence.criteria.SetJoin.on, jakarta.persistence.criteria.Join.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
Inherited from org.eclipse.persistence.internal.jpa.querydef.JoinImpl:
buildExpressionForAsgetAttributegetJoinTypegetOngetParent

Constructor Detail

SetJoinImplback to summary
public <T> SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact)
SetJoinImplback to summary
public <T> SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType)
SetJoinImplback to summary
public <T> SetJoinImpl(Path<Z> parentPath, ManagedType<X> managedType, Metamodel metamodel, Class<X> javaClass, Expression expressionNode, Bindable<T> modelArtifact, JoinType joinType, FromImpl<Z, X> correlatedParent)

Method Detail

getModelback to summary
public SetAttribute<? super Z, X> getModel()

Overrides org.eclipse.persistence.internal.jpa.querydef.PathImpl.getModel.

Implements jakarta.persistence.criteria.SetJoin.getModel, jakarta.persistence.criteria.Path.getModel.

Return the metamodel representation for the collection.

Returns:SetAttribute<? super Z, X>

metamodel type representing the Collection that is the target of the join

Annotations
@Override
onback to summary
public SetJoinImpl<Z, X> on(Expression<Boolean> restriction)

Overrides org.eclipse.persistence.internal.jpa.querydef.JoinImpl.on.

Implements jakarta.persistence.criteria.SetJoin.on, jakarta.persistence.criteria.Join.on.

Doc from jakarta.persistence.criteria.SetJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any.

Parameters
restriction:Expression<Boolean>

a simple or compound boolean expression

Returns:SetJoinImpl<Z, X>

the modified join object

Annotations
@Override
onback to summary
public SetJoinImpl<Z, X> on(Predicate... restrictions)

Overrides org.eclipse.persistence.internal.jpa.querydef.JoinImpl.on.

Implements jakarta.persistence.criteria.SetJoin.on, jakarta.persistence.criteria.Join.on.

Doc from jakarta.persistence.criteria.SetJoin.on.

Modify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any.

Parameters
restrictions:Predicate[]

zero or more restriction predicates

Returns:SetJoinImpl<Z, X>

the modified join object

Annotations
@Override