Package org.hibernate.metamodel.internal
Class BaseAttributeMetadata<X,Y>
- java.lang.Object
-
- org.hibernate.metamodel.internal.BaseAttributeMetadata<X,Y>
-
- All Implemented Interfaces:
AttributeMetadata<X,Y>
- Direct Known Subclasses:
SingularAttributeMetadataImpl
public abstract class BaseAttributeMetadata<X,Y> extends Object implements AttributeMetadata<X,Y>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdetermineMemberDescription(Member member)AttributeClassificationgetAttributeClassification()Get the classification for this attributeClass<Y>getJavaType()Retrieve the attribute java type.MembergetMember()Retrieve the member defining the attributeStringgetMemberDescription()StringgetName()Retrieve the name of the attributeManagedDomainType<X>getOwnerType()Retrieve the attribute owner's metamodel informationPropertygetPropertyMapping()Retrieve the Hibernate property mapping related to this attribute.booleanisPlural()Is the attribute plural (a collection)?
-
-
-
Constructor Detail
-
BaseAttributeMetadata
protected BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AttributeMetadataRetrieve the name of the attribute- Specified by:
getNamein interfaceAttributeMetadata<X,Y>- Returns:
- The attribute name
-
getMember
public Member getMember()
Description copied from interface:AttributeMetadataRetrieve the member defining the attribute- Specified by:
getMemberin interfaceAttributeMetadata<X,Y>- Returns:
- The attribute member
-
getMemberDescription
public String getMemberDescription()
-
getJavaType
public Class<Y> getJavaType()
Description copied from interface:AttributeMetadataRetrieve the attribute java type.- Specified by:
getJavaTypein interfaceAttributeMetadata<X,Y>- Returns:
- The java type of the attribute.
-
getAttributeClassification
public AttributeClassification getAttributeClassification()
Description copied from interface:AttributeMetadataGet the classification for this attribute- Specified by:
getAttributeClassificationin interfaceAttributeMetadata<X,Y>
-
getOwnerType
public ManagedDomainType<X> getOwnerType()
Description copied from interface:AttributeMetadataRetrieve the attribute owner's metamodel information- Specified by:
getOwnerTypein interfaceAttributeMetadata<X,Y>- Returns:
- The metamodel information for the attribute owner
-
isPlural
public boolean isPlural()
Description copied from interface:AttributeMetadataIs the attribute plural (a collection)?- Specified by:
isPluralin interfaceAttributeMetadata<X,Y>- Returns:
- True if it is plural, false otherwise.
-
getPropertyMapping
public Property getPropertyMapping()
Description copied from interface:AttributeMetadataRetrieve the Hibernate property mapping related to this attribute.- Specified by:
getPropertyMappingin interfaceAttributeMetadata<X,Y>- Returns:
- The Hibernate property mapping
-
-