Module org.eclipse.persistence.jpa
Class CollectionAttributeImpl<X,V>
java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl<X,Collection<V>>
org.eclipse.persistence.internal.jpa.metamodel.PluralAttributeImpl<X,Collection<V>,V>
org.eclipse.persistence.internal.jpa.metamodel.CollectionAttributeImpl<X,V>
- Type Parameters:
X
- The type the represented Collection belongs toV
- The element type of the represented Collection
- All Implemented Interfaces:
Attribute<X,
,Collection<V>> Bindable<V>
,CollectionAttribute<X,
,V> PluralAttribute<X,
,Collection<V>, V> Serializable
public class CollectionAttributeImpl<X,V>
extends PluralAttributeImpl<X,Collection<V>,V>
implements 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.
- Since:
- EclipseLink 1.2 - JPA 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.PluralAttribute
PluralAttribute.CollectionType
-
Constructor Summary
ModifierConstructorDescriptionprotected
CollectionAttributeImpl
(ManagedTypeImpl<X> managedType, CollectionMapping mapping) INTERNAL: Construct an instance of Collection for the managed type managedTypeprotected
CollectionAttributeImpl
(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled) INTERNAL: Construct an instance of Collection for the managed type managedType -
Method Summary
Modifier and TypeMethodDescriptionReturn the collection type.Return the Java type of the represented attribute.Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.PluralAttributeImpl
getBindableJavaType, getBindableType, getCollectionMapping, getElementType, isPlural, toString
Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl
getDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.persistence.metamodel.Attribute
getDeclaringType, getJavaMember, getName, getPersistentAttributeType, isAssociation, isCollection
Methods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
Methods inherited from interface jakarta.persistence.metamodel.PluralAttribute
getElementType
-
Constructor Details
-
CollectionAttributeImpl
INTERNAL: Construct an instance of Collection for the managed type managedType -
CollectionAttributeImpl
protected CollectionAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled) INTERNAL: Construct an instance of Collection for the managed type managedType
-
-
Method Details
-
getCollectionType
Return the collection type.- Specified by:
getCollectionType
in interfacePluralAttribute<X,
Collection<V>, V> - Specified by:
getCollectionType
in classPluralAttributeImpl<X,
Collection<V>, V> - Returns:
- collection type
-
getJavaType
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceAttribute<X,
V> - Specified by:
getJavaType
in classAttributeImpl<X,
Collection<V>> - Returns:
- Java type
-