public class MapAttributeJoin<O,K,V> extends PluralAttributeJoinSupport<O,Map<K,V>,V> implements MapJoinImplementor<O,K,V>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MapAttributeJoin.TreatedMapAttributeJoin<O,K,T> |
AbstractFromImpl.BasicJoinScope, AbstractFromImpl.CorrelationJoinScope, AbstractFromImpl.JoinScope<X>
ParameterContainer.Helper
DEFAULT_JOIN_TYPE
Constructor and Description |
---|
MapAttributeJoin(CriteriaBuilderImpl criteriaBuilder,
Class<V> javaType,
PathSource<O> pathSource,
MapAttribute<? super O,K,V> joinAttribute,
JoinType joinType) |
Modifier and Type | Method and Description |
---|---|
MapAttributeJoin<O,K,V> |
correlateTo(CriteriaSubqueryImpl subquery)
Refined return type
|
protected FromImplementor<O,V> |
createCorrelationDelegate() |
Expression<Map.Entry<K,V>> |
entry()
Create an expression that corresponds to the map entry.
|
MapAttribute<? super O,K,V> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
MapAttribute<? super O,K,V> |
getModel()
Return the metamodel representation for the collection-valued
attribute corresponding to the join.
|
Path<K> |
key()
Create a path expression that corresponds to the map key.
|
MapJoinImplementor<O,K,V> |
on(Expression<Boolean> restriction)
Coordinate return type between
Join.on(Expression) and Fetch#on(Expression) |
MapJoinImplementor<O,K,V> |
on(Predicate... restrictions)
Coordinate return type between
Join.on(Predicate...) and Fetch#on(Predicate...) |
<T extends V> |
treatAs(Class<T> treatAsType)
Defines handling for the JPA 2.1 TREAT down-casting feature.
|
Path<V> |
value()
Create a path expression that corresponds to the map value.
|
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 MapAttributeJoin(CriteriaBuilderImpl criteriaBuilder, Class<V> javaType, PathSource<O> pathSource, MapAttribute<? super O,K,V> joinAttribute, JoinType joinType)
public MapAttribute<? super O,K,V> getAttribute()
PathImplementor
getAttribute
in interface Fetch<O,V>
getAttribute
in interface Join<O,V>
getAttribute
in interface PathImplementor<V>
getAttribute
in class PluralAttributeJoinSupport<O,Map<K,V>,V>
public MapAttribute<? super O,K,V> getModel()
PluralJoin
getModel
in interface MapJoin<O,K,V>
getModel
in interface Path<V>
getModel
in interface PluralJoin<O,Map<K,V>,V>
getModel
in class PluralAttributeJoinSupport<O,Map<K,V>,V>
public final MapAttributeJoin<O,K,V> correlateTo(CriteriaSubqueryImpl subquery)
JoinImplementor
correlateTo
in interface FromImplementor<O,V>
correlateTo
in interface JoinImplementor<O,V>
correlateTo
in interface MapJoinImplementor<O,K,V>
correlateTo
in class AbstractJoinImpl<O,V>
protected FromImplementor<O,V> createCorrelationDelegate()
createCorrelationDelegate
in class AbstractFromImpl<O,V>
public Path<V> value()
MapJoin
public Expression<Map.Entry<K,V>> entry()
MapJoin
public Path<K> key()
MapJoin
public MapJoinImplementor<O,K,V> on(Predicate... restrictions)
JoinImplementor
Join.on(Predicate...)
and Fetch#on(Predicate...)
on
in interface Join<O,V>
on
in interface MapJoin<O,K,V>
on
in interface JoinImplementor<O,V>
on
in interface MapJoinImplementor<O,K,V>
on
in class PluralAttributeJoinSupport<O,Map<K,V>,V>
restrictions
- zero or more restriction predicatespublic MapJoinImplementor<O,K,V> on(Expression<Boolean> restriction)
JoinImplementor
Join.on(Expression)
and Fetch#on(Expression)
on
in interface Join<O,V>
on
in interface MapJoin<O,K,V>
on
in interface JoinImplementor<O,V>
on
in interface MapJoinImplementor<O,K,V>
on
in class PluralAttributeJoinSupport<O,Map<K,V>,V>
restriction
- a simple or compound boolean expressionpublic <T extends V> MapAttributeJoin<O,K,T> treatAs(Class<T> treatAsType)
PathImplementor
treatAs
in interface JoinImplementor<O,V>
treatAs
in interface MapJoinImplementor<O,K,V>
treatAs
in interface PathImplementor<V>
T
- The parameterized type representation of treatAsType.treatAsType
- The type to treat the path as.Copyright © 2016 JBoss by Red Hat. All rights reserved.