Top Description Methods
javax.persistence.criteria

public Interface SetJoin<Z, E>

extends PluralJoin<Z, Set<E>, E>
Type Parameters
<Z>
the source type of the join
<E>
the element type of the target Set
Imports
java.util.Set, javax.persistence.metamodel.SetAttribute

The SetJoin interface is the type of the result of joining to a collection over an association or element collection that has been specified as a java.util.Set.
Since
Java Persistence 2.0

Method Summary

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

Returns:

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

Redeclares javax.persistence.criteria.PluralJoin.getModel.

Return the metamodel representation for the set attribute.
public SetJoin<Z, E>

Returns:

the modified join object
on
(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Redeclares javax.persistence.criteria.Join.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
public SetJoin<Z, E>

Returns:

the modified join object
on
(Predicate...
zero or more restriction predicates
restrictions
)

Redeclares javax.persistence.criteria.Join.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.

Method Detail

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

Redeclares javax.persistence.criteria.PluralJoin.getModel.

Return the metamodel representation for the set attribute.

Returns:SetAttribute<? super Z, E>

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

onback to summary
public SetJoin<Z, E> on(Expression<Boolean> restriction)

Redeclares javax.persistence.criteria.Join.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:SetJoin<Z, E>

the modified join object

Since
Java Persistence 2.1
onback to summary
public SetJoin<Z, E> on(Predicate... restrictions)

Redeclares javax.persistence.criteria.Join.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:SetJoin<Z, E>

the modified join object

Since
Java Persistence 2.1