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 JPAAttribute
hierarchy.- 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 protected
AbstractAttribute(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 AttributeClassification
getAttributeClassification()
The classification of the attribute (is it a basic type, entity, etc)JavaType<J>
getAttributeJavaType()
ManagedDomainType<D>
getDeclaringType()
Member
getJavaMember()
Class<J>
getJavaType()
String
getName()
Attribute.PersistentAttributeType
getPersistentAttributeType()
DomainType<B>
getSqmPathType()
DomainType<?>
getValueGraphType()
String
toString()
protected Object
writeReplace()
-
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:
getAttributeJavaType
in interfacePersistentAttribute<D,J>
-
getDeclaringType
public ManagedDomainType<D> getDeclaringType()
- Specified by:
getDeclaringType
in interfaceAttribute<D,J>
- Specified by:
getDeclaringType
in interfacePersistentAttribute<D,J>
-
getJavaMember
public Member getJavaMember()
- Specified by:
getJavaMember
in interfaceAttribute<D,J>
-
getAttributeClassification
public AttributeClassification getAttributeClassification()
Description copied from interface:PersistentAttribute
The classification of the attribute (is it a basic type, entity, etc)- Specified by:
getAttributeClassification
in interfacePersistentAttribute<D,J>
-
getPersistentAttributeType
public Attribute.PersistentAttributeType getPersistentAttributeType()
- Specified by:
getPersistentAttributeType
in interfaceAttribute<D,J>
-
getValueGraphType
public DomainType<?> getValueGraphType()
- Specified by:
getValueGraphType
in interfacePersistentAttribute<D,J>
-
writeReplace
protected Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-