X - The type the represented Map belongs toK - The type of the key of the represented MapV - The type of the value of the represented Mappublic class MapAttributeImpl<X,K,V> extends PluralAttributeImpl<X,java.util.Map<K,V>,V>
Purpose: Provides the implementation for the MapAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type MapAttribute represent persistent Map-valued attributes.
javax.persistence.metamodel.MapAttribute,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
MapAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping)
INTERNAL:
|
protected |
MapAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping,
boolean validationEnabled)
INTERNAL:
Create a new MapAttribute instance.
|
| Modifier and Type | Method and Description |
|---|---|
CollectionType |
getCollectionType()
Return the collection type.
|
java.lang.Class |
getJavaType()
Return the Java type of the represented attribute.
|
java.lang.Class<K> |
getKeyJavaType()
Return the Java type of the map key.
|
<any> |
getKeyType()
Return the type representing the key type of the map.
|
getBindableJavaType, getBindableType, getCollectionMapping, getElementType, isPlural, toStringgetDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionprotected MapAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping)
managedType - mapping - protected MapAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)
managedType - - the owning type (EmbeddableTypes do not support mappings)mapping - - contains the mapping policyvalidationEnabled - - report errors in the metamodelpublic CollectionType getCollectionType()
getCollectionType in class PluralAttributeImpl<X,java.util.Map<K,V>,V>public java.lang.Class getJavaType()
getJavaType in class AttributeImpl<X,java.util.Map<K,V>>public java.lang.Class<K> getKeyJavaType()
MapAttributepublic <any> getKeyType()
MapAttribute