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.
jakarta.persistence.metamodel.PluralAttribute
| Modifier and Type | Field and Description |
|---|---|
| private Type | elementType
The type representing this collection type |
| Access | 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 |
|---|---|
| public Class | Returns: Java typeImplements jakarta. |
| public Bindable. | Returns: bindable typeImplements jakarta. |
| public CollectionMapping | |
| public abstract PluralAttribute. | Returns: collection typeRedeclares jakarta. |
| public Type | Returns: element typeImplements jakarta. |
| public boolean | isPlural()
Implements abstract org. |
| public String |
| elementType | back to summary |
|---|---|
| private Type<V> elementType The type representing this collection type | |
| PluralAttributeImpl | back 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) | |
| getBindableJavaType | back to summary |
|---|---|
| public Class Implements jakarta. Return the Java type of the represented object.
If the bindable type of the object is | |
| getBindableType | back to summary |
|---|---|
| public Bindable. Implements jakarta. Return the bindable type of the represented object.
| |
| getCollectionMapping | back to summary |
|---|---|
| public CollectionMapping getCollectionMapping() INTERNAL: Return the mapping associated with this PluralAttribute. | |
| getCollectionType | back to summary |
|---|---|
| public abstract PluralAttribute. Redeclares jakarta. Return the collection type.
| |
| getElementType | back to summary |
|---|---|
| public Type Implements jakarta. Return the type representing the element type of the collection. | |
| isPlural | back to summary |
|---|---|
| public boolean isPlural() Implements abstract org. Doc from org. INTERNAL: Return whether the attribute is plural or singular
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |