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

public Class SetAttributeImpl<X, V>

extends PluralAttributeImpl<X, Set<V>, V>
implements SetAttribute<X, V>
Class Inheritance
All Implemented Interfaces
jakarta.persistence.metamodel.SetAttribute, jakarta.persistence.metamodel.PluralAttribute, jakarta.persistence.metamodel.Bindable, jakarta.persistence.metamodel.Attribute
Type Parameters
<X>
The type the represented Set belongs to
<V>
The element type of the represented Set
Imports
java.util.Set, jakarta.persistence.metamodel.SetAttribute, org.eclipse.persistence.mappings.CollectionMapping

Purpose: Provides the implementation for the SetAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)

Description: Instances of the type SetAttribute represent persistent Set-valued attributes.

Since
EclipseLink 1.2 - JPA 2.0
See Also
jakarta.persistence.metamodel.SetAttribute

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one

Constructor Summary

AccessConstructor and Description
protected
SetAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping)

INTERNAL:

protected
SetAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)

INTERNAL:

Method Summary

Modifier and TypeMethod and Description
public PluralAttribute.CollectionType
public Class<T>

Returns:

Java type
getJavaType
()

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

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.
Inherited from org.eclipse.persistence.internal.jpa.metamodel.PluralAttributeImpl:
getBindableJavaTypegetBindableTypegetCollectionMappinggetElementTypeisPluraltoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one

Constructor Detail

SetAttributeImplback to summary
protected SetAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping)

INTERNAL:

SetAttributeImplback to summary
protected SetAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)

INTERNAL:

Method Detail

getCollectionTypeback to summary
public PluralAttribute.CollectionType getCollectionType()

Implements abstract org.eclipse.persistence.internal.jpa.metamodel.PluralAttributeImpl.getCollectionType.

Implements jakarta.persistence.metamodel.PluralAttribute.getCollectionType.

Return the collection type.

Returns:PluralAttribute.CollectionType

collection type

Annotations
@Override
getJavaTypeback to summary
public Class<T> getJavaType()

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

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.

Returns:Class<T>

Java type

Annotations
@Override
@SuppressWarnings:rawtypes