Jakarta Persistence (JPA) Interface
jakarta.persistence.metamodel.MapAttribute<X,K,V>
- Type Parameters:
-
<X>- The type the represented Map belongs to -
<V>- The type of the value of the represented Map -
<K>- The type of the key of the represented Map
- Super Interfaces:
-
PluralAttribute<X,C,E>,Attribute<X,C>,Bindable<E>
Instances of the type
MapAttribute
represent persistent
Map<K,V>
-valued attributes.
- Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
Class<T>
getBindableJavaType
()
If the bindable type of the object is
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.
Inherited from
Bindable<T>
- Returns:
- Java type.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
PluralAttribute<X,C,E>
- Returns:
- collection type.
- Since:
- Jakarta Persistence (JPA) 1.0
Member
getJavaMember
()
Class<Y>
getJavaType
()
Class<K>
getKeyJavaType
()
- Returns:
- Java key type.
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- type representing key type.
- Since:
- Jakarta Persistence (JPA) 1.0
String
getName
()
Inherited from
Attribute<X,Y>
- Returns:
- persistent attribute type.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean
isAssociation
()
Inherited from
Attribute<X,Y>
- Returns:
- boolean indicating whether the attribute corresponds to an association.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean
isCollection
()
Inherited from
Attribute<X,Y>
- Returns:
- boolean indicating whether the attribute is collection-valued.
- Since:
- Jakarta Persistence (JPA) 1.0