MetamodelImpl.
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.
| Modifier and Type | Field and Description |
|---|---|
| private final AttributeFactory | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private final boolean | |
| private Set | |
| private static final EntityManagerMessageLogger | |
| private Map | |
| private Map | |
| private List | |
| private final Set | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private List | stackOfPersistentClassesBeingProcessed
Stack of PersistentClass being processed. |
| Access | Constructor and Description |
|---|---|
| public | MetadataContext(SessionFactoryImplementor sessionFactory, Set<MappedSuperclass> mappedSuperclasses, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private <X> void | |
| private <X> void | |
| private <X> void | |
| private <X> void | applyVersionAttribute(MappedSuperclass mappingType, MappedSuperclassTypeDescriptor<X> jpaMappingType)
|
| private <X> Set | buildIdClassAttributes(IdentifiableTypeDescriptor<X> ownerType, Iterator<Property> propertyIterator)
|
| public Set | |
| public Map | |
| public Map | |
| private PersistentClass | |
| public Map | |
| public PersistentClass | |
| pack-priv SessionFactoryImplementor | |
| public Set | |
| pack-priv boolean | |
| public <J> EmbeddedTypeDescriptor | |
| public EntityTypeDescriptor | Returns: Tne corresponding JPAorg., or null if not yet processed.The Hibernate (config time) metamodel instance representing an entity. persistentClass)Given a Hibernate |
| public EntityTypeDescriptor | Returns: The corresponding JPAorg., or null.The java class. javaType)Given a Java |
| public <E> EntityTypeDescriptor | Returns: The corresponding JPAorg., or null.The entity-name. entityName)Given an entity-name, locate the corresponding JPA |
| public MappedSuperclassTypeDescriptor | |
| public void | |
| private <X> void | |
| public void | |
| private <X> void | |
| private <X> void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | registerMappedSuperclassType(MappedSuperclass mappedSuperclass, MappedSuperclassTypeDescriptor<?> mappedSuperclassType)
|
| public void |
| attributeFactory | back to summary |
|---|---|
| private final AttributeFactory attributeFactory | |
| componentByEmbeddable | back to summary |
|---|---|
| private Map<EmbeddedTypeDescriptor<?>, CompositeType> componentByEmbeddable | |
| embeddablesToProcess | back to summary |
|---|---|
| private Map<Class<T>, List<EmbeddedTypeDescriptor<?>>> embeddablesToProcess | |
| entityTypes | back to summary |
|---|---|
| private Map<Class<?>, EntityTypeDescriptor<?>> entityTypes | |
| entityTypesByEntityName | back to summary |
|---|---|
| private Map<String, EntityTypeDescriptor<?>> entityTypesByEntityName | |
| entityTypesByPersistentClass | back to summary |
|---|---|
| private Map<PersistentClass, EntityTypeDescriptor<?>> entityTypesByPersistentClass | |
| ignoreUnsupported | back to summary |
|---|---|
| private final boolean ignoreUnsupported | |
| knownMappedSuperclasses | back to summary |
|---|---|
| private Set<MappedSuperclass> knownMappedSuperclasses | |
| LOG | back to summary |
|---|---|
| private static final EntityManagerMessageLogger LOG | |
| mappedSuperclassByMappedSuperclassMapping | back to summary |
|---|---|
| private Map<MappedSuperclass, MappedSuperclassTypeDescriptor<?>> mappedSuperclassByMappedSuperclassMapping | |
| mappedSuperClassTypeToPersistentClass | back to summary |
|---|---|
| private Map<MappedSuperclassTypeDescriptor<?>, PersistentClass> mappedSuperClassTypeToPersistentClass | |
| orderedMappings | back to summary |
|---|---|
| private List<Object> orderedMappings | |
| processedMetamodelClasses | back to summary |
|---|---|
| private final Set<Class<T>> processedMetamodelClasses | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of | |
| stackOfPersistentClassesBeingProcessed | back to summary |
|---|---|
| private List<PersistentClass> stackOfPersistentClassesBeingProcessed Stack of PersistentClass being processed. Last in the list is the highest in the stack. | |
| MetadataContext | back to summary |
|---|---|
| public MetadataContext(SessionFactoryImplementor sessionFactory, Set<MappedSuperclass> mappedSuperclasses, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting)
Deprecated as a consequence of | |
| applyIdMetadata | back to summary |
|---|---|
private <X> void applyIdMetadata(PersistentClass persistentClass, IdentifiableTypeDescriptor<?> identifiableType)
| |
| applyIdMetadata | back to summary |
|---|---|
| private <X> void applyIdMetadata(MappedSuperclass mappingType, MappedSuperclassTypeDescriptor<X> jpaMappingType) | |
| applyVersionAttribute | back to summary |
|---|---|
| private <X> void applyVersionAttribute(PersistentClass persistentClass, EntityTypeDescriptor<X> jpaEntityType) | |
| applyVersionAttribute | back to summary |
|---|---|
| private <X> void applyVersionAttribute(MappedSuperclass mappingType, MappedSuperclassTypeDescriptor<X> jpaMappingType) | |
| buildIdClassAttributes | back to summary |
|---|---|
| private <X> Set | |
| getEmbeddableTypeSet | back to summary |
|---|---|
| public Set | |
| getEntityTypeMap | back to summary |
|---|---|
| public Map Retrieves the java type to
| |
| getEntityTypesByEntityName | back to summary |
|---|---|
| public Map | |
| getEntityWorkedOn | back to summary |
|---|---|
| private PersistentClass getEntityWorkedOn() | |
| getMappedSuperclassTypeMap | back to summary |
|---|---|
| public Map | |
| getPersistentClassHostingProperties | back to summary |
|---|---|
| public PersistentClass getPersistentClassHostingProperties(MappedSuperclassTypeImpl<?> mappedSuperclassType) | |
| getSessionFactory | back to summary |
|---|---|
| pack-priv SessionFactoryImplementor getSessionFactory()
Deprecated as a consequence of | |
| getUnusedMappedSuperclasses | back to summary |
|---|---|
| public Set | |
| isIgnoreUnsupported | back to summary |
|---|---|
| pack-priv boolean isIgnoreUnsupported() | |
| locateEmbeddable | back to summary |
|---|---|
| public <J> EmbeddedTypeDescriptor | |
| locateEntityType | back to summary |
|---|---|
| public EntityTypeDescriptor Given a Hibernate
| |
| locateEntityType | back to summary |
|---|---|
| public EntityTypeDescriptor Given a Java
| |
| locateEntityType | back to summary |
|---|---|
| public <E> EntityTypeDescriptor Given an entity-name, locate the corresponding JPA
| |
| locateMappedSuperclassType | back to summary |
|---|---|
| public MappedSuperclassTypeDescriptor | |
| popEntityWorkedOn | back to summary |
|---|---|
| public void popEntityWorkedOn(PersistentClass persistentClass) | |
| populateStaticMetamodel | back to summary |
|---|---|
| private <X> void populateStaticMetamodel(ManagedTypeDescriptor<X> managedType) | |
| pushEntityWorkedOn | back to summary |
|---|---|
| public void pushEntityWorkedOn(PersistentClass persistentClass) | |
| registerAttribute | back to summary |
|---|---|
| private <X> void registerAttribute(Class<T> metamodelClass, Attribute<X, ?> attribute) | |
| registerAttributes | back to summary |
|---|---|
| private <X> void registerAttributes(Class<T> metamodelClass, ManagedTypeDescriptor<X> managedType) | |
| registerEmbeddableType | back to summary |
|---|---|
| pack-priv void registerEmbeddableType(EmbeddedTypeDescriptor<?> embeddableType, CompositeType component) | |
| registerEntityType | back to summary |
|---|---|
| pack-priv void registerEntityType(PersistentClass persistentClass, EntityTypeImpl<?> entityType) | |
| registerMappedSuperclassType | back to summary |
|---|---|
| pack-priv void registerMappedSuperclassType(MappedSuperclass mappedSuperclass, MappedSuperclassTypeDescriptor<?> mappedSuperclassType) | |
| wrapUp | back to summary |
|---|---|
public void wrapUp()
| |