Top Description Inners Fields Constructors Methods
org.hibernate.metamodel.model.domain.internal

public abstract Class AbstractAttribute<D, J, B>

extends Object
implements PersistentAttribute<D, J>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.metamodel.model.domain.PersistentAttribute, jakarta.persistence.metamodel.Attribute
Known Direct Subclasses
org.hibernate.metamodel.model.domain.internal.AbstractPluralAttribute, org.hibernate.metamodel.model.domain.internal.SingularAttributeImpl
Type Parameters
<D>
The type of the class (D)eclaring this attribute
<J>
The (J)ava type of this attribute
Imports
java.io.ObjectStreamException, .Serializable, java.lang.reflect.Member, jakarta.persistence.metamodel.Attribute, org.hibernate.metamodel.AttributeClassification, org.hibernate.metamodel.internal.MetadataContext, org.hibernate.metamodel.model.domain.DomainType, .ManagedDomainType, .PersistentAttribute, org.hibernate.type.descriptor.java.JavaType

Models the commonality of the JPA Attribute hierarchy.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final AttributeClassification
private final JavaType<J>
private final ManagedDomainType<D>
private transient Member
private final String
private final DomainType<B>

Constructor Summary

AccessConstructor and Description
protected
AbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext)

Method Summary

Modifier and TypeMethod and Description
public AttributeClassification
getAttributeClassification()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getAttributeClassification.

The classification of the attribute (is it a basic type, entity, etc)
public JavaType<J>
public ManagedDomainType<D>
getDeclaringType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getDeclaringType.

Return the managed type representing the type in which the attribute was declared.
public Member
getJavaMember()

Implements jakarta.persistence.metamodel.Attribute.getJavaMember.

Return the java.lang.reflect.Member for the represented attribute.
public Class<J>
getJavaType()

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.
public String
getName()

Implements jakarta.persistence.metamodel.Attribute.getName.

Return the name of the attribute.
public Attribute.PersistentAttributeType
getPersistentAttributeType()

Implements jakarta.persistence.metamodel.Attribute.getPersistentAttributeType.

Return the persistent attribute type for the attribute.
public DomainType<B>
public DomainType<?>
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
protected Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributeClassificationback to summary
private final AttributeClassification attributeClassification
attributeJtdback to summary
private final JavaType<J> attributeJtd
declaringTypeback to summary
private final ManagedDomainType<D> declaringType
memberback to summary
private transient Member member
nameback to summary
private final String name
valueTypeback to summary
private final DomainType<B> valueType

Constructor Detail

AbstractAttributeback to summary
protected AbstractAttribute(ManagedDomainType<D> declaringType, String name, JavaType<J> attributeJtd, AttributeClassification attributeClassification, DomainType<B> valueType, Member member, MetadataContext metadataContext)

Method Detail

getAttributeClassificationback to summary
public AttributeClassification getAttributeClassification()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getAttributeClassification.

Doc from org.hibernate.metamodel.model.domain.PersistentAttribute.getAttributeClassification.

The classification of the attribute (is it a basic type, entity, etc)

Annotations
@Override
getAttributeJavaTypeback to summary
public JavaType<J> getAttributeJavaType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getAttributeJavaType.

Annotations
@Override
getDeclaringTypeback to summary
public ManagedDomainType<D> getDeclaringType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getDeclaringType.

Doc from jakarta.persistence.metamodel.Attribute.getDeclaringType.

Return the managed type representing the type in which the attribute was declared.

Returns:ManagedDomainType<D>

declaring type

Annotations
@Override
getJavaMemberback to summary
public Member getJavaMember()

Implements jakarta.persistence.metamodel.Attribute.getJavaMember.

Doc from jakarta.persistence.metamodel.Attribute.getJavaMember.

Return the java.lang.reflect.Member for the represented attribute.

Returns:Member

corresponding java.lang.reflect.Member

Annotations
@Override
getJavaTypeback to summary
public Class<J> getJavaType()

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

Doc from jakarta.persistence.metamodel.Attribute.getJavaType.

Return the Java type of the represented attribute.

Returns:Class<J>

Java type

Annotations
@Override
getNameback to summary
public String getName()

Implements jakarta.persistence.metamodel.Attribute.getName.

Doc from jakarta.persistence.metamodel.Attribute.getName.

Return the name of the attribute.

Returns:String

name

Annotations
@Override
getPersistentAttributeTypeback to summary
public Attribute.PersistentAttributeType getPersistentAttributeType()

Implements jakarta.persistence.metamodel.Attribute.getPersistentAttributeType.

Doc from jakarta.persistence.metamodel.Attribute.getPersistentAttributeType.

Return the persistent attribute type for the attribute.

Returns:Attribute.PersistentAttributeType

persistent attribute type

Annotations
@Override
getSqmPathTypeback to summary
public DomainType<B> getSqmPathType()
getValueGraphTypeback to summary
public DomainType<?> getValueGraphType()

Implements org.hibernate.metamodel.model.domain.PersistentAttribute.getValueGraphType.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
writeReplaceback to summary
protected Object writeReplace() throws ObjectStreamException
org.hibernate.metamodel.model.domain.internal back to summary

private Class AbstractAttribute.SerialForm

extends Object
implements Serializable
Class Inheritance
  • java.lang.Object
  • org.hibernate.metamodel.model.domain.internal.AbstractAttribute.SerialForm
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final ManagedDomainType<?>
private final String

Constructor Summary

AccessConstructor and Description
public
SerialForm(ManagedDomainType<?> declaringType, String name)

Method Summary

Modifier and TypeMethod and Description
private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

declaringTypeback to summary
private final ManagedDomainType<?> declaringType
nameback to summary
private final String name

Constructor Detail

SerialFormback to summary
public SerialForm(ManagedDomainType<?> declaringType, String name)

Method Detail

readResolveback to summary
private Object readResolve()