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>
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.
javax.persistence.metamodel.PluralAttribute,
Serialized Form| 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 |
|---|---|
java.lang.Class<V> |
getBindableJavaType()
Return the Java type of the represented object.
|
BindableType |
getBindableType()
Return the bindable type of the represented object.
|
CollectionMapping |
getCollectionMapping()
INTERNAL:
Return the mapping associated with this PluralAttribute.
|
abstract CollectionType |
getCollectionType()
Return the collection type.
|
<any> |
getElementType()
Return the type representing the element type of the
collection.
|
boolean |
isPlural()
INTERNAL:
Return whether the attribute is plural or singular
|
java.lang.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 java.lang.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.public BindableType getBindableType()
public CollectionMapping getCollectionMapping()
public abstract CollectionType getCollectionType()
public <any> getElementType()
public boolean isPlural()
AttributeImplisPlural in class AttributeImpl<X,C>public java.lang.String toString()
toString in class java.lang.Object