org.datanucleus.jpa.metamodel
Class MapAttributeImpl<X,K,V>

java.lang.Object
  extended by org.datanucleus.jpa.metamodel.AttributeImpl<X,C>
      extended by org.datanucleus.jpa.metamodel.PluralAttributeImpl<X,java.util.Map<K,V>,V>
          extended by org.datanucleus.jpa.metamodel.MapAttributeImpl<X,K,V>
All Implemented Interfaces:
javax.persistence.metamodel.Attribute<X,java.util.Map<K,V>>, javax.persistence.metamodel.Bindable<V>, javax.persistence.metamodel.MapAttribute<X,K,V>, javax.persistence.metamodel.PluralAttribute<X,java.util.Map<K,V>,V>

public class MapAttributeImpl<X,K,V>
extends PluralAttributeImpl<X,java.util.Map<K,V>,V>
implements javax.persistence.metamodel.MapAttribute<X,K,V>

Implementation of JPA2 metamodel "ListAttribute".


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.PluralAttribute
javax.persistence.metamodel.PluralAttribute.CollectionType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute
javax.persistence.metamodel.Attribute.PersistentAttributeType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable
javax.persistence.metamodel.Bindable.BindableType
 
Constructor Summary
MapAttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd, ManagedTypeImpl owner)
          Constructor for a MapAttribute.
 
Method Summary
 javax.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
           
 java.lang.Class<K> getKeyJavaType()
           
 javax.persistence.metamodel.Type<K> getKeyType()
           
 
Methods inherited from class org.datanucleus.jpa.metamodel.PluralAttributeImpl
getBindableJavaType, getBindableType, getElementType
 
Methods inherited from class org.datanucleus.jpa.metamodel.AttributeImpl
getDeclaringType, getJavaMember, getJavaType, getMetadata, getName, getPersistentAttributeType, getType, isAssociation, isCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.persistence.metamodel.PluralAttribute
getElementType
 
Methods inherited from interface javax.persistence.metamodel.Attribute
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
 
Methods inherited from interface javax.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
 

Constructor Detail

MapAttributeImpl

public MapAttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd,
                        ManagedTypeImpl owner)
Constructor for a MapAttribute.

Parameters:
mmd - Metadata for the member
owner - The owner class
Method Detail

getCollectionType

public javax.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
Specified by:
getCollectionType in interface javax.persistence.metamodel.PluralAttribute<X,java.util.Map<K,V>,V>
Overrides:
getCollectionType in class PluralAttributeImpl<X,java.util.Map<K,V>,V>

getKeyJavaType

public java.lang.Class<K> getKeyJavaType()
Specified by:
getKeyJavaType in interface javax.persistence.metamodel.MapAttribute<X,K,V>

getKeyType

public javax.persistence.metamodel.Type<K> getKeyType()
Specified by:
getKeyType in interface javax.persistence.metamodel.MapAttribute<X,K,V>


Copyright © 2011. All Rights Reserved.