Top Description Constructors Methods
org.hibernate.query.criteria.internal.path

public abstract Class PluralAttributeJoinSupport<O, C, E>

extends AbstractJoinImpl<O, E>
implements PluralJoin<O, C, E>
Class Inheritance
All Implemented Interfaces
javax.persistence.criteria.PluralJoin, javax.persistence.criteria.Join, javax.persistence.criteria.From, javax.persistence.criteria.FetchParent, javax.persistence.criteria.Path, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Known Direct Subclasses
org.hibernate.query.criteria.internal.path.SetAttributeJoin, org.hibernate.query.criteria.internal.path.CollectionAttributeJoin, org.hibernate.query.criteria.internal.path.ListAttributeJoin, org.hibernate.query.criteria.internal.path.MapAttributeJoin
Imports
javax.persistence.criteria.Expression, .JoinType, .PluralJoin, .Predicate, javax.persistence.metamodel.Attribute, .ManagedType, .PluralAttribute, .Type, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .JoinImplementor, .PathSource

Support for defining joins to plural attributes (JPA requires typing based on the specific collection type so we cannot really implement all support in a single class)
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public
PluralAttributeJoinSupport(CriteriaBuilderImpl criteriaBuilder, Class<E> javaType, PathSource<O> pathSource, Attribute<? super O, ?> joinAttribute, JoinType joinType)

Method Summary

Modifier and TypeMethod and Description
protected boolean
protected boolean
public PluralAttribute<? super O, C, E>
public PluralAttribute<? super O, C, E>
getModel()

Implements javax.persistence.criteria.PluralJoin.getModel, javax.persistence.criteria.Path.getModel.

Return the metamodel representation for the collection-valued attribute corresponding to the join.
public boolean
protected ManagedType<E>
public JoinImplementor<O, E>
on(Predicate...
zero or more restriction predicates
restrictions
)

Overrides org.hibernate.query.criteria.internal.path.AbstractJoinImpl.on.

Implements javax.persistence.criteria.Join.on, org.hibernate.query.criteria.internal.JoinImplementor.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
public JoinImplementor<O, E>
on(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Overrides org.hibernate.query.criteria.internal.path.AbstractJoinImpl.on.

Implements javax.persistence.criteria.Join.on, org.hibernate.query.criteria.internal.JoinImplementor.on.

Modify the join to restrict the result according to the specified ON condition and return the join object.
Inherited from org.hibernate.query.criteria.internal.path.AbstractJoinImpl:
correlateTogetJoinTypegetOngetParentrenderTableExpression

Constructor Detail

PluralAttributeJoinSupportback to summary
public PluralAttributeJoinSupport(CriteriaBuilderImpl criteriaBuilder, Class<E> javaType, PathSource<O> pathSource, Attribute<? super O, ?> joinAttribute, JoinType joinType)

Method Detail

canBeDereferencedback to summary
protected boolean canBeDereferenced()

Overrides org.hibernate.query.criteria.internal.path.AbstractFromImpl.canBeDereferenced.

Annotations
@Override
canBeJoinSourceback to summary
protected boolean canBeJoinSource()

Implements abstract org.hibernate.query.criteria.internal.path.AbstractFromImpl.canBeJoinSource.

Annotations
@Override
getAttributeback to summary
public PluralAttribute<? super O, C, E> getAttribute()

Overrides org.hibernate.query.criteria.internal.path.AbstractJoinImpl.getAttribute.

Implements javax.persistence.criteria.Join.getAttribute, javax.persistence.criteria.Fetch.getAttribute, org.hibernate.query.criteria.internal.PathImplementor.getAttribute.

Doc from javax.persistence.criteria.Join.getAttribute.

Return the metamodel attribute corresponding to the join.

Returns:PluralAttribute<? super O, C, E>

metamodel attribute corresponding to the join

Annotations
@Override
getModelback to summary
public PluralAttribute<? super O, C, E> getModel()

Implements javax.persistence.criteria.PluralJoin.getModel, javax.persistence.criteria.Path.getModel.

Doc from javax.persistence.criteria.PluralJoin.getModel.

Return the metamodel representation for the collection-valued attribute corresponding to the join.

Returns:PluralAttribute<? super O, C, E>

metamodel collection-valued attribute corresponding to the target of the join

isBasicCollectionback to summary
public boolean isBasicCollection()
locateManagedTypeback to summary
protected ManagedType<E> locateManagedType()

Overrides org.hibernate.query.criteria.internal.path.AbstractFromImpl.locateManagedType.

Annotations
@Override
onback to summary
public JoinImplementor<O, E> on(Predicate... restrictions)

Overrides org.hibernate.query.criteria.internal.path.AbstractJoinImpl.on.

Implements javax.persistence.criteria.Join.on, org.hibernate.query.criteria.internal.JoinImplementor.on.

Doc from 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:JoinImplementor<O, E>

the modified join object

Annotations
@Override
onback to summary
public JoinImplementor<O, E> on(Expression<Boolean> restriction)

Overrides org.hibernate.query.criteria.internal.path.AbstractJoinImpl.on.

Implements javax.persistence.criteria.Join.on, org.hibernate.query.criteria.internal.JoinImplementor.on.

Doc from 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:JoinImplementor<O, E>

the modified join object

Annotations
@Override