Purpose: Provides the implementation for the MappedSuperclassType interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type MappedSuperclassType represent mapped superclass types.
jakarta.persistence.metamodel.MappedSuperclassType
| Modifier and Type | Field and Description |
|---|---|
| private Map | inheritingIdentifiableTypes
INTERNAL: The map of Identifiable types that inherit from this MappedSuperclass. |
| private static final long | serialVersionUID
Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addInheritingType(IdentifiableTypeImpl<X> identifiableType)
INTERNAL: Add an inheriting subclass to the map of Identifiable types that inherit from this mappedSuperclass. |
| protected static MappedSuperclassTypeImpl | create(MetamodelImpl metamodel, ClassDescriptor relationalDescriptor)
Hides org. |
| public AttributeImpl | getMemberFromInheritingType(String name)
INTERNAL: MappedSuperclasses need special handling to get their type from an inheriting subclass. |
| public Type. | Returns: persistence typeImplements jakarta. |
| protected void | initialize()
Overrides org. |
| public boolean | isEntity()
Implements abstract org. |
| public boolean | isMappedSuperclass()
Implements abstract org. |
| inheritingIdentifiableTypes | back to summary |
|---|---|
| private Map<Class<?>, IdentifiableTypeImpl<X>> inheritingIdentifiableTypes INTERNAL: The map of Identifiable types that inherit from this MappedSuperclass. The scope of this map is outside of the JPA 2.0 specification and is limited to MappedSuperclass types. The types in this map are keyed on the Java class of the inheriting type. This map acts as the reverse of all superType fields that point to "this" MappedSuperclass. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Item 54: DI 89: explicit UID will avoid performance hit runtime generation of one | |
| MappedSuperclassTypeImpl | back to summary |
|---|---|
| protected MappedSuperclassTypeImpl(MetamodelImpl metamodel, ClassDescriptor relationalDescriptor) | |
| addInheritingType | back to summary |
|---|---|
| protected void addInheritingType(IdentifiableTypeImpl<X> identifiableType) INTERNAL: Add an inheriting subclass to the map of Identifiable types that inherit from this mappedSuperclass. | |
| create | back to summary |
|---|---|
| protected static MappedSuperclassTypeImpl Hides org. INTERNAL: Return an instance of a MappedSuperclassType based on the RelationalDescriptor. | |
| getMemberFromInheritingType | back to summary |
|---|---|
| public AttributeImpl INTERNAL: MappedSuperclasses need special handling to get their type from an inheriting subclass. This function determines the type for an attribute by returning the same inherited attribute from a subclass | |
| getPersistenceType | back to summary |
|---|---|
| public Type. Implements jakarta. Return the persistence type.
| |
| initialize | back to summary |
|---|---|
| protected void initialize() Overrides org. Doc from org. INTERNAL: Initialize the members of this ManagedType based on the mappings defined on the descriptor. We process the appropriate Map, List, Set, Collection or Object/primitive types. Initialization should occur after all types in the metamodel have been created already.
| |
| isEntity | back to summary |
|---|---|
| public boolean isEntity() Implements abstract org. INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
| |
| isMappedSuperclass | back to summary |
|---|---|
| public boolean isMappedSuperclass() Implements abstract org. INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
| |