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 JPAAttributehierarchy.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeClassificationgetAttributeClassification()The classification of the attribute (is it a basic type, entity, etc)JavaType<J>getAttributeJavaType()ManagedDomainType<D>getDeclaringType()MembergetJavaMember()Class<J>getJavaType()StringgetName()Attribute.PersistentAttributeTypegetPersistentAttributeType()DomainType<B>getSqmPathType()DomainType<?>getValueGraphType()StringtoString()protected ObjectwriteReplace()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.persistence.metamodel.Attribute
isAssociation, isCollection
-
Methods inherited from interface org.hibernate.metamodel.model.domain.PersistentAttribute
getKeyGraphType
-
-
-
-
Constructor Detail
-
AbstractAttribute
protected AbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext)
-
-
Method Detail
-
getSqmPathType
public DomainType<B> getSqmPathType()
-
getAttributeJavaType
public JavaType<J> getAttributeJavaType()
- Specified by:
getAttributeJavaTypein interfacePersistentAttribute<D,J>
-
getDeclaringType
public ManagedDomainType<D> getDeclaringType()
- Specified by:
getDeclaringTypein interfaceAttribute<D,J>- Specified by:
getDeclaringTypein interfacePersistentAttribute<D,J>
-
getJavaMember
public Member getJavaMember()
- Specified by:
getJavaMemberin interfaceAttribute<D,J>
-
getAttributeClassification
public AttributeClassification getAttributeClassification()
Description copied from interface:PersistentAttributeThe classification of the attribute (is it a basic type, entity, etc)- Specified by:
getAttributeClassificationin interfacePersistentAttribute<D,J>
-
getPersistentAttributeType
public Attribute.PersistentAttributeType getPersistentAttributeType()
- Specified by:
getPersistentAttributeTypein interfaceAttribute<D,J>
-
getValueGraphType
public DomainType<?> getValueGraphType()
- Specified by:
getValueGraphTypein interfacePersistentAttribute<D,J>
-
writeReplace
protected Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-