类 MapKeyHelpers.MapKeySource<K,V>
- java.lang.Object
-
- org.hibernate.query.criteria.internal.AbstractNode
-
- org.hibernate.query.criteria.internal.expression.AbstractTupleElement<X>
-
- org.hibernate.query.criteria.internal.expression.SelectionImpl<T>
-
- org.hibernate.query.criteria.internal.expression.ExpressionImpl<X>
-
- org.hibernate.query.criteria.internal.path.AbstractPathImpl<Map<K,V>>
-
- org.hibernate.query.criteria.internal.path.MapKeyHelpers.MapKeySource<K,V>
-
- 类型参数:
K- The map key typeV- The map value type
- 所有已实现的接口:
Serializable,javax.persistence.criteria.Expression<Map<K,V>>,javax.persistence.criteria.Path<Map<K,V>>,javax.persistence.criteria.Selection<Map<K,V>>,javax.persistence.TupleElement<Map<K,V>>,ExpressionImplementor<Map<K,V>>,ParameterContainer,PathImplementor<Map<K,V>>,PathSource<Map<K,V>>,Renderable,SelectionImplementor<Map<K,V>>,TupleElementImplementor<Map<K,V>>
- 封闭类:
- MapKeyHelpers
public static class MapKeyHelpers.MapKeySource<K,V> extends AbstractPathImpl<Map<K,V>> implements PathImplementor<Map<K,V>>, Serializable
Defines a path for the map which can then be used to represent the source of the map key "attribute".- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.query.criteria.internal.ParameterContainer
ParameterContainer.Helper
-
-
构造器概要
构造器 构造器 说明 MapKeySource(CriteriaBuilderImpl criteriaBuilder, Class<Map<K,V>> javaType, MapJoinImplementor<?,K,V> mapJoin, javax.persistence.metamodel.MapAttribute<?,K,V> attribute)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleancanBeDereferenced()javax.persistence.metamodel.MapAttribute<?,K,V>getAttribute()Retrieve reference to the attribute this path represents.javax.persistence.metamodel.Bindable<Map<K,V>>getModel()PathImplementor<?>getParentPath()StringgetPathIdentifier()Get the string representation of this path as a navigation from one of the queries identification variablesprotected javax.persistence.metamodel.AttributelocateAttributeInternal(String attributeName)Get the attribute by name from the underlying model.voidprepareAlias(RenderingContext renderingContext)<T extends Map<K,V>>
PathImplementor<T>treatAs(Class<T> treatAsType)Defines handling for the JPA 2.1 TREAT down-casting feature.-
从类继承的方法 org.hibernate.query.criteria.internal.path.AbstractPathImpl
get, get, get, get, getPathSource, getPathSourceForSubPaths, illegalDereference, locateAttribute, registerAttributePath, registerParameters, render, resolveCachedAttributePath, type, unknownAttribute
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.ExpressionImpl
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.SelectionImpl
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.AbstractTupleElement
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
-
从类继承的方法 org.hibernate.query.criteria.internal.AbstractNode
criteriaBuilder
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.query.criteria.internal.ExpressionImplementor
asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString
-
从接口继承的方法 org.hibernate.query.criteria.internal.Renderable
render
-
从接口继承的方法 org.hibernate.query.criteria.internal.SelectionImplementor
getValueHandlers
-
从接口继承的方法 org.hibernate.query.criteria.internal.TupleElementImplementor
getValueHandler
-
-
-
-
构造器详细资料
-
MapKeySource
public MapKeySource(CriteriaBuilderImpl criteriaBuilder, Class<Map<K,V>> javaType, MapJoinImplementor<?,K,V> mapJoin, javax.persistence.metamodel.MapAttribute<?,K,V> attribute)
-
-
方法详细资料
-
getAttribute
public javax.persistence.metamodel.MapAttribute<?,K,V> getAttribute()
从接口复制的说明:PathImplementorRetrieve reference to the attribute this path represents.- 指定者:
getAttribute在接口中PathImplementor<K>- 返回:
- The metamodel attribute.
-
getModel
public javax.persistence.metamodel.Bindable<Map<K,V>> getModel()
- 指定者:
getModel在接口中javax.persistence.criteria.Path<K>
-
getParentPath
public PathImplementor<?> getParentPath()
- 指定者:
getParentPath在接口中javax.persistence.criteria.Path<K>- 覆盖:
getParentPath在类中AbstractPathImpl<Map<K,V>>
-
canBeDereferenced
protected boolean canBeDereferenced()
- 指定者:
canBeDereferenced在类中AbstractPathImpl<Map<K,V>>
-
locateAttributeInternal
protected javax.persistence.metamodel.Attribute locateAttributeInternal(String attributeName)
从类复制的说明:AbstractPathImplGet the attribute by name from the underlying model. This allows subclasses to define exactly how the attribute is derived. Called fromAbstractPathImpl.locateAttribute(java.lang.String)which also applies nullness checking for proper error reporting.- 指定者:
locateAttributeInternal在类中AbstractPathImpl<Map<K,V>>- 参数:
attributeName- The name of the attribute to locate- 返回:
- The attribute; may be null.
-
treatAs
public <T extends Map<K,V>> PathImplementor<T> treatAs(Class<T> treatAsType)
从接口复制的说明:PathImplementorDefines handling for the JPA 2.1 TREAT down-casting feature.- 指定者:
treatAs在接口中PathImplementor<K>- 类型参数:
T- The parameterized type representation of treatAsType.- 参数:
treatAsType- The type to treat the path as.- 返回:
- The properly typed view of this path.
-
getPathIdentifier
public String getPathIdentifier()
从接口复制的说明:PathSourceGet the string representation of this path as a navigation from one of the queries identification variables- 指定者:
getPathIdentifier在接口中PathSource<K>- 覆盖:
getPathIdentifier在类中AbstractPathImpl<Map<K,V>>- 返回:
- The path's identifier.
-
prepareAlias
public void prepareAlias(RenderingContext renderingContext)
- 指定者:
prepareAlias在接口中PathSource<K>- 覆盖:
prepareAlias在类中AbstractPathImpl<Map<K,V>>
-
-