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 protected
BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
determineMemberDescription(Member member)
AttributeClassification
getAttributeClassification()
Get the classification for this attributeClass<Y>
getJavaType()
Retrieve the attribute java type.Member
getMember()
Retrieve the member defining the attributeString
getMemberDescription()
String
getName()
Retrieve the name of the attributeManagedDomainType<X>
getOwnerType()
Retrieve the attribute owner's metamodel informationProperty
getPropertyMapping()
Retrieve the Hibernate property mapping related to this attribute.boolean
isPlural()
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:AttributeMetadata
Retrieve the name of the attribute- Specified by:
getName
in interfaceAttributeMetadata<X,Y>
- Returns:
- The attribute name
-
getMember
public Member getMember()
Description copied from interface:AttributeMetadata
Retrieve the member defining the attribute- Specified by:
getMember
in interfaceAttributeMetadata<X,Y>
- Returns:
- The attribute member
-
getMemberDescription
public String getMemberDescription()
-
getJavaType
public Class<Y> getJavaType()
Description copied from interface:AttributeMetadata
Retrieve the attribute java type.- Specified by:
getJavaType
in interfaceAttributeMetadata<X,Y>
- Returns:
- The java type of the attribute.
-
getAttributeClassification
public AttributeClassification getAttributeClassification()
Description copied from interface:AttributeMetadata
Get the classification for this attribute- Specified by:
getAttributeClassification
in interfaceAttributeMetadata<X,Y>
-
getOwnerType
public ManagedDomainType<X> getOwnerType()
Description copied from interface:AttributeMetadata
Retrieve the attribute owner's metamodel information- Specified by:
getOwnerType
in interfaceAttributeMetadata<X,Y>
- Returns:
- The metamodel information for the attribute owner
-
isPlural
public boolean isPlural()
Description copied from interface:AttributeMetadata
Is the attribute plural (a collection)?- Specified by:
isPlural
in interfaceAttributeMetadata<X,Y>
- Returns:
- True if it is plural, false otherwise.
-
getPropertyMapping
public Property getPropertyMapping()
Description copied from interface:AttributeMetadata
Retrieve the Hibernate property mapping related to this attribute.- Specified by:
getPropertyMapping
in interfaceAttributeMetadata<X,Y>
- Returns:
- The Hibernate property mapping
-
-