X - The type the represented Collection belongs toV - The element type of the represented Collectionpublic class CollectionAttributeImpl<X,V> extends PluralAttributeImpl<X,Collection<V>,V> implements jakarta.persistence.metamodel.CollectionAttribute<X,V>
Purpose: Provides the implementation for the CollectionAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type CollectionAttribute represent persistent Collection-valued attributes.
CollectionAttribute,
Serialized Formjakarta.persistence.metamodel.PluralAttribute.CollectionType| Modifier | Constructor and Description |
|---|---|
protected |
CollectionAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping)
INTERNAL:
Construct an instance of Collection for the managed type managedType
|
protected |
CollectionAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping,
boolean validationEnabled)
INTERNAL:
Construct an instance of Collection for the managed type managedType
|
| 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.
|
getBindableJavaType, getBindableType, getCollectionMapping, getElementType, isPlural, toStringgetDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected CollectionAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping)
managedType - mapping - protected CollectionAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)
managedType - mapping - validationEnabled - public jakarta.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
getCollectionType in interface jakarta.persistence.metamodel.PluralAttribute<X,Collection<V>,V>getCollectionType in class PluralAttributeImpl<X,Collection<V>,V>public Class getJavaType()
getJavaType in interface jakarta.persistence.metamodel.Attribute<X,Collection<V>>getJavaType in class AttributeImpl<X,Collection<V>>Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.