Class JpaMetamodelImpl
java.lang.Object
org.hibernate.metamodel.model.domain.internal.JpaMetamodelImpl
- All Implemented Interfaces:
Metamodel
,Serializable
,JpaMetamodel
,JpaMetamodelImplementor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJpaMetamodelImpl
(TypeConfiguration typeConfiguration, MappingMetamodel mappingMetamodel, ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAllowedEnumLiteralsToEnumTypesMap
(Map<String, Set<String>> allowedEnumLiteralsToEnumTypeNames, String enumConstantName, String enumSimpleName, String enumAlternativeName, String enumClassName) <T> void
addNamedEntityGraph
(String graphName, RootGraphImplementor<T> entityGraph) <X> EmbeddableDomainType<X>
embeddable
(Class<X> cls) embeddable
(String embeddableName) Access to an embeddable type from FQN<X> EntityDomainType<X>
Access to an entity supporting Hibernate's entity-name feature<E extends Enum<E>>
EenumValue
(EnumJavaType<E> enumType, String enumValueName) @Nullable EmbeddableDomainType<?>
findEmbeddableType
(@Nullable String embeddableName) Same asJpaMetamodel.embeddable(String)
exceptnull
is returned rather than throwing an exception<X> @Nullable EmbeddableDomainType<X>
findEmbeddableType
(Class<X> cls) Same asJpaMetamodel.embeddable(Class)
exceptnull
is returned rather than throwing an exception<T> RootGraphImplementor<T>
findEntityGraphByName
(String name) <T> List<RootGraphImplementor<? super T>>
findEntityGraphsByJavaType
(Class<T> entityClass) @Nullable EntityDomainType<?>
findEntityType
(@Nullable String entityName) Same asJpaMetamodel.entity(String)
exceptnull
is returned rather than throwing an exception<X> @Nullable EntityDomainType<X>
findEntityType
(Class<X> cls) Same asJpaMetamodel.entity(Class)
exceptnull
is returned rather than throwing an exception<X> @Nullable ManagedDomainType<X>
findManagedType
(@Nullable String typeName) Same asJpaMetamodel.managedType(String)
exceptnull
is returned rather than throwing an exception<X> @Nullable ManagedDomainType<X>
findManagedType
(Class<X> cls) Same asJpaMetamodel.managedType(Class)
exceptnull
is returned rather than throwing an exceptionSet<EmbeddableType<?>>
Set<EntityType<?>>
EnumJavaType<?>
getEnumType
(String className) getEnumTypesForValue
(String enumValue) <X> EntityDomainType<X>
getHqlEntityReference
(String entityName) Specialized handling for resolving entity-name references in an HQL query<T> T
getJavaConstant
(String className, String fieldName) JavaType<?>
getJavaConstantType
(String className, String fieldName) Set<ManagedType<?>>
<T> Map<String,
EntityGraph<? extends T>> getNamedEntityGraphs
(Class<T> entityClass) todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?<X> ManagedDomainType<X>
managedType
(Class<X> cls) <X> ManagedDomainType<X>
managedType
(String typeName) Access to a managed type through its namevoid
processJpa
(MetadataImplementor bootMetamodel, MappingMetamodel mappingMetamodel, Map<Class<?>, String> entityProxyInterfaceMap, JpaStaticMetamodelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetamodelPopulationSetting jpaMetaModelPopulationSetting, Collection<NamedEntityGraphDefinition> namedEntityGraphDefinitions, RuntimeModelCreationContext runtimeModelCreationContext) qualifyImportableName
(String queryName) <T> EntityDomainType<T>
resolveEntityReference
(Class<T> javaType) <X> EntityDomainType<X>
resolveHqlEntityReference
(String entityName) Specialized handling for resolving entity-name references in an HQL query
-
Constructor Details
-
JpaMetamodelImpl
public JpaMetamodelImpl(TypeConfiguration typeConfiguration, MappingMetamodel mappingMetamodel, ServiceRegistry serviceRegistry)
-
-
Method Details
-
getTypeConfiguration
Description copied from interface:JpaMetamodel
todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?- Specified by:
getTypeConfiguration
in interfaceJpaMetamodel
-
getServiceRegistry
- Specified by:
getServiceRegistry
in interfaceJpaMetamodel
-
getJpaCompliance
- Specified by:
getJpaCompliance
in interfaceJpaMetamodel
-
findManagedType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.managedType(String)
exceptnull
is returned rather than throwing an exception- Specified by:
findManagedType
in interfaceJpaMetamodel
-
managedType
Description copied from interface:JpaMetamodel
Access to a managed type through its name- Specified by:
managedType
in interfaceJpaMetamodel
-
findEntityType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.entity(String)
exceptnull
is returned rather than throwing an exception- Specified by:
findEntityType
in interfaceJpaMetamodel
-
entity
Description copied from interface:JpaMetamodel
Access to an entity supporting Hibernate's entity-name feature- Specified by:
entity
in interfaceJpaMetamodel
- Specified by:
entity
in interfaceMetamodel
-
findEmbeddableType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.embeddable(String)
exceptnull
is returned rather than throwing an exception- Specified by:
findEmbeddableType
in interfaceJpaMetamodel
-
embeddable
Description copied from interface:JpaMetamodel
Access to an embeddable type from FQN- Specified by:
embeddable
in interfaceJpaMetamodel
-
getHqlEntityReference
Description copied from interface:JpaMetamodel
Specialized handling for resolving entity-name references in an HQL query- Specified by:
getHqlEntityReference
in interfaceJpaMetamodel
-
resolveHqlEntityReference
Description copied from interface:JpaMetamodel
Specialized handling for resolving entity-name references in an HQL query- Specified by:
resolveHqlEntityReference
in interfaceJpaMetamodel
-
findManagedType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.managedType(Class)
exceptnull
is returned rather than throwing an exception- Specified by:
findManagedType
in interfaceJpaMetamodel
-
managedType
- Specified by:
managedType
in interfaceJpaMetamodel
- Specified by:
managedType
in interfaceMetamodel
-
findEntityType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.entity(Class)
exceptnull
is returned rather than throwing an exception- Specified by:
findEntityType
in interfaceJpaMetamodel
-
entity
- Specified by:
entity
in interfaceJpaMetamodel
- Specified by:
entity
in interfaceMetamodel
-
findEmbeddableType
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.embeddable(Class)
exceptnull
is returned rather than throwing an exception- Specified by:
findEmbeddableType
in interfaceJpaMetamodel
-
embeddable
- Specified by:
embeddable
in interfaceJpaMetamodel
- Specified by:
embeddable
in interfaceMetamodel
-
getManagedTypes
- Specified by:
getManagedTypes
in interfaceJpaMetamodel
- Specified by:
getManagedTypes
in interfaceMetamodel
-
getEntities
- Specified by:
getEntities
in interfaceJpaMetamodel
- Specified by:
getEntities
in interfaceMetamodel
-
getEmbeddables
- Specified by:
getEmbeddables
in interfaceJpaMetamodel
- Specified by:
getEmbeddables
in interfaceMetamodel
-
getEnumTypesForValue
- Specified by:
getEnumTypesForValue
in interfaceJpaMetamodel
-
getEnumType
- Specified by:
getEnumType
in interfaceJpaMetamodel
-
enumValue
- Specified by:
enumValue
in interfaceJpaMetamodel
-
getJavaConstantType
- Specified by:
getJavaConstantType
in interfaceJpaMetamodel
-
getJavaConstant
- Specified by:
getJavaConstant
in interfaceJpaMetamodel
-
addNamedEntityGraph
- Specified by:
addNamedEntityGraph
in interfaceJpaMetamodel
-
findEntityGraphByName
- Specified by:
findEntityGraphByName
in interfaceJpaMetamodel
-
findEntityGraphsByJavaType
- Specified by:
findEntityGraphsByJavaType
in interfaceJpaMetamodel
-
getNamedEntityGraphs
- Specified by:
getNamedEntityGraphs
in interfaceJpaMetamodel
-
qualifyImportableName
- Specified by:
qualifyImportableName
in interfaceJpaMetamodel
-
resolveEntityReference
-
getMappingMetamodel
- Specified by:
getMappingMetamodel
in interfaceJpaMetamodelImplementor
-
processJpa
public void processJpa(MetadataImplementor bootMetamodel, MappingMetamodel mappingMetamodel, Map<Class<?>, String> entityProxyInterfaceMap, JpaStaticMetamodelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetamodelPopulationSetting jpaMetaModelPopulationSetting, Collection<NamedEntityGraphDefinition> namedEntityGraphDefinitions, RuntimeModelCreationContext runtimeModelCreationContext) -
addAllowedEnumLiteralsToEnumTypesMap
-