Module org.eclipse.persistence.jpa
Class PluralAttributeImpl<X,C,V>
java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl<X,C>
org.eclipse.persistence.internal.jpa.metamodel.PluralAttributeImpl<X,C,V>
- Type Parameters:
X
- The type the represented collection belongs toC
- The type of the represented collectionV
- The element type of the represented collection
- All Implemented Interfaces:
Attribute<X,
,C> Bindable<V>
,PluralAttribute<X,
,C, V> Serializable
- Direct Known Subclasses:
CollectionAttributeImpl
,ListAttributeImpl
,MapAttributeImpl
,SetAttributeImpl
public abstract class PluralAttributeImpl<X,C,V>
extends AttributeImpl<X,C>
implements PluralAttribute<X,C,V>
Purpose: Provides the implementation for the PluralAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type PluralAttribute 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
PluralAttributeImpl
(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled) INTERNAL: Create an Attribute instance with a passed in validation flag (usually set to true only during Metamodel initialization) -
Method Summary
Modifier and TypeMethodDescriptionReturn the Java type of the represented object.Return the bindable type of the represented object.INTERNAL: Return the mapping associated with this PluralAttribute.abstract PluralAttribute.CollectionType
Return the collection type.Return the type representing the element type of the collection.boolean
isPlural()
INTERNAL: Return whether the attribute is plural or singulartoString()
Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl
getDeclaringType, getDescriptor, getJavaMember, getJavaType, 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, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
-
Constructor Details
-
PluralAttributeImpl
protected PluralAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled) INTERNAL: Create an Attribute instance with a passed in validation flag (usually set to true only during Metamodel initialization)
-
-
Method Details
-
getBindableJavaType
Return the Java type of the represented object. If the bindable type of the object isPLURAL_ATTRIBUTE
, the Java element type is returned. If the bindable type isSINGULAR_ATTRIBUTE
orENTITY_TYPE
, the Java type of the represented entity or attribute is returned.- Specified by:
getBindableJavaType
in interfaceBindable<X>
- Returns:
- Java type
-
getBindableType
Return the bindable type of the represented object.- Specified by:
getBindableType
in interfaceBindable<X>
- Returns:
- bindable type
-
getCollectionMapping
INTERNAL: Return the mapping associated with this PluralAttribute. -
getCollectionType
Return the collection type.- Specified by:
getCollectionType
in interfacePluralAttribute<X,
C, V> - Returns:
- collection type
-
getElementType
Return the type representing the element type of the collection.- Specified by:
getElementType
in interfacePluralAttribute<X,
C, V> - Returns:
- element type
-
isPlural
public boolean isPlural()Description copied from class:AttributeImpl
INTERNAL: Return whether the attribute is plural or singular- Specified by:
isPlural
in classAttributeImpl<X,
C>
-
toString
-