X - managed typeE - attribute type present in map.public class DefaultMapAttribute<X,K,V> extends AbstractPluralAttribute<X,V,Map<K,V>> implements javax.persistence.metamodel.MapAttribute<X,K,V>
MapAttribute interface.
Offers metadata information implementation for collection attribute as per
jpa.javax.persistence.metamodel.PluralAttribute.CollectionType| Modifier and Type | Field and Description |
|---|---|
private javax.persistence.metamodel.Type<K> |
keyType |
attribType, member| Constructor and Description |
|---|
DefaultMapAttribute(javax.persistence.metamodel.Type<V> attribType,
String attribName,
javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType,
javax.persistence.metamodel.ManagedType<X> managedType,
Field member,
Class<Map<K,V>> clazz,
javax.persistence.metamodel.Type<K> keyType)
Constructor using fields.
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.metamodel.PluralAttribute.CollectionType |
getCollectionType()
Return the collection type.
|
javax.persistence.metamodel.Type<V> |
getElementType() |
Class<Map<K,V>> |
getJavaType() |
Class<K> |
getKeyJavaType() |
javax.persistence.metamodel.Type<K> |
getKeyType() |
boolean |
isCollection() |
getBindableType, getBoundJavaTypegetBindableJavaType, getDeclaringType, getFieldAnnotation, getJavaMember, getJPAColumnName, getName, getPersistentAttributeType, getTableName, isAssociation, setColumnNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate javax.persistence.metamodel.Type<K> keyType
public DefaultMapAttribute(javax.persistence.metamodel.Type<V> attribType, String attribName, javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType, javax.persistence.metamodel.ManagedType<X> managedType, Field member, Class<Map<K,V>> clazz, javax.persistence.metamodel.Type<K> keyType)
attribType - attribute typeattribName - attribute namepersistenceAttribType - persistent attribute type.managedType - managed typemember - attribute's java member.key - type attribute of key type.public javax.persistence.metamodel.Type<K> getKeyType()
public javax.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
AbstractPluralAttributepublic javax.persistence.metamodel.Type<V> getElementType()
public boolean isCollection()
Copyright © 2015. All Rights Reserved.