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 Type
    Method
    Description
    <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>
    Create a collection join for the given property.
    <P> jakarta.persistence.criteria.ListJoin<T,P>
    Create a list join for the given property.
    <K, V, P extends Map<K,V>>
    jakarta.persistence.criteria.MapJoin<T,K,V>
    Create a map join for the given property.
    <P> jakarta.persistence.criteria.SetJoin<T,P>
    Create a set join for the given property.
  • Method Details

    • join

      <P> jakarta.persistence.criteria.Join<T,P> join(PropertyReference<T,P> property)
      Create a join for the given property.
      Parameters:
      property - the property to join.
      See Also:
      • From.join(Class)
    • 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:
      • From.joinCollection(String)
    • joinList

      <P> jakarta.persistence.criteria.ListJoin<T,P> joinList(PropertyReference<T,P> property)
      Create a list join for the given property.
      Parameters:
      property - the property to join.
      See Also:
      • From.joinList(String)
    • joinSet

      <P> jakarta.persistence.criteria.SetJoin<T,P> joinSet(PropertyReference<T,P> property)
      Create a set join for the given property.
      Parameters:
      property - the property to join.
      See Also:
      • From.joinSet(String)
    • joinMap

      <K, V, P extends Map<K,V>> jakarta.persistence.criteria.MapJoin<T,K,V> joinMap(PropertyReference<T,P> property)
      Create a map join for the given property.
      Parameters:
      property - the property to join.
      See Also:
      • From.joinMap(String)