K - The type of the map keypublic static class MapKeyHelpers.MapKeyAttribute<K> extends Object implements SingularAttribute<Map<K,?>,K>, Bindable<K>, Serializable
Attribute modelling of a map-key.Attribute.PersistentAttributeTypeBindable.BindableType| Constructor and Description |
|---|
MapKeyAttribute(CriteriaBuilderImpl criteriaBuilder,
MapAttribute<?,K,?> attribute) |
| Modifier and Type | Method and Description |
|---|---|
Class<K> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
ManagedType<Map<K,?>> |
getDeclaringType()
Return the managed type representing the type in which
the attribute was declared.
|
Member |
getJavaMember()
Return the
java.lang.reflect.Member for the represented
attribute. |
Class<K> |
getJavaType()
Return the Java type of the represented attribute.
|
String |
getName()
Return the name of the attribute.
|
Attribute.PersistentAttributeType |
getPersistentAttributeType()
Return the persistent attribute type for the attribute.
|
Type<K> |
getType()
Return the type that represents the type of the attribute.
|
boolean |
isAssociation()
Is the attribute an association.
|
boolean |
isCollection()
Is the attribute collection-valued (represents a Collection,
Set, List, or Map).
|
boolean |
isId()
Is the attribute an id attribute.
|
boolean |
isOptional()
Can the attribute be null.
|
boolean |
isVersion()
Is the attribute a version attribute.
|
public MapKeyAttribute(CriteriaBuilderImpl criteriaBuilder, MapAttribute<?,K,?> attribute)
public String getName()
Attributepublic Attribute.PersistentAttributeType getPersistentAttributeType()
AttributegetPersistentAttributeType in interface Attribute<Map<K,?>,K>public ManagedType<Map<K,?>> getDeclaringType()
AttributegetDeclaringType in interface Attribute<Map<K,?>,K>public Class<K> getJavaType()
AttributegetJavaType in interface Attribute<Map<K,?>,K>public Member getJavaMember()
Attributejava.lang.reflect.Member for the represented
attribute.getJavaMember in interface Attribute<Map<K,?>,K>java.lang.reflect.Memberpublic boolean isAssociation()
AttributeisAssociation in interface Attribute<Map<K,?>,K>public boolean isCollection()
AttributeisCollection in interface Attribute<Map<K,?>,K>public boolean isId()
SingularAttributeisId in interface SingularAttribute<Map<K,?>,K>public boolean isVersion()
SingularAttributeisVersion in interface SingularAttribute<Map<K,?>,K>public boolean isOptional()
SingularAttributeisOptional in interface SingularAttribute<Map<K,?>,K>public Type<K> getType()
SingularAttributegetType in interface SingularAttribute<Map<K,?>,K>public Bindable.BindableType getBindableType()
BindablegetBindableType in interface Bindable<K>public Class<K> getBindableJavaType()
BindablePLURAL_ATTRIBUTE,
the Java element type is returned. If the bindable type is
SINGULAR_ATTRIBUTE or ENTITY_TYPE,
the Java type of the
represented entity or attribute is returned.getBindableJavaType in interface Bindable<K>Copyright © 2017 JBoss by Red Hat. All rights reserved.