Top Fields Constructors Methods
org.hibernate.metamodel.internal

pack-priv Class PluralAttributeMetadataImpl<X, Y, E>

extends BaseAttributeMetadata<X, Y>
implements PluralAttributeMetadata<X, Y, E>
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.internal.PluralAttributeMetadata, org.hibernate.metamodel.internal.AttributeMetadata
Imports
java.lang.reflect.Member, .ParameterizedType, .TypeVariable, .WildcardType, org.hibernate.AssertionFailure, org.hibernate.mapping.Collection, .Map, .Property, .Value, org.hibernate.metamodel.AttributeClassification, .CollectionClassification, .ValueClassification, org.hibernate.metamodel.model.domain.ManagedDomainType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final CollectionClassification
private final AttributeClassification
private final Class<?>
private final ValueContext
private final Class<?>
private final ValueContext
private final AttributeClassification

Constructor Summary

AccessConstructor and Description
pack-priv
PluralAttributeMetadataImpl(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, AttributeClassification elementClassification, AttributeClassification listIndexOrMapKeyClassification, MetadataContext metadataContext)

Method Summary

Modifier and TypeMethod and Description
public static CollectionClassification
determineCollectionType(Class<?> javaType, Property property)

private Class<?>
public CollectionClassification
getCollectionClassification()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getCollectionClassification.

The classification of the collection, indicating the collection semantics to be used.
public ValueContext
getElementValueContext()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getElementValueContext.

Retrieve the value context for the collection's elements.
public ValueContext
getMapKeyValueContext()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getMapKeyValueContext.

Retrieve the value context for the collection's keys (if a map, null otherwise).
private static ValueClassification
Inherited from org.hibernate.metamodel.internal.BaseAttributeMetadata:
determineMemberDescriptiongetAttributeClassificationgetJavaTypegetMembergetMemberDescriptiongetNamegetOwnerTypegetPropertyMappingisPlural

Field Detail

collectionClassificationback to summary
private final CollectionClassification collectionClassification
elementClassificationback to summary
private final AttributeClassification elementClassification
elementJavaTypeback to summary
private final Class<?> elementJavaType
elementValueContextback to summary
private final ValueContext elementValueContext
keyJavaTypeback to summary
private final Class<?> keyJavaType
keyValueContextback to summary
private final ValueContext keyValueContext
listIndexOrMapKeyClassificationback to summary
private final AttributeClassification listIndexOrMapKeyClassification

Constructor Detail

PluralAttributeMetadataImplback to summary
pack-priv PluralAttributeMetadataImpl(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, AttributeClassification elementClassification, AttributeClassification listIndexOrMapKeyClassification, MetadataContext metadataContext)

Method Detail

determineCollectionTypeback to summary
public static CollectionClassification determineCollectionType(Class<?> javaType, Property property)
getClassFromGenericArgumentback to summary
private Class<?> getClassFromGenericArgument(Type type)
getCollectionClassificationback to summary
public CollectionClassification getCollectionClassification()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getCollectionClassification.

Doc from org.hibernate.metamodel.internal.PluralAttributeMetadata.getCollectionClassification.

The classification of the collection, indicating the collection semantics to be used.

Annotations
@Override
getElementValueContextback to summary
public ValueContext getElementValueContext()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getElementValueContext.

Doc from org.hibernate.metamodel.internal.PluralAttributeMetadata.getElementValueContext.

Retrieve the value context for the collection's elements.

Returns:ValueContext

The value context for the collection's elements.

Annotations
@Override
getMapKeyValueContextback to summary
public ValueContext getMapKeyValueContext()

Implements org.hibernate.metamodel.internal.PluralAttributeMetadata.getMapKeyValueContext.

Doc from org.hibernate.metamodel.internal.PluralAttributeMetadata.getMapKeyValueContext.

Retrieve the value context for the collection's keys (if a map, null otherwise).

Returns:ValueContext

The value context for the collection's keys (if a map, null otherwise).

Annotations
@Override
toValueClassificationback to summary
private static ValueClassification toValueClassification(AttributeClassification classification)