X - The type the represented Collection belongs toV - The element type of the represented Collectionpublic class CollectionAttributeImpl<X,V> extends PluralAttributeImpl<X,java.util.Collection<V>,V>
Purpose: Provides the implementation for the CollectionAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type CollectionAttribute represent persistent Collection-valued attributes.
javax.persistence.metamodel.CollectionAttribute,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
CollectionAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping)
INTERNAL:
Construct an instance of Collection for the managed type managedType
|
protected |
CollectionAttributeImpl(ManagedTypeImpl<X> managedType,
CollectionMapping mapping,
boolean validationEnabled)
INTERNAL:
Construct an instance of Collection for the managed type managedType
|
| Modifier and Type | Method and Description |
|---|---|
CollectionType |
getCollectionType()
Return the collection type.
|
java.lang.Class |
getJavaType()
Return the Java type of the represented attribute.
|
getBindableJavaType, getBindableType, getCollectionMapping, getElementType, isPlural, toStringgetDeclaringType, getDescriptor, getJavaMember, getManagedTypeImpl, getMapping, getMetamodel, getName, getPersistentAttributeType, isAssociation, isCollectionprotected CollectionAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping)
managedType - mapping - protected CollectionAttributeImpl(ManagedTypeImpl<X> managedType, CollectionMapping mapping, boolean validationEnabled)
managedType - mapping - validationEnabled - public CollectionType getCollectionType()
getCollectionType in class PluralAttributeImpl<X,java.util.Collection<V>,V>public java.lang.Class getJavaType()
getJavaType in class AttributeImpl<X,java.util.Collection<V>>