public class CollectionAttributeJoin<O,E> extends PluralAttributeJoinSupport<O,Collection<E>,E> implements CollectionJoinImplementor<O,E>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CollectionAttributeJoin.TreatedCollectionAttributeJoin<O,T> |
AbstractFromImpl.BasicJoinScope, AbstractFromImpl.CorrelationJoinScope, AbstractFromImpl.JoinScope<X>
ParameterContainer.Helper
DEFAULT_JOIN_TYPE
Constructor and Description |
---|
CollectionAttributeJoin(CriteriaBuilderImpl criteriaBuilder,
Class<E> javaType,
PathSource<O> pathSource,
CollectionAttribute<? super O,E> joinAttribute,
JoinType joinType) |
Modifier and Type | Method and Description |
---|---|
CollectionAttributeJoin<O,E> |
correlateTo(CriteriaSubqueryImpl subquery)
Refined return type
|
protected FromImplementor<O,E> |
createCorrelationDelegate() |
CollectionAttribute<? super O,E> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
CollectionAttribute<? super O,E> |
getModel()
Return the metamodel representation for the collection-valued
attribute corresponding to the join.
|
CollectionAttributeJoin<O,E> |
on(Expression<Boolean> restriction)
Coordinate return type between
Join.on(Expression) and Fetch#on(Expression) |
CollectionAttributeJoin<O,E> |
on(Predicate... restrictions)
Coordinate return type between
Join.on(Predicate...) and Fetch#on(Predicate...) |
<T extends E> |
treatAs(Class<T> treatAsType)
Defines handling for the JPA 2.1 TREAT down-casting feature.
|
canBeDereferenced, canBeJoinSource, isBasicCollection, locateManagedType
getJoinType, getOn, getParent, renderTableExpression
canBeFetchSource, fetch, fetch, fetch, fetch, fetch, fetch, getAlias, getCorrelationParent, getFetches, getJoins, getPathIdentifier, getPathSource, illegalFetch, illegalJoin, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet, locateAttributeInternal, prepareAlias, prepareCorrelationDelegate, render, renderProjection
get, get, get, get, getParentPath, getPathSourceForSubPaths, illegalDereference, locateAttribute, registerAttributePath, registerParameters, resolveCachedAttributePath, type, unknownAttribute
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJoinType, getParent
getCorrelationParent, prepareAlias, prepareCorrelationDelegate, renderTableExpression
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
getValueHandlers
getValueHandler
render, renderProjection
getPathIdentifier
getJoinType, getOn, getParent
getJoins, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinMap, joinMap, joinSet, joinSet
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
public CollectionAttributeJoin(CriteriaBuilderImpl criteriaBuilder, Class<E> javaType, PathSource<O> pathSource, CollectionAttribute<? super O,E> joinAttribute, JoinType joinType)
public final CollectionAttributeJoin<O,E> correlateTo(CriteriaSubqueryImpl subquery)
JoinImplementor
correlateTo
in interface CollectionJoinImplementor<O,E>
correlateTo
in interface FromImplementor<O,E>
correlateTo
in interface JoinImplementor<O,E>
correlateTo
in class AbstractJoinImpl<O,E>
public CollectionAttribute<? super O,E> getAttribute()
PathImplementor
getAttribute
in interface Fetch<O,E>
getAttribute
in interface Join<O,E>
getAttribute
in interface PathImplementor<E>
getAttribute
in class PluralAttributeJoinSupport<O,Collection<E>,E>
public CollectionAttribute<? super O,E> getModel()
PluralJoin
getModel
in interface CollectionJoin<O,E>
getModel
in interface Path<E>
getModel
in interface PluralJoin<O,Collection<E>,E>
getModel
in class PluralAttributeJoinSupport<O,Collection<E>,E>
protected FromImplementor<O,E> createCorrelationDelegate()
createCorrelationDelegate
in class AbstractFromImpl<O,E>
public CollectionAttributeJoin<O,E> on(Predicate... restrictions)
JoinImplementor
Join.on(Predicate...)
and Fetch#on(Predicate...)
on
in interface CollectionJoin<O,E>
on
in interface Join<O,E>
on
in interface CollectionJoinImplementor<O,E>
on
in interface JoinImplementor<O,E>
on
in class PluralAttributeJoinSupport<O,Collection<E>,E>
restrictions
- zero or more restriction predicatespublic CollectionAttributeJoin<O,E> on(Expression<Boolean> restriction)
JoinImplementor
Join.on(Expression)
and Fetch#on(Expression)
on
in interface CollectionJoin<O,E>
on
in interface Join<O,E>
on
in interface CollectionJoinImplementor<O,E>
on
in interface JoinImplementor<O,E>
on
in class PluralAttributeJoinSupport<O,Collection<E>,E>
restriction
- a simple or compound boolean expressionpublic <T extends E> CollectionAttributeJoin<O,T> treatAs(Class<T> treatAsType)
PathImplementor
treatAs
in interface CollectionJoinImplementor<O,E>
treatAs
in interface JoinImplementor<O,E>
treatAs
in interface PathImplementor<E>
T
- The parameterized type representation of treatAsType.treatAsType
- The type to treat the path as.Copyright © 2016 JBoss by Red Hat. All rights reserved.