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

public abstract Class AbstractAttribute<D, J>

extends Object
implements PersistentAttributeDescriptor<D, J>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor, org.hibernate.metamodel.model.domain.PersistentAttribute, javax.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.IOException, .ObjectInputStream, .ObjectOutputStream, .Serializable, java.lang.reflect.Member, .Method, javax.persistence.metamodel.Attribute, org.hibernate.internal.util.ReflectHelper, org.hibernate.metamodel.model.domain.spi.ManagedTypeDescriptor, .PersistentAttributeDescriptor, .SimpleTypeDescriptor

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

Field Summary

Modifier and TypeField and Description
private final Attribute.PersistentAttributeType
private final ManagedTypeDescriptor<D>
private transient Member
private final String
private final SimpleTypeDescriptor<?>

Constructor Summary

AccessConstructor and Description
protected
AbstractAttribute(ManagedTypeDescriptor<D> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<?> valueType, Member member)

Method Summary

Modifier and TypeMethod and Description
public ManagedTypeDescriptor<D>
getDeclaringType()

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getDeclaringType.

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

Implements javax.persistence.metamodel.Attribute.getJavaMember.

Return the java.lang.reflect.Member for the represented attribute.
public String
getName()

Implements javax.persistence.metamodel.Attribute.getName.

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

Implements javax.persistence.metamodel.Attribute.getPersistentAttributeType.

Return the persistent attribute type for the attribute.
public SimpleTypeDescriptor<?>
protected void
readObject(ObjectInputStream
The input stream from which we are being read...
ois
)

Used by JDK serialization...

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
protected void
writeObject(ObjectOutputStream
The output stream to which we are being written...
oos
)

Used by JDK serialization...

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributeNatureback to summary
private final Attribute.PersistentAttributeType attributeNature
declaringTypeback to summary
private final ManagedTypeDescriptor<D> declaringType
memberback to summary
private transient Member member
nameback to summary
private final String name
valueTypeback to summary
private final SimpleTypeDescriptor<?> valueType

Constructor Detail

AbstractAttributeback to summary
protected AbstractAttribute(ManagedTypeDescriptor<D> declaringType, String name, Attribute.PersistentAttributeType attributeNature, SimpleTypeDescriptor<?> valueType, Member member)
Annotations
@SuppressWarnings:WeakerAccess

Method Detail

getDeclaringTypeback to summary
public ManagedTypeDescriptor<D> getDeclaringType()

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getDeclaringType.

Doc from javax.persistence.metamodel.Attribute.getDeclaringType.

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

Returns:ManagedTypeDescriptor<D>

declaring type

Annotations
@Override
getJavaMemberback to summary
public Member getJavaMember()

Implements javax.persistence.metamodel.Attribute.getJavaMember.

Doc from javax.persistence.metamodel.Attribute.getJavaMember.

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

Returns:Member

corresponding java.lang.reflect.Member

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.persistence.metamodel.Attribute.getName.

Doc from javax.persistence.metamodel.Attribute.getName.

Return the name of the attribute.

Returns:String

name

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

Implements javax.persistence.metamodel.Attribute.getPersistentAttributeType.

Doc from javax.persistence.metamodel.Attribute.getPersistentAttributeType.

Return the persistent attribute type for the attribute.

Returns:Attribute.PersistentAttributeType

persistent attribute type

Annotations
@Override
getValueGraphTypeback to summary
public SimpleTypeDescriptor<?> getValueGraphType()

Implements org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor.getValueGraphType.

Annotations
@Override
readObjectback to summary
protected void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException

Used by JDK serialization...

Parameters
ois:ObjectInputStream

The input stream from which we are being read...

Annotations
@SuppressWarnings:unchecked
Exceptions
IOException:
Indicates a general IO stream exception
ClassNotFoundException:
Indicates a class resolution issue
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
writeObjectback to summary
protected void writeObject(ObjectOutputStream oos) throws IOException

Used by JDK serialization...

Parameters
oos:ObjectOutputStream

The output stream to which we are being written...

Exceptions
IOException:
Indicates a general IO stream exception