MappingMetamodelImpl.
This contextual information includes data needing to be processed in a second pass as well as cross-references into the built metamodel classes.
At the end of the day, clients are interested in the getEntityTypeMap and getEmbeddableTypeSet
results, which represent all the registered entities and
embeddables respectively.
| Access | Constructor and Description |
|---|---|
| public | MetadataContext(JpaMetamodelImplementor jpaMetamodel, MappingMetamodel mappingMetamodel, MetadataImplementor bootMetamodel, JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting, RuntimeModelCreationContext runtimeModelCreationContext)
Deprecated
as a consequence of
MetadataImplementor and RuntimeModelCreationContext being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private <X> void | |
| private EmbeddableTypeImpl | |
| private void | |
| private <X> void | |
| private <X> void | |
| private <X> void | |
| private <X> PersistentAttribute | buildAttribute(Property property, IdentifiableDomainType<X> entityType, BiFunction<IdentifiableDomainType<X>, Property, PersistentAttribute<X, ?>> factoryFunction)
|
| private <X> Set | |
| public Component | |
| public Set | |
| public Map | |
| private PersistentClass | |
| public Map | |
| public JavaTypeRegistry | |
| public JpaMetamodelImplementor | |
| private MappedSuperclass | |
| private MappedSuperclass | |
| private Property | |
| public Map | |
| pack-priv MappingMetamodel | |
| public PersistentClass | |
| public RuntimeModelCreationContext | getRuntimeModelCreationContext()
Deprecated
as a consequence of
RuntimeModelCreationContext being deprecated.
|
| public TypeConfiguration | |
| public Set | |
| private static <X> void | injectField(Class<?> metamodelClass, String name, Object model, boolean allowNonDeclaredFieldReference)
|
| public <J> EmbeddableDomainType | |
| public EntityDomainType | Returns: Tne corresponding JPAorg., or null if not yet processed.The Hibernate (config time) metamodel instance representing an entity. persistentClass)Given a Hibernate |
| public EntityDomainType | Returns: The corresponding JPAorg., or null.The java class. javaType)Given a Java |
| public <E> IdentifiableDomainType | Returns: The corresponding JPAorg., or null.The entity-name. entityName)Given an entity-name, locate the corresponding JPA |
| public MappedSuperclassDomainType | |
| public void | |
| private <X> void | |
| public void | |
| private <X> void | |
| private <X> void | |
| public void | |
| public void | |
| public void | |
| public void | registerMappedSuperclassType(MappedSuperclass mappedSuperclass, MappedSuperclassDomainType<?> mappedSuperclassType)
|
| public <J> BasicDomainType | |
| public void |
| attributeFactory | back to summary |
|---|---|
| private final AttributeFactory attributeFactory | |
| basicDomainTypeMap | back to summary |
|---|---|
| private final Map<Class<?>, BasicDomainType<?>> basicDomainTypeMap | |
| componentByEmbeddable | back to summary |
|---|---|
| private final Map<EmbeddableDomainType<?>, Component> componentByEmbeddable | |
| embeddables | back to summary |
|---|---|
| private final Map<Class<?>, EmbeddableDomainType<?>> embeddables | |
| embeddablesToProcess | back to summary |
|---|---|
| private final Map<Class<?>, List<EmbeddableDomainType<?>>> embeddablesToProcess | |
| entityTypes | back to summary |
|---|---|
| private final Map<Class<?>, EntityDomainType<?>> entityTypes | |
| entityTypesByPersistentClass | back to summary |
|---|---|
| private final Map<PersistentClass, EntityDomainType<?>> entityTypesByPersistentClass | |
| identifiableTypesByName | back to summary |
|---|---|
| private final Map<String, IdentifiableDomainType<?>> identifiableTypesByName | |
| jpaMetamodel | back to summary |
|---|---|
| private final JpaMetamodelImplementor jpaMetamodel | |
| jpaMetaModelPopulationSetting | back to summary |
|---|---|
| private final JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting | |
| jpaStaticMetaModelPopulationSetting | back to summary |
|---|---|
| private final JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting | |
| knownMappedSuperclasses | back to summary |
|---|---|
| private final Set<MappedSuperclass> knownMappedSuperclasses | |
| LOG | back to summary |
|---|---|
| private static final EntityManagerMessageLogger LOG | |
| mappedSuperclassByMappedSuperclassMapping | back to summary |
|---|---|
| private final Map<MappedSuperclass, MappedSuperclassDomainType<?>> mappedSuperclassByMappedSuperclassMapping | |
| mappedSuperClassTypeToPersistentClass | back to summary |
|---|---|
| private final Map<MappedSuperclassDomainType<?>, PersistentClass> mappedSuperClassTypeToPersistentClass | |
| metamodel | back to summary |
|---|---|
| private final MappingMetamodel metamodel | |
| orderedMappings | back to summary |
|---|---|
| private final List<Object> orderedMappings | |
| processedMetamodelClasses | back to summary |
|---|---|
| private final Set<Class<?>> processedMetamodelClasses | |
| runtimeModelCreationContext | back to summary |
|---|---|
| private final RuntimeModelCreationContext runtimeModelCreationContext
Deprecated as a consequence of | |
| stackOfPersistentClassesBeingProcessed | back to summary |
|---|---|
| private final List<PersistentClass> stackOfPersistentClassesBeingProcessed Stack of PersistentClass being processed. Last in the list is the highest in the stack. | |
| typeConfiguration | back to summary |
|---|---|
| private final TypeConfiguration typeConfiguration | |
| MetadataContext | back to summary |
|---|---|
| public MetadataContext(JpaMetamodelImplementor jpaMetamodel, MappingMetamodel mappingMetamodel, MetadataImplementor bootMetamodel, JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting, RuntimeModelCreationContext runtimeModelCreationContext)
Deprecated as a consequence of | |
| addAttribute | back to summary |
|---|---|
| private void addAttribute(ManagedDomainType<?> type, PersistentAttribute<Object, ?> attribute) | |
| applyGenericProperties | back to summary |
|---|---|
| private <X> void applyGenericProperties(PersistentClass persistentClass, EntityDomainType<X> entityType) | |
| applyIdClassMetadata | back to summary |
|---|---|
| private EmbeddableTypeImpl | |
| applyIdMetadata | back to summary |
|---|---|
| private void applyIdMetadata(PersistentClass persistentClass, IdentifiableDomainType<?> identifiableType) | |
| applyIdMetadata | back to summary |
|---|---|
| private <X> void applyIdMetadata(MappedSuperclass mappingType, MappedSuperclassDomainType<X> jpaMappingType) | |
| applyVersionAttribute | back to summary |
|---|---|
| private <X> void applyVersionAttribute(PersistentClass persistentClass, EntityDomainType<X> jpaEntityType) | |
| applyVersionAttribute | back to summary |
|---|---|
| private <X> void applyVersionAttribute(MappedSuperclass mappingType, MappedSuperclassDomainType<X> jpaMappingType) | |
| buildAttribute | back to summary |
|---|---|
| private <X> PersistentAttribute | |
| buildIdClassAttributes | back to summary |
|---|---|
| private <X> Set | |
| getEmbeddableBootDescriptor | back to summary |
|---|---|
| public Component getEmbeddableBootDescriptor(EmbeddableDomainType<?> embeddableType) | |
| getEmbeddableTypeSet | back to summary |
|---|---|
| public Set | |
| getEntityTypeMap | back to summary |
|---|---|
| public Map Retrieves the java type to
| |
| getEntityWorkedOn | back to summary |
|---|---|
| private PersistentClass getEntityWorkedOn() | |
| getIdentifiableTypesByName | back to summary |
|---|---|
| public Map | |
| getJavaTypeRegistry | back to summary |
|---|---|
| public JavaTypeRegistry getJavaTypeRegistry() | |
| getJpaMetamodel | back to summary |
|---|---|
| public JpaMetamodelImplementor getJpaMetamodel() | |
| getMappedSuperclass | back to summary |
|---|---|
| private MappedSuperclass getMappedSuperclass(PersistentClass persistentClass) | |
| getMappedSuperclass | back to summary |
|---|---|
| private MappedSuperclass getMappedSuperclass(MappedSuperclass mappedSuperclass) | |
| getMappedSuperclassIdentifier | back to summary |
|---|---|
| private Property getMappedSuperclassIdentifier(PersistentClass persistentClass) | |
| getMappedSuperclassTypeMap | back to summary |
|---|---|
| public Map | |
| getMetamodel | back to summary |
|---|---|
| pack-priv MappingMetamodel getMetamodel() | |
| getPersistentClassHostingProperties | back to summary |
|---|---|
| public PersistentClass getPersistentClassHostingProperties(MappedSuperclassTypeImpl<?> mappedSuperclassType) | |
| getRuntimeModelCreationContext | back to summary |
|---|---|
| public RuntimeModelCreationContext getRuntimeModelCreationContext()
Deprecated as a consequence of | |
| getTypeConfiguration | back to summary |
|---|---|
| public TypeConfiguration getTypeConfiguration() | |
| getUnusedMappedSuperclasses | back to summary |
|---|---|
| public Set | |
| injectField | back to summary |
|---|---|
| private static <X> void injectField(Class<?> metamodelClass, String name, Object model, boolean allowNonDeclaredFieldReference) throws NoSuchFieldException | |
| locateEmbeddable | back to summary |
|---|---|
| public <J> EmbeddableDomainType | |
| locateEntityType | back to summary |
|---|---|
| public EntityDomainType Given a Hibernate
| |
| locateEntityType | back to summary |
|---|---|
| public EntityDomainType Given a Java
| |
| locateIdentifiableType | back to summary |
|---|---|
| public <E> IdentifiableDomainType Given an entity-name, locate the corresponding JPA
| |
| locateMappedSuperclassType | back to summary |
|---|---|
| public MappedSuperclassDomainType | |
| popEntityWorkedOn | back to summary |
|---|---|
| public void popEntityWorkedOn(PersistentClass persistentClass) | |
| populateStaticMetamodel | back to summary |
|---|---|
| private <X> void populateStaticMetamodel(ManagedDomainType<X> managedType) | |
| pushEntityWorkedOn | back to summary |
|---|---|
| public void pushEntityWorkedOn(PersistentClass persistentClass) | |
| registerAttribute | back to summary |
|---|---|
| private <X> void registerAttribute(Class<?> metamodelClass, Attribute<X, ?> attribute) | |
| registerAttributes | back to summary |
|---|---|
| private <X> void registerAttributes(Class<?> metamodelClass, ManagedDomainType<X> managedType) | |
| registerComponentByEmbeddable | back to summary |
|---|---|
| public void registerComponentByEmbeddable(EmbeddableDomainType<?> embeddableType, Component bootDescriptor) | |
| registerEmbeddableType | back to summary |
|---|---|
| public void registerEmbeddableType(EmbeddableDomainType<?> embeddableType, Component bootDescriptor) | |
| registerEntityType | back to summary |
|---|---|
| public void registerEntityType(PersistentClass persistentClass, EntityTypeImpl<?> entityType) | |
| registerMappedSuperclassType | back to summary |
|---|---|
| public void registerMappedSuperclassType(MappedSuperclass mappedSuperclass, MappedSuperclassDomainType<?> mappedSuperclassType) | |
| resolveBasicType | back to summary |
|---|---|
| public <J> BasicDomainType | |
| wrapUp | back to summary |
|---|---|
public void wrapUp()
| |