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,Map<K,V>,V> implements jakarta.persistence.metamodel.MapAttribute<X,K,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.
MapAttribute,
Serialized Formjakarta.persistence.metamodel.PluralAttribute.CollectionType| 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 |
|---|---|
jakarta.persistence.metamodel.PluralAttribute.CollectionType |
getCollectionType()
Return the collection type.
|
Class |
getJavaType()
Return the Java type of the represented attribute.
|
Class<K> |
getKeyJavaType()
Return the Java type of the map key.
|
jakarta.persistence.metamodel.Type<K> |
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, isCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected 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 jakarta.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
public Class getJavaType()
getJavaType in interface jakarta.persistence.metamodel.Attribute<X,Map<K,V>>getJavaType in class AttributeImpl<X,Map<K,V>>Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.