X - The represented type that contains the attributeT - The type of the represented attributepublic abstract class AttributeImpl<X,T> extends Object implements jakarta.persistence.metamodel.Attribute<X,T>, Serializable
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
Attribute,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
AttributeImpl(ManagedTypeImpl<X> managedType,
DatabaseMapping mapping)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
jakarta.persistence.metamodel.ManagedType<X> |
getDeclaringType()
Return the managed type representing the type in which
the attribute was declared.
|
protected ClassDescriptor |
getDescriptor()
INTERNAL:
Return the Descriptor associated with this attribute
|
Member |
getJavaMember()
Return the java.lang.reflect.Member for the represented attribute.
|
abstract Class<T> |
getJavaType()
Return the Java type of the represented attribute.
|
ManagedTypeImpl<X> |
getManagedTypeImpl()
INTERNAL:
Return the managed type representing the type in which the member was
declared.
|
DatabaseMapping |
getMapping()
INTERNAL:
Return the databaseMapping that represents the type
|
protected MetamodelImpl |
getMetamodel()
INTERNAL:
Return the concrete metamodel that this attribute is associated with.
|
String |
getName()
Return the name of the attribute.
|
jakarta.persistence.metamodel.Attribute.PersistentAttributeType |
getPersistentAttributeType()
Return the persistent attribute type for the attribute.
|
boolean |
isAssociation()
Is the attribute an association.
|
boolean |
isCollection()
Is the attribute collection-valued.
|
abstract boolean |
isPlural()
INTERNAL:
Return whether the attribute is plural or singular
|
protected AttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping)
managedType - mapping - public jakarta.persistence.metamodel.ManagedType<X> getDeclaringType()
protected ClassDescriptor getDescriptor()
public Member getJavaMember()
public abstract Class<T> getJavaType()
public ManagedTypeImpl<X> getManagedTypeImpl()
public DatabaseMapping getMapping()
protected MetamodelImpl getMetamodel()
public String getName()
public jakarta.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
public boolean isAssociation()
public boolean isCollection()
isCollection in interface jakarta.persistence.metamodel.Attribute<X,T>This will be true for the mappings CollectionMapping, AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping and their subclasses
public abstract boolean isPlural()
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.