K
- The type of the map key.public static class MapKeyHelpers.MapKeyPath<K> extends AbstractPathImpl<K> implements PathImplementor<K>, 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.
|
Bindable<K> |
getModel()
Return the bindable object that corresponds to the
path expression.
|
MapKeyHelpers.MapKeySource |
getPathSource() |
protected Attribute |
locateAttributeInternal(String attributeName)
Get the attribute by name from the underlying model.
|
String |
render(RenderingContext renderingContext) |
<T extends K> |
treatAs(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, renderProjection, 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
renderProjection
getPathIdentifier, prepareAlias
get, get, get, get, getParentPath, type
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
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 Attribute locateAttributeInternal(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 Bindable<K> getModel()
Path
public <T extends K> MapKeyHelpers.MapKeyPath<T> treatAs(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 String render(RenderingContext renderingContext)
render
in interface Renderable
render
in class AbstractPathImpl<K>
Copyright © 2016 JBoss by Red Hat. All rights reserved.