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
Modifier and TypeMethodDescriptionGet the classification for this attributeRetrieve the attribute java type.Retrieve the member defining the attributegetName()
Retrieve the name of the attributeRetrieve the attribute owner's metamodel informationRetrieve the Hibernate property mapping related to this attribute.boolean
isPlural()
Is the attribute plural (a collection)?
-
Method Details
-
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
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.
-