Top Fields Constructors Methods
org.hibernate.metamodel.internal

public abstract Class BaseAttributeMetadata<X, Y>

extends Object
implements AttributeMetadata<X, Y>
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.internal.AttributeMetadata
Known Direct Subclasses
org.hibernate.metamodel.internal.PluralAttributeMetadataImpl, org.hibernate.metamodel.internal.SingularAttributeMetadataImpl
Imports
java.lang.reflect.Field, .Member, .Method, org.hibernate.mapping.Property, org.hibernate.metamodel.AttributeClassification, org.hibernate.metamodel.model.domain.ManagedDomainType, org.hibernate.metamodel.model.domain.internal.MapMember

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AttributeClassification
private final Class<Y>
private final Member
private final ManagedDomainType<X>
private final Property

Constructor Summary

AccessConstructor and Description
protected
BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)

Method Summary

Modifier and TypeMethod and Description
public String
public AttributeClassification
public Class<Y>
getJavaType()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getJavaType.

Retrieve the attribute java type.
public Member
getMember()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getMember.

Retrieve the member defining the attribute
public String
public String
getName()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getName.

Retrieve the name of the attribute
public ManagedDomainType<X>
getOwnerType()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getOwnerType.

Retrieve the attribute owner's metamodel information
public Property
getPropertyMapping()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getPropertyMapping.

Retrieve the Hibernate property mapping related to this attribute.
public boolean
isPlural()

Implements org.hibernate.metamodel.internal.AttributeMetadata.isPlural.

Is the attribute plural (a collection)?
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeClassificationback to summary
private final AttributeClassification attributeClassification
javaTypeback to summary
private final Class<Y> javaType
memberback to summary
private final Member member
ownerTypeback to summary
private final ManagedDomainType<X> ownerType
propertyMappingback to summary
private final Property propertyMapping

Constructor Detail

BaseAttributeMetadataback to summary
protected BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)

Method Detail

determineMemberDescriptionback to summary
public String determineMemberDescription(Member member)
getAttributeClassificationback to summary
public AttributeClassification getAttributeClassification()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getAttributeClassification.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getAttributeClassification.

Get the classification for this attribute

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

Implements org.hibernate.metamodel.internal.AttributeMetadata.getJavaType.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getJavaType.

Retrieve the attribute java type.

Returns:Class<Y>

The java type of the attribute.

getMemberback to summary
public Member getMember()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getMember.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getMember.

Retrieve the member defining the attribute

Returns:Member

The attribute member

getMemberDescriptionback to summary
public String getMemberDescription()
getNameback to summary
public String getName()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getName.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getName.

Retrieve the name of the attribute

Returns:String

The attribute name

getOwnerTypeback to summary
public ManagedDomainType<X> getOwnerType()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getOwnerType.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getOwnerType.

Retrieve the attribute owner's metamodel information

Returns:ManagedDomainType<X>

The metamodel information for the attribute owner

getPropertyMappingback to summary
public Property getPropertyMapping()

Implements org.hibernate.metamodel.internal.AttributeMetadata.getPropertyMapping.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.getPropertyMapping.

Retrieve the Hibernate property mapping related to this attribute.

Returns:Property

The Hibernate property mapping

isPluralback to summary
public boolean isPlural()

Implements org.hibernate.metamodel.internal.AttributeMetadata.isPlural.

Doc from org.hibernate.metamodel.internal.AttributeMetadata.isPlural.

Is the attribute plural (a collection)?

Returns:boolean

True if it is plural, false otherwise.