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
jakarta.persistence.metamodel.Attribute
| Modifier and Type | Field and Description |
|---|---|
| private ManagedTypeImpl | managedType
The ManagedType associated with this attribute |
| private DatabaseMapping | mapping
The databaseMapping associated with this attribute |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ManagedType | Returns: declaring typeImplements jakarta. |
| protected ClassDescriptor | |
| public Member | Returns: corresponding java.lang.reflect.MemberImplements jakarta. |
| public abstract Class | Returns: Java typeRedeclares jakarta. |
| public ManagedTypeImpl | getManagedTypeImpl()
INTERNAL: Return the managed type representing the type in which the member was declared. |
| public DatabaseMapping | |
| protected MetamodelImpl | Returns: MetamodelImplINTERNAL: Return the concrete metamodel that this attribute is associated with. |
| public String | Returns: nameImplements jakarta. |
| public Attribute. | Returns: persistent attribute typeImplements jakarta. |
| public boolean | Returns: whether boolean indicating whether attribute corresponds to an associationImplements jakarta. |
| public boolean | Returns: boolean indicating whether attribute is collection-valued.This will be true for the mappings CollectionMapping, AbstractCompositeCollectionMapping, AbstractCompositeDirectCollectionMapping and their subclasses Implements jakarta. |
| public abstract boolean |
| managedType | back to summary |
|---|---|
| private ManagedTypeImpl<X> managedType The ManagedType associated with this attribute | |
| mapping | back to summary |
|---|---|
| private DatabaseMapping mapping The databaseMapping associated with this attribute | |
| AttributeImpl | back to summary |
|---|---|
| protected AttributeImpl(ManagedTypeImpl<X> managedType, DatabaseMapping mapping) INTERNAL: | |
| getDeclaringType | back to summary |
|---|---|
| public ManagedType Implements jakarta. Return the managed type representing the type in which the attribute was declared.
| |
| getDescriptor | back to summary |
|---|---|
| protected ClassDescriptor getDescriptor() INTERNAL: Return the Descriptor associated with this attribute | |
| getJavaMember | back to summary |
|---|---|
| public Member getJavaMember() Implements jakarta. Return the java.lang.reflect.Member for the represented attribute. In the case of property access the get method will be returned | |
| getJavaType | back to summary |
|---|---|
| public abstract Class Redeclares jakarta. Return the Java type of the represented attribute. | |
| getManagedTypeImpl | back to summary |
|---|---|
| public ManagedTypeImpl INTERNAL: Return the managed type representing the type in which the member was declared. | |
| getMapping | back to summary |
|---|---|
| public DatabaseMapping getMapping() INTERNAL: Return the databaseMapping that represents the type | |
| getMetamodel | back to summary |
|---|---|
| protected MetamodelImpl getMetamodel() INTERNAL: Return the concrete metamodel that this attribute is associated with.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Return the name of the attribute. | |
| getPersistentAttributeType | back to summary |
|---|---|
| public Attribute. Implements jakarta. Return the persistent attribute type for the attribute.
| |
| isAssociation | back to summary |
|---|---|
| public boolean isAssociation() Implements jakarta. Is the attribute an association.
| |
| isCollection | back to summary |
|---|---|
| public boolean isCollection() Implements jakarta. Is the attribute collection-valued.
| |
| isPlural | back to summary |
|---|---|
| public abstract boolean isPlural() INTERNAL: Return whether the attribute is plural or singular | |