Top Fields Constructors Methods
org.hibernate.metamodel.model.domain.internal

public abstract Class AbstractPluralAttribute<D, C, E>

extends AbstractAttribute<D, C>
implements PluralPersistentAttribute<D, C, E>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.metamodel.model.domain.spi.PluralPersistentAttribute, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor, org.hibernate.metamodel.model.domain.PersistentAttribute, javax.persistence.metamodel.Attribute, javax.persistence.metamodel.PluralAttribute, javax.persistence.metamodel.Bindable
Known Direct Subclasses
org.hibernate.metamodel.model.domain.internal.BagAttributeImpl, org.hibernate.metamodel.model.domain.internal.ListAttributeImpl, org.hibernate.metamodel.model.domain.internal.MapAttributeImpl, org.hibernate.metamodel.model.domain.internal.SetAttributeImpl
Type Parameters
<D>
The (D)eclaring type
<C>
The Collection type
<E>
The type of the Collection's elements
Imports
java.io.Serializable, java.util.Collection, org.hibernate.metamodel.model.domain.spi.PluralPersistentAttribute, .SimpleTypeDescriptor

Authors
Emmanuel Bernard, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Class<C>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static <X, C, E, K> PluralAttributeBuilder<X, C, E, K>
create(AbstractManagedType<X> ownerType, SimpleTypeDescriptor<E> attrType, Class<C> collectionClass, SimpleTypeDescriptor<K> keyType)

public Class<E>
getBindableJavaType()

Implements javax.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object.
public Bindable.BindableType
getBindableType()

Implements javax.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.
public SimpleTypeDescriptor<E>
getElementType()

Implements org.hibernate.metamodel.model.domain.spi.PluralPersistentAttribute.getElementType.

Return the type representing the element type of the collection.
public Class<C>
getJavaType()

Implements javax.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.
public SimpleTypeDescriptor<?>
public SimpleTypeDescriptor<E>
public boolean
isAssociation()

Implements javax.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.
public boolean
isCollection()

Implements javax.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).
Inherited from org.hibernate.metamodel.model.domain.internal.AbstractAttribute:
getDeclaringTypegetJavaMembergetNamegetPersistentAttributeTypereadObjecttoStringwriteObject

Field Detail

collectionClassback to summary
private final Class<C> collectionClass

Constructor Detail

AbstractPluralAttributeback to summary
protected AbstractPluralAttribute(PluralAttributeBuilder<D, C, E, ?> builder)

Method Detail

createback to summary
public static <X, C, E, K> PluralAttributeBuilder<X, C, E, K> create(AbstractManagedType<X> ownerType, SimpleTypeDescriptor<E> attrType, Class<C> collectionClass, SimpleTypeDescriptor<K> keyType)
getBindableJavaTypeback to summary
public Class<E> getBindableJavaType()

Implements javax.persistence.metamodel.Bindable.getBindableJavaType.

Doc from javax.persistence.metamodel.Bindable.getBindableJavaType.

Return the Java type of the represented object. If the bindable type of the object is 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.

Returns:Class<E>

Java type

Annotations
@Override
getBindableTypeback to summary
public Bindable.BindableType getBindableType()

Implements javax.persistence.metamodel.Bindable.getBindableType.

Doc from javax.persistence.metamodel.Bindable.getBindableType.

Return the bindable type of the represented object.

Returns:Bindable.BindableType

bindable type

Annotations
@Override
getElementTypeback to summary
public SimpleTypeDescriptor<E> getElementType()

Implements org.hibernate.metamodel.model.domain.spi.PluralPersistentAttribute.getElementType.

Doc from javax.persistence.metamodel.PluralAttribute.getElementType.

Return the type representing the element type of the collection.

Returns:SimpleTypeDescriptor<E>

element type

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

Implements javax.persistence.metamodel.Attribute.getJavaType.

Doc from javax.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.

Returns:Class<C>

Java type

Annotations
@Override
getKeyGraphTypeback to summary
public SimpleTypeDescriptor<?> getKeyGraphType()

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getKeyGraphType.

Annotations
@Override
getValueGraphTypeback to summary
public SimpleTypeDescriptor<E> getValueGraphType()

Overrides org.hibernate.metamodel.model.domain.internal.AbstractAttribute.getValueGraphType.

Implements org.hibernate.metamodel.model.domain.spi.PluralPersistentAttribute.getValueGraphType, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getValueGraphType.

Annotations
@Override
@SuppressWarnings:unchecked
isAssociationback to summary
public boolean isAssociation()

Implements javax.persistence.metamodel.Attribute.isAssociation.

Doc from javax.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.

Returns:boolean

boolean indicating whether the attribute corresponds to an association

Annotations
@Override
isCollectionback to summary
public boolean isCollection()

Implements javax.persistence.metamodel.Attribute.isCollection.

Doc from javax.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).

Returns:boolean

boolean indicating whether the attribute is collection-valued

Annotations
@Override