Package org.hibernate.metamodel.internal
Interface AttributeMetadata<X,Y>
-
- Type Parameters:
X
- The attribute owner typeY
- The attribute type.
- All Known Subinterfaces:
PluralAttributeMetadata<O,C,E>
,SingularAttributeMetadata<X,Y>
- All Known Implementing Classes:
BaseAttributeMetadata
,SingularAttributeMetadataImpl
public interface AttributeMetadata<X,Y>
Basic contract for describing an attribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeClassification
getAttributeClassification()
Get the classification for this attributeClass<Y>
getJavaType()
Retrieve the attribute java type.Member
getMember()
Retrieve the member defining the attributeString
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)?
-
-
-
Method Detail
-
getName
String getName()
Retrieve the name of the attribute- Returns:
- The attribute name
-
getMember
Member getMember()
Retrieve the member defining the attribute- Returns:
- The attribute member
-
getJavaType
Class<Y> getJavaType()
Retrieve the attribute java type.- Returns:
- The java type of the attribute.
-
getAttributeClassification
AttributeClassification getAttributeClassification()
Get the classification for this attribute
-
getOwnerType
ManagedDomainType<X> getOwnerType()
Retrieve the attribute owner's metamodel information- Returns:
- The metamodel information for the attribute owner
-
getPropertyMapping
Property getPropertyMapping()
Retrieve the Hibernate property mapping related to this attribute.- Returns:
- The Hibernate property mapping
-
isPlural
boolean isPlural()
Is the attribute plural (a collection)?- Returns:
- True if it is plural, false otherwise.
-
-