K
- The type of the map key.public static class MapKeyHelpers.MapKeyPath<K> extends AbstractPathImpl<K> implements PathImplementor<K>, java.io.Serializable
MapJoin.key()
ParameterContainer.Helper
Constructor and Description |
---|
MapKeyPath(CriteriaBuilderImpl criteriaBuilder,
MapKeyHelpers.MapKeySource<K,?> source,
MapKeyHelpers.MapKeyAttribute<K> mapKeyAttribute) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBeDereferenced() |
MapKeyHelpers.MapKeyAttribute<K> |
getAttribute()
Retrieve reference to the attribute this path represents.
|
javax.persistence.metamodel.Bindable<K> |
getModel() |
MapKeyHelpers.MapKeySource |
getPathSource() |
protected javax.persistence.metamodel.Attribute |
locateAttributeInternal(java.lang.String attributeName)
Get the attribute by name from the underlying model.
|
java.lang.String |
render(RenderingContext renderingContext)
Render clause
|
<T extends K> |
treatAs(java.lang.Class<T> treatAsType)
Defines handling for the JPA 2.1 TREAT down-casting feature.
|
get, get, get, get, getParentPath, getPathIdentifier, getPathSourceForSubPaths, illegalDereference, locateAttribute, prepareAlias, registerAttributePath, registerParameters, resolveCachedAttributePath, type, unknownAttribute
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
getValueHandlers
getValueHandler
renderGroupBy, renderProjection
getPathIdentifier, prepareAlias
get, get, get, get, getParentPath, type
as, in, in, in, in, isNotNull, isNull
public MapKeyPath(CriteriaBuilderImpl criteriaBuilder, MapKeyHelpers.MapKeySource<K,?> source, MapKeyHelpers.MapKeyAttribute<K> mapKeyAttribute)
public MapKeyHelpers.MapKeySource getPathSource()
getPathSource
in class AbstractPathImpl<K>
public MapKeyHelpers.MapKeyAttribute<K> getAttribute()
PathImplementor
getAttribute
in interface PathImplementor<K>
protected boolean canBeDereferenced()
canBeDereferenced
in class AbstractPathImpl<K>
protected javax.persistence.metamodel.Attribute locateAttributeInternal(java.lang.String attributeName)
AbstractPathImpl
AbstractPathImpl.locateAttribute(java.lang.String)
which also applies nullness checking for proper error reporting.locateAttributeInternal
in class AbstractPathImpl<K>
attributeName
- The name of the attribute to locatepublic javax.persistence.metamodel.Bindable<K> getModel()
getModel
in interface javax.persistence.criteria.Path<K>
public <T extends K> MapKeyHelpers.MapKeyPath<T> treatAs(java.lang.Class<T> treatAsType)
PathImplementor
treatAs
in interface PathImplementor<K>
T
- The parameterized type representation of treatAsType.treatAsType
- The type to treat the path as.public java.lang.String render(RenderingContext renderingContext)
Renderable
render
in interface Renderable
render
in class AbstractPathImpl<K>
renderingContext
- contextCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.