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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseAttributeMetadata
(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext) -
Method Summary
Modifier and TypeMethodDescriptiondetermineMemberDescription
(Member member) Get 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)?
-
Constructor Details
-
BaseAttributeMetadata
protected BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification, MetadataContext metadataContext)
-
-
Method Details
-
getName
Description copied from interface:AttributeMetadata
Retrieve the name of the attribute- Specified by:
getName
in interfaceAttributeMetadata<X,
Y> - Returns:
- The attribute name
-
getMember
Description copied from interface:AttributeMetadata
Retrieve the member defining the attribute- Specified by:
getMember
in interfaceAttributeMetadata<X,
Y> - Returns:
- The attribute member
-
getMemberDescription
-
determineMemberDescription
-
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
Description copied from interface:AttributeMetadata
Get the classification for this attribute- Specified by:
getAttributeClassification
in interfaceAttributeMetadata<X,
Y>
-
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
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
-