X - The represented entity typepublic class MappedSuperclassTypeImpl<X> extends IdentifiableTypeImpl<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.
javax.persistence.metamodel.MappedSuperclassType,
Serialized Formdescriptor, metamodel| Modifier | Constructor and Description |
|---|---|
protected |
MappedSuperclassTypeImpl(MetamodelImpl metamodel,
ClassDescriptor relationalDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInheritingType(IdentifiableTypeImpl 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)
INTERNAL:
Return an instance of a MappedSuperclassType based on the RelationalDescriptor.
|
AttributeImpl |
getMemberFromInheritingType(java.lang.String name)
INTERNAL:
MappedSuperclasses need special handling to get their type from an inheriting subclass.
|
javax.persistence.metamodel.Type.PersistenceType |
getPersistenceType()
Return the persistence type.
|
protected void |
initialize()
INTERNAL:
Initialize the members of this ManagedType based on the mappings defined on the descriptor.
|
boolean |
isEntity()
INTERNAL:
Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
|
boolean |
isMappedSuperclass()
INTERNAL:
Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
|
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute, initializeIdAttributes, isIdentifiableType, setSupertypegetAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getDescriptor, getList, getList, getMap, getMap, getMembers, getMetamodel, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getTypeClassFromAttributeOrMethodLevelAccessor, isManagedType, toStringHelpergetJavaType, getJavaType, getJavaTypeName, toStringprotected MappedSuperclassTypeImpl(MetamodelImpl metamodel, ClassDescriptor relationalDescriptor)
protected void addInheritingType(IdentifiableTypeImpl identifiableType)
identifiableType - protected static MappedSuperclassTypeImpl<?> create(MetamodelImpl metamodel, ClassDescriptor relationalDescriptor)
metamodel - relationalDescriptor - public AttributeImpl getMemberFromInheritingType(java.lang.String name)
name - public javax.persistence.metamodel.Type.PersistenceType getPersistenceType()
protected void initialize()
ManagedTypeImplInitialization should occur after all types in the metamodel have been created already.
initialize in class ManagedTypeImpl<X>public boolean isEntity()
public boolean isMappedSuperclass()
isMappedSuperclass in class TypeImpl<X>