Top Description Methods
javax.persistence.metamodel

public Interface MapAttribute<X, K, V>

extends PluralAttribute<X, Map<K, V>, V>
Type Parameters
<X>
The type the represented Map belongs to
<K>
The type of the key of the represented Map
<V>
The type of the value of the represented Map

Instances of the type MapAttribute represent persistent java.util.Map-valued attributes.
Since
Java Persistence 2.0

Method Summary

Modifier and TypeMethod and Description
public Class<K>

Returns:

Java key type
getKeyJavaType
()

Return the Java type of the map key.

public Type<K>

Returns:

type representing key type
getKeyType
()

Return the type representing the key type of the map.

Inherited from javax.persistence.metamodel.PluralAttribute:
getCollectionTypegetElementType

Method Detail

getKeyJavaTypeback to summary
public Class<K> getKeyJavaType()

Return the Java type of the map key.

Returns:Class<K>

Java key type

getKeyTypeback to summary
public Type<K> getKeyType()

Return the type representing the key type of the map.

Returns:Type<K>

type representing key type