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
ConstructorsModifierConstructorDescriptionprotectedBaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification) -
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.booleanisPlural()Is the attribute plural (a collection)?
-
Constructor Details
-
BaseAttributeMetadata
protected BaseAttributeMetadata(Property propertyMapping, ManagedDomainType<X> ownerType, Member member, AttributeClassification attributeClassification)
-
-
Method Details
-
getName
Description copied from interface:AttributeMetadataRetrieve the name of the attribute- Specified by:
getNamein interfaceAttributeMetadata<X,Y> - Returns:
- The attribute name
-
getMember
Description copied from interface:AttributeMetadataRetrieve the member defining the attribute- Specified by:
getMemberin interfaceAttributeMetadata<X,Y> - Returns:
- The attribute member
-
getMemberDescription
-
determineMemberDescription
-
getJavaType
Description copied from interface:AttributeMetadataRetrieve the attribute java type.- Specified by:
getJavaTypein interfaceAttributeMetadata<X,Y> - Returns:
- The java type of the attribute.
-
getAttributeClassification
Description copied from interface:AttributeMetadataGet the classification for this attribute- Specified by:
getAttributeClassificationin interfaceAttributeMetadata<X,Y>
-
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
Description copied from interface:AttributeMetadataRetrieve the Hibernate property mapping related to this attribute.- Specified by:
getPropertyMappingin interfaceAttributeMetadata<X,Y> - Returns:
- The Hibernate property mapping
-