K - The map key typeV - The map value typepublic static class MapKeyHelpers.MapKeySource<K,V> extends AbstractPathImpl<java.util.Map<K,V>> implements PathImplementor<java.util.Map<K,V>>, java.io.Serializable
ParameterContainer.Helper| Constructor and Description |
|---|
MapKeySource(CriteriaBuilderImpl criteriaBuilder,
java.lang.Class<java.util.Map<K,V>> javaType,
MapJoinImplementor<?,K,V> mapJoin,
javax.persistence.metamodel.MapAttribute<?,K,V> attribute) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canBeDereferenced() |
javax.persistence.metamodel.MapAttribute<?,K,V> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
javax.persistence.metamodel.Bindable<java.util.Map<K,V>> |
getModel() |
PathImplementor<?> |
getParentPath() |
java.lang.String |
getPathIdentifier()
Get the string representation of this path as a navigation from one of the
queries identification variables
|
protected javax.persistence.metamodel.Attribute |
locateAttributeInternal(java.lang.String attributeName)
Get the attribute by name from the underlying model.
|
void |
prepareAlias(RenderingContext renderingContext) |
<T extends java.util.Map<K,V>> |
treatAs(java.lang.Class<T> treatAsType)
Defines handling for the JPA 2.1 TREAT down-casting feature.
|
get, get, get, get, getPathSource, getPathSourceForSubPaths, illegalDereference, locateAttribute, registerAttributePath, registerParameters, render, resolveCachedAttributePath, type, unknownAttributeas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asStringgetValueHandlersgetValueHandlerrender, renderGroupBy, renderProjectionas, in, in, in, in, isNotNull, isNullpublic MapKeySource(CriteriaBuilderImpl criteriaBuilder, java.lang.Class<java.util.Map<K,V>> javaType, MapJoinImplementor<?,K,V> mapJoin, javax.persistence.metamodel.MapAttribute<?,K,V> attribute)
public javax.persistence.metamodel.MapAttribute<?,K,V> getAttribute()
PathImplementorgetAttribute in interface PathImplementor<java.util.Map<K,V>>public PathImplementor<?> getParentPath()
getParentPath in interface javax.persistence.criteria.Path<java.util.Map<K,V>>getParentPath in class AbstractPathImpl<java.util.Map<K,V>>protected boolean canBeDereferenced()
canBeDereferenced in class AbstractPathImpl<java.util.Map<K,V>>protected javax.persistence.metamodel.Attribute locateAttributeInternal(java.lang.String attributeName)
AbstractPathImplAbstractPathImpl.locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.locateAttributeInternal in class AbstractPathImpl<java.util.Map<K,V>>attributeName - The name of the attribute to locatepublic <T extends java.util.Map<K,V>> PathImplementor<T> treatAs(java.lang.Class<T> treatAsType)
PathImplementortreatAs in interface PathImplementor<java.util.Map<K,V>>T - The parameterized type representation of treatAsType.treatAsType - The type to treat the path as.public java.lang.String getPathIdentifier()
PathSourcegetPathIdentifier in interface PathSource<java.util.Map<K,V>>getPathIdentifier in class AbstractPathImpl<java.util.Map<K,V>>public void prepareAlias(RenderingContext renderingContext)
prepareAlias in interface PathSource<java.util.Map<K,V>>prepareAlias in class AbstractPathImpl<java.util.Map<K,V>>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.