Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metamodel.proxy

public Class AttributeProxyImpl<X, T>

extends Object
implements Attribute<X, T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, jakarta.persistence.metamodel.Attribute
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.metamodel.proxy.PluralAttributeProxyImpl, org.eclipse.persistence.internal.jpa.metamodel.proxy.SingularAttributeProxyImpl
Imports
java.io.Serializable, java.lang.ref.WeakReference, java.lang.reflect.Member, java.util.HashSet, .Set, jakarta.persistence.metamodel.Attribute, .ManagedType, org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl

A proxy class that allows EclipseLink to trigger the deployment of a persistence unit as an Attribute is accessed in the metamodel.
Author
tware

Field Summary

Modifier and TypeField and Description
protected Attribute<X, T>
protected transient Set<WeakReference<EntityManagerFactoryImpl>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
public synchronized Attribute<X, T>
public synchronized Attribute<X, T>
public ManagedType<X>
getDeclaringType()

Implements jakarta.persistence.metamodel.Attribute.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<T>
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 boolean
isAssociation()

Implements jakarta.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.
public boolean
isCollection()

Implements jakarta.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).
public synchronized void
setAttribute(Attribute<X, T> attribute)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeback to summary
protected Attribute<X, T> attribute
factoriesback to summary
protected transient Set<WeakReference<EntityManagerFactoryImpl>> factories

Constructor Detail

AttributeProxyImplback to summary
public AttributeProxyImpl()

Method Detail

addFactoryback to summary
public synchronized void addFactory(EntityManagerFactoryImpl factory)
getAttributeback to summary
public synchronized Attribute<X, T> getAttribute()
getAttributeInternalback to summary
public synchronized Attribute<X, T> getAttributeInternal()
getDeclaringTypeback to summary
public ManagedType<X> getDeclaringType()

Implements jakarta.persistence.metamodel.Attribute.getDeclaringType.

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

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

Returns:ManagedType<X>

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<T> getJavaType()

Implements jakarta.persistence.metamodel.Attribute.getJavaType.

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

Return the Java type of the represented attribute.

Returns:Class<T>

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
isAssociationback to summary
public boolean isAssociation()

Implements jakarta.persistence.metamodel.Attribute.isAssociation.

Doc from jakarta.persistence.metamodel.Attribute.isAssociation.

Is the attribute an association.

Returns:boolean

boolean indicating whether the attribute corresponds to an association

Annotations
@Override
isCollectionback to summary
public boolean isCollection()

Implements jakarta.persistence.metamodel.Attribute.isCollection.

Doc from jakarta.persistence.metamodel.Attribute.isCollection.

Is the attribute collection-valued (represents a Collection, Set, List, or Map).

Returns:boolean

boolean indicating whether the attribute is collection-valued

Annotations
@Override
setAttributeback to summary
public synchronized void setAttribute(Attribute<X, T> attribute)