Class JoinImpl<Z,​X>

  • Type Parameters:
    Z - type from which joining
    X - type of the attribute being joined
    All Implemented Interfaces:
    Serializable, javax.persistence.criteria.Expression<X>, javax.persistence.criteria.FetchParent<Z,​X>, javax.persistence.criteria.From<Z,​X>, javax.persistence.criteria.Join<Z,​X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>
    Direct Known Subclasses:
    PluralJoinImpl

    public class JoinImpl<Z,​X>
    extends FromImpl<Z,​X>
    implements javax.persistence.criteria.Join<Z,​X>
    Implementation of JPA2 Criteria "Join".
    See Also:
    Serialized Form
    • Constructor Detail

      • JoinImpl

        public JoinImpl​(CriteriaBuilderImpl cb,
                        FromImpl<?,​Z> parent,
                        SingularAttributeImpl<Z,​X> attr,
                        javax.persistence.criteria.JoinType joinType)
        Constructor for a join to an entity (1-1, N-1 relations).
        Parameters:
        cb - Criteria Builder
        parent - Parent object
        attr - The type joining to
        joinType - Type of join (Inner/LeftOuter/RightOuter)
      • JoinImpl

        public JoinImpl​(CriteriaBuilderImpl cb,
                        FromImpl<?,​Z> parent,
                        PluralAttributeImpl<? super Z,​Collection<X>,​X> attr,
                        javax.persistence.criteria.JoinType joinType)
        Constructor for a join to a collection (1-N, M-N relations).
        Parameters:
        cb - Criteria Builder
        parent - Parent object
        attr - The type joining to
        joinType - Type of join (Inner/LeftOuter/RightOuter)
    • Method Detail

      • getAttribute

        public javax.persistence.metamodel.Attribute<? super Z,​?> getAttribute()
        Specified by:
        getAttribute in interface javax.persistence.criteria.Join<Z,​X>
      • getJoinType

        public javax.persistence.criteria.JoinType getJoinType()
        Specified by:
        getJoinType in interface javax.persistence.criteria.Join<Z,​X>
      • getParent

        public javax.persistence.criteria.From<?,​Z> getParent()
        Specified by:
        getParent in interface javax.persistence.criteria.Join<Z,​X>
      • getOn

        public javax.persistence.criteria.Predicate getOn()
        Specified by:
        getOn in interface javax.persistence.criteria.Join<Z,​X>
      • on

        public javax.persistence.criteria.Join<Z,​X> on​(javax.persistence.criteria.Expression<Boolean> restriction)
        Specified by:
        on in interface javax.persistence.criteria.Join<Z,​X>
      • on

        public javax.persistence.criteria.Join<Z,​X> on​(javax.persistence.criteria.Predicate... restrictions)
        Specified by:
        on in interface javax.persistence.criteria.Join<Z,​X>