Class MappedSuperclassTypeImpl<X>

Type Parameters:
X - The represented entity type
All Implemented Interfaces:
IdentifiableType<X>, ManagedType<X>, MappedSuperclassType<X>, Type<X>, Serializable

public class MappedSuperclassTypeImpl<X> extends IdentifiableTypeImpl<X> implements MappedSuperclassType<X>

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.

Since:
EclipseLink 1.2 - JPA 2.0
See Also:
  • Constructor Details

  • Method Details

    • addInheritingType

      protected void addInheritingType(IdentifiableTypeImpl identifiableType)
      INTERNAL: Add an inheriting subclass to the map of Identifiable types that inherit from this mappedSuperclass.
    • create

      protected static MappedSuperclassTypeImpl<?> create(MetamodelImpl metamodel, ClassDescriptor relationalDescriptor)
      INTERNAL: Return an instance of a MappedSuperclassType based on the RelationalDescriptor.
    • getMemberFromInheritingType

      public AttributeImpl getMemberFromInheritingType(String name)
      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

      public Type.PersistenceType getPersistenceType()
      Return the persistence type.
      Specified by:
      getPersistenceType in interface Type<X>
      Returns:
      persistence type
    • initialize

      protected void initialize()
      Description copied from class: ManagedTypeImpl
      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.

      Overrides:
      initialize in class ManagedTypeImpl<X>
    • isEntity

      public boolean isEntity()
      INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
      Specified by:
      isEntity in class TypeImpl<X>
    • isMappedSuperclass

      public boolean isMappedSuperclass()
      INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
      Specified by:
      isMappedSuperclass in class TypeImpl<X>