Interface Expressions.Joiner<T>
- Enclosing class:
Expressions
public static interface Expressions.Joiner<T>
Strategy interface used by
Expressions.join(From, PropertyReference) to obtain joins using property references.
Implementations adapt a From and expose typed join methods for singular and
collection-valued attributes as well as map-valued attributes. The methods accept
PropertyReference instances to avoid string-based attribute navigation.
- Since:
- 4.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescription<P> jakarta.persistence.criteria.Join<T, P> join(PropertyReference<T, P> property) Create a join for the given property.<P> jakarta.persistence.criteria.CollectionJoin<T, P> joinCollection(PropertyReference<T, P> property) Create a collection join for the given property.<P> jakarta.persistence.criteria.ListJoin<T, P> joinList(PropertyReference<T, P> property) Create a list join for the given property.joinMap(PropertyReference<T, P> property) Create a map join for the given property.<P> jakarta.persistence.criteria.SetJoin<T, P> joinSet(PropertyReference<T, P> property) Create a set join for the given property.
-
Method Details
-
join
Create a join for the given property.- Parameters:
property- the property to join.- See Also:
-
joinCollection
<P> jakarta.persistence.criteria.CollectionJoin<T,P> joinCollection(PropertyReference<T, P> property) Create a collection join for the given property.- Parameters:
property- the property to join.- See Also:
-
joinList
Create a list join for the given property.- Parameters:
property- the property to join.- See Also:
-
joinSet
Create a set join for the given property.- Parameters:
property- the property to join.- See Also:
-
joinMap
<K, V, P extends Map<K,V>> jakarta.persistence.criteria.MapJoin<T,K, joinMapV> (PropertyReference<T, P> property) Create a map join for the given property.- Parameters:
property- the property to join.- See Also:
-