Class AbstractAttribute<D,J,B>
java.lang.Object
org.hibernate.metamodel.model.domain.internal.AbstractAttribute<D,J,B>
- Type Parameters:
D- The type of the class (D)eclaring this attributeJ- The (J)ava type of this attribute
- All Implemented Interfaces:
Attribute<D,,J> Serializable,PersistentAttribute<D,J>
- Direct Known Subclasses:
AbstractPluralAttribute,SingularAttributeImpl
public abstract class AbstractAttribute<D,J,B>
extends Object
implements PersistentAttribute<D,J>, Serializable
Models the commonality of the JPA
Attribute hierarchy.- Author:
- Steve Ebersole
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext) -
Method Summary
Modifier and TypeMethodDescriptionThe classification of the attribute (is it a basic type, entity, etc)Return the managed type representing the type in which the attribute was declared.Return thejava.lang.reflect.Memberfor the represented attribute.Return the Java type of the represented attribute.getName()Return the name of the attribute.Return the persistent attribute type for the attribute.DomainType<?>toString()protected ObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.metamodel.Attribute
isAssociation, isCollectionMethods inherited from interface org.hibernate.metamodel.model.domain.PersistentAttribute
getKeyGraphType
-
Constructor Details
-
AbstractAttribute
protected AbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext)
-
-
Method Details
-
getName
Description copied from interface:AttributeReturn the name of the attribute. -
getJavaType
Description copied from interface:AttributeReturn the Java type of the represented attribute.- Specified by:
getJavaTypein interfaceAttribute<D,J> - Returns:
- Java type
-
getSqmPathType
-
getAttributeJavaType
- Specified by:
getAttributeJavaTypein interfacePersistentAttribute<D,J>
-
getDeclaringType
Description copied from interface:AttributeReturn the managed type representing the type in which the attribute was declared.- Specified by:
getDeclaringTypein interfaceAttribute<D,J> - Specified by:
getDeclaringTypein interfacePersistentAttribute<D,J> - Returns:
- declaring type
-
getJavaMember
Description copied from interface:AttributeReturn thejava.lang.reflect.Memberfor the represented attribute.- Specified by:
getJavaMemberin interfaceAttribute<D,J> - Returns:
- corresponding
java.lang.reflect.Member
-
getAttributeClassification
Description copied from interface:PersistentAttributeThe classification of the attribute (is it a basic type, entity, etc)- Specified by:
getAttributeClassificationin interfacePersistentAttribute<D,J>
-
getPersistentAttributeType
Description copied from interface:AttributeReturn the persistent attribute type for the attribute.- Specified by:
getPersistentAttributeTypein interfaceAttribute<D,J> - Returns:
- persistent attribute type
-
getValueGraphType
- Specified by:
getValueGraphTypein interfacePersistentAttribute<D,J>
-
toString
-
writeReplace
- Throws:
ObjectStreamException
-