Module org.eclipse.persistence.jpa
Class AttributeImpl<X,T>
java.lang.Object
org.eclipse.persistence.internal.jpa.metamodel.AttributeImpl<X,T>
- Type Parameters:
X
- The represented type that contains the attributeT
- The type of the represented attribute
- All Implemented Interfaces:
Attribute<X,
,T> Serializable
- Direct Known Subclasses:
PluralAttributeImpl
,SingularAttributeImpl
Purpose: Provides the implementation for the Attribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: An attribute of a Java type
- Since:
- EclipseLink 1.2 - JPA 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
-
Constructor Summary
ModifierConstructorDescriptionprotected
AttributeImpl
(ManagedTypeImpl<X> managedType, DatabaseMapping mapping) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionReturn the managed type representing the type in which the attribute was declared.protected ClassDescriptor
INTERNAL: Return the Descriptor associated with this attributeReturn the java.lang.reflect.Member for the represented attribute.Return the Java type of the represented attribute.INTERNAL: Return the managed type representing the type in which the member was declared.INTERNAL: Return the databaseMapping that represents the typeprotected MetamodelImpl
INTERNAL: Return the concrete metamodel that this attribute is associated with.getName()
Return the name of the attribute.Return the persistent attribute type for the attribute.boolean
Is the attribute an association.boolean
Is the attribute collection-valued.abstract boolean
isPlural()
INTERNAL: Return whether the attribute is plural or singular
-
Constructor Details
-
AttributeImpl
INTERNAL:
-
-
Method Details
-
getDeclaringType
Return the managed type representing the type in which the attribute was declared.- Specified by:
getDeclaringType
in interfaceAttribute<X,
T> - Returns:
- declaring type
-
getDescriptor
INTERNAL: Return the Descriptor associated with this attribute -
getJavaMember
Return the java.lang.reflect.Member for the represented attribute. In the case of property access the get method will be returned- Specified by:
getJavaMember
in interfaceAttribute<X,
T> - Returns:
- corresponding java.lang.reflect.Member
-
getJavaType
Return the Java type of the represented attribute.- Specified by:
getJavaType
in interfaceAttribute<X,
T> - Returns:
- Java type
-
getManagedTypeImpl
INTERNAL: Return the managed type representing the type in which the member was declared. -
getMapping
INTERNAL: Return the databaseMapping that represents the type -
getMetamodel
INTERNAL: Return the concrete metamodel that this attribute is associated with.- Returns:
- MetamodelImpl
-
getName
Return the name of the attribute. -
getPersistentAttributeType
Return the persistent attribute type for the attribute.- Specified by:
getPersistentAttributeType
in interfaceAttribute<X,
T> - Returns:
- persistent attribute type
-
isAssociation
public boolean isAssociation()Is the attribute an association.- Specified by:
isAssociation
in interfaceAttribute<X,
T> - Returns:
- whether boolean indicating whether attribute corresponds to an association
-
isCollection
public boolean isCollection()Is the attribute collection-valued.- Specified by:
isCollection
in interfaceAttribute<X,
T> - Returns:
- boolean indicating whether attribute is
collection-valued.
This will be true for the mappings CollectionMapping, AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping and their subclasses
-
isPlural
public abstract boolean isPlural()INTERNAL: Return whether the attribute is plural or singular
-