X - The type the represented collection belongs toK - The key element type of the represented collectionV - The value element type of the represented collectionpublic class MapAttributeImpl<X,K,V> extends PluralAttributeImpl<X,Map<K,V>,V> implements javax.persistence.metamodel.MapAttribute<X,K,V>
ListAttribute.javax.persistence.metamodel.PluralAttribute.CollectionType| Constructor and Description |
|---|
MapAttributeImpl(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType) |
| Modifier and Type | Method and Description |
|---|---|
<Z extends X> |
clone(EntityTypeImpl<Z> type)
Clones the attribute.
|
javax.persistence.metamodel.PluralAttribute.CollectionType |
getCollectionType() |
Class<K> |
getKeyJavaType() |
javax.persistence.metamodel.Type<K> |
getKeyType() |
Map<K,V> |
newCollection(PluralMappingEx<?,Map<K,V>,V> mapping,
ManagedInstance<?> managedInstance,
boolean lazy)
Creates a new lazy initialized managed collection to track changes.
|
Map<K,V> |
newCollection(PluralMappingEx<?,Map<K,V>,V> mapping,
ManagedInstance<?> managedInstance,
Object values)
Creates a new managed collection to track changes.
|
create, getAttributeType, getBindableJavaType, getBindableType, getElementType, getPersistentAttributeType, isAssociation, isCollection, toStringget, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetadata, getMetamodel, getName, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic MapAttributeImpl(ManagedTypeImpl<X> declaringType, AttributeMetadata metadata, javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType)
declaringType - the declaring typemetadata - the metadataattributeType - attribute typepublic <Z extends X> MapAttributeImpl<Z,K,V> clone(EntityTypeImpl<Z> type)
This is used for cloning th attributes from Mapped Super Classes onto child types.
public javax.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
public javax.persistence.metamodel.Type<K> getKeyType()
public Map<K,V> newCollection(PluralMappingEx<?,Map<K,V>,V> mapping, ManagedInstance<?> managedInstance, boolean lazy)
newCollection in class PluralAttributeImpl<X,Map<K,V>,V>mapping - the mappingmanagedInstance - the managed instancelazy - if the collection is lazypublic Map<K,V> newCollection(PluralMappingEx<?,Map<K,V>,V> mapping, ManagedInstance<?> managedInstance, Object values)
newCollection in class PluralAttributeImpl<X,Map<K,V>,V>mapping - the mappingmanagedInstance - the managed instancevalues - the valuesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.