Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metamodel

public abstract Class PluralAttributeImpl<X, C, V>

extends AttributeImpl<X, C>
implements PluralAttribute<X, C, V>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.metamodel.PluralAttribute, jakarta.persistence.metamodel.Bindable, jakarta.persistence.metamodel.Attribute
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.metamodel.SetAttributeImpl, org.eclipse.persistence.internal.jpa.metamodel.CollectionAttributeImpl, org.eclipse.persistence.internal.jpa.metamodel.ListAttributeImpl, org.eclipse.persistence.internal.jpa.metamodel.MapAttributeImpl
Type Parameters
<X>
The type the represented collection belongs to
<C>
The type of the represented collection
<V>
The element type of the represented collection
Imports
jakarta.persistence.metamodel.Bindable, .PluralAttribute, .Type, org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.internal.queries.ContainerPolicy, .MapContainerPolicy, org.eclipse.persistence.logging.AbstractSessionLog, .SessionLog, org.eclipse.persistence.mappings.AggregateCollectionMapping, .CollectionMapping

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
jakarta.persistence.metamodel.PluralAttribute

Field Summary

Modifier and TypeField and Description
private Type<V>
elementType

The type representing this collection type

Constructor Summary

AccessConstructor and Description
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 Summary

Modifier and TypeMethod and Description
public Class<V>

Returns:

Java type
getBindableJavaType
()

Implements jakarta.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object.
public Bindable.BindableType

Returns:

bindable type
getBindableType
()

Implements jakarta.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.
public CollectionMapping
getCollectionMapping()

INTERNAL: Return the mapping associated with this PluralAttribute.

public abstract PluralAttribute.CollectionType

Returns:

collection type
getCollectionType
()

Redeclares jakarta.persistence.metamodel.PluralAttribute.getCollectionType.

Return the collection type.
public Type<V>

Returns:

element type
getElementType
()

Implements jakarta.persistence.metamodel.PluralAttribute.getElementType.

Return the type representing the element type of the collection.
public boolean
isPlural()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl.isPlural.

INTERNAL: Return whether the attribute is plural or singular
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl:
getDeclaringTypegetDescriptorgetJavaMembergetJavaTypegetManagedTypeImplgetMappinggetMetamodelgetNamegetPersistentAttributeTypeisAssociationisCollection

Field Detail

elementTypeback to summary
private Type<V> elementType

The type representing this collection type

Constructor Detail

PluralAttributeImplback to summary
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 Detail

getBindableJavaTypeback to summary
public Class<V> getBindableJavaType()

Implements jakarta.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.

Returns:Class<V>

Java type

Annotations
@Override
getBindableTypeback to summary
public Bindable.BindableType getBindableType()

Implements jakarta.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.

Returns:Bindable.BindableType

bindable type

Annotations
@Override
getCollectionMappingback to summary
public CollectionMapping getCollectionMapping()

INTERNAL: Return the mapping associated with this PluralAttribute.

getCollectionTypeback to summary
public abstract PluralAttribute.CollectionType getCollectionType()

Redeclares jakarta.persistence.metamodel.PluralAttribute.getCollectionType.

Return the collection type.

Returns:PluralAttribute.CollectionType

collection type

Annotations
@Override
getElementTypeback to summary
public Type<V> getElementType()

Implements jakarta.persistence.metamodel.PluralAttribute.getElementType.

Return the type representing the element type of the collection.

Returns:Type<V>

element type

Annotations
@Override
isPluralback to summary
public boolean isPlural()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl.isPlural.

Doc from org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl.isPlural.

INTERNAL: Return whether the attribute is plural or singular

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override