X - The type the represented collection belongs toC - The type of the represented collectionV - The element type of the represented collectionpublic abstract class PluralAttributeImpl<X,C,V> extends AttributeImpl<X,C> implements jakarta.persistence.metamodel.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.
PluralAttribute,
Serialized Formjakarta.persistence.metamodel.PluralAttribute.CollectionType| Modifier | Constructor 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)
|
| Modifier and Type | Method and Description |
|---|---|
Class<V> |
getBindableJavaType()
Return the Java type of the represented object.
|
jakarta.persistence.metamodel.Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
CollectionMapping |
getCollectionMapping()
INTERNAL:
Return the mapping associated with this PluralAttribute.
|
abstract jakarta.persistence.metamodel.PluralAttribute.CollectionType |
getCollectionType()
Return the collection type.
|
jakarta.persistence.metamodel.Type<V> |
getElementType()
Return the type representing the element type of the
collection.
|
boolean |
isPlural()
INTERNAL:
Return whether the attribute is plural or singular
|
String |
toString() |
getDeclaringType, getDescriptor, getJavaMember, getJavaType, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionprotected PluralAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)
managedType - mapping - validationEnabled - public Class<V> getBindableJavaType()
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.getBindableJavaType in interface jakarta.persistence.metamodel.Bindable<V>public jakarta.persistence.metamodel.Bindable.BindableType getBindableType()
getBindableType in interface jakarta.persistence.metamodel.Bindable<V>public CollectionMapping getCollectionMapping()
public abstract jakarta.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
public jakarta.persistence.metamodel.Type<V> getElementType()
public boolean isPlural()
AttributeImplisPlural in class AttributeImpl<X,C>Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.