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.PersistentAttributeType
Bindable.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()
Attribute
public Attribute.PersistentAttributeType getPersistentAttributeType()
Attribute
getPersistentAttributeType
in interface Attribute<Map<K,?>,K>
public ManagedType<Map<K,?>> getDeclaringType()
Attribute
getDeclaringType
in interface Attribute<Map<K,?>,K>
public Class<K> getJavaType()
Attribute
getJavaType
in interface Attribute<Map<K,?>,K>
public Member getJavaMember()
Attribute
java.lang.reflect.Member
for the represented
attribute.getJavaMember
in interface Attribute<Map<K,?>,K>
java.lang.reflect.Member
public boolean isAssociation()
Attribute
isAssociation
in interface Attribute<Map<K,?>,K>
public boolean isCollection()
Attribute
isCollection
in interface Attribute<Map<K,?>,K>
public boolean isId()
SingularAttribute
isId
in interface SingularAttribute<Map<K,?>,K>
public boolean isVersion()
SingularAttribute
isVersion
in interface SingularAttribute<Map<K,?>,K>
public boolean isOptional()
SingularAttribute
isOptional
in interface SingularAttribute<Map<K,?>,K>
public Type<K> getType()
SingularAttribute
getType
in interface SingularAttribute<Map<K,?>,K>
public Bindable.BindableType getBindableType()
Bindable
getBindableType
in interface Bindable<K>
public Class<K> getBindableJavaType()
Bindable
PLURAL_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 © 2016 JBoss by Red Hat. All rights reserved.