Class JpaMetamodelImpl
- java.lang.Object
-
- org.hibernate.metamodel.model.domain.internal.JpaMetamodelImpl
-
- All Implemented Interfaces:
Metamodel
,Serializable
,JpaMetamodel
,JpaMetamodelImplementor
public class JpaMetamodelImpl extends Object implements JpaMetamodelImplementor, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaMetamodelImpl(TypeConfiguration typeConfiguration, MappingMetamodel mappingMetamodel, ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)
<X> EmbeddableDomainType<X>
embeddable(Class<X> cls)
<X> EntityDomainType<X>
entity(Class<X> cls)
<X> EntityDomainType<X>
entity(String entityName)
Access to an entity supporting Hibernate's entity-name feature<T> RootGraphImplementor<T>
findEntityGraphByName(String name)
<T> List<RootGraphImplementor<? super T>>
findEntityGraphsByJavaType(Class<T> entityClass)
<X> EntityDomainType<X>
findEntityType(Class<X> cls)
Same asJpaMetamodel.entity(java.lang.String)
exceptnull
is returned rather than throwing an exception<X> ManagedDomainType<X>
findManagedType(Class<X> cls)
Same asJpaMetamodel.managedType(java.lang.Class<X>)
exceptnull
is returned rather than throwing an exceptionMap<String,Map<Class<?>,Enum<?>>>
getAllowedEnumLiteralTexts()
Returns a map that gives access to the enum literal expressions that can be used in queries.Set<EmbeddableType<?>>
getEmbeddables()
Set<EntityType<?>>
getEntities()
<X> EntityDomainType<X>
getHqlEntityReference(String entityName)
Specialized handling for resolving entity-name references in an HQL queryJpaCompliance
getJpaCompliance()
Set<ManagedType<?>>
getManagedTypes()
MappingMetamodel
getMappingMetamodel()
ServiceRegistry
getServiceRegistry()
TypeConfiguration
getTypeConfiguration()
todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?<X> ManagedDomainType<X>
managedType(Class<X> cls)
void
processJpa(MetadataImplementor bootMetamodel, MappingMetamodel mappingMetamodel, Map<Class<?>,String> entityProxyInterfaceMap, JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting, Collection<NamedEntityGraphDefinition> namedEntityGraphDefinitions, RuntimeModelCreationContext runtimeModelCreationContext)
String
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 Detail
-
JpaMetamodelImpl
public JpaMetamodelImpl(TypeConfiguration typeConfiguration, MappingMetamodel mappingMetamodel, ServiceRegistry serviceRegistry)
-
-
Method Detail
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
Description copied from interface:JpaMetamodel
todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?- Specified by:
getTypeConfiguration
in interfaceJpaMetamodel
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistry
in interfaceJpaMetamodel
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- Specified by:
getJpaCompliance
in interfaceJpaMetamodel
-
entity
public <X> EntityDomainType<X> entity(String entityName)
Description copied from interface:JpaMetamodel
Access to an entity supporting Hibernate's entity-name feature- Specified by:
entity
in interfaceJpaMetamodel
-
getHqlEntityReference
public <X> EntityDomainType<X> getHqlEntityReference(String entityName)
Description copied from interface:JpaMetamodel
Specialized handling for resolving entity-name references in an HQL query- Specified by:
getHqlEntityReference
in interfaceJpaMetamodel
-
resolveHqlEntityReference
public <X> EntityDomainType<X> resolveHqlEntityReference(String entityName)
Description copied from interface:JpaMetamodel
Specialized handling for resolving entity-name references in an HQL query- Specified by:
resolveHqlEntityReference
in interfaceJpaMetamodel
-
findManagedType
public <X> ManagedDomainType<X> findManagedType(Class<X> cls)
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.managedType(java.lang.Class<X>)
exceptnull
is returned rather than throwing an exception- Specified by:
findManagedType
in interfaceJpaMetamodel
-
findEntityType
public <X> EntityDomainType<X> findEntityType(Class<X> cls)
Description copied from interface:JpaMetamodel
Same asJpaMetamodel.entity(java.lang.String)
exceptnull
is returned rather than throwing an exception- Specified by:
findEntityType
in interfaceJpaMetamodel
-
managedType
public <X> ManagedDomainType<X> managedType(Class<X> cls)
- Specified by:
managedType
in interfaceJpaMetamodel
- Specified by:
managedType
in interfaceMetamodel
-
entity
public <X> EntityDomainType<X> entity(Class<X> cls)
- Specified by:
entity
in interfaceJpaMetamodel
- Specified by:
entity
in interfaceMetamodel
-
embeddable
public <X> EmbeddableDomainType<X> embeddable(Class<X> cls)
- Specified by:
embeddable
in interfaceJpaMetamodel
- Specified by:
embeddable
in interfaceMetamodel
-
getManagedTypes
public Set<ManagedType<?>> getManagedTypes()
- Specified by:
getManagedTypes
in interfaceJpaMetamodel
- Specified by:
getManagedTypes
in interfaceMetamodel
-
getEntities
public Set<EntityType<?>> getEntities()
- Specified by:
getEntities
in interfaceJpaMetamodel
- Specified by:
getEntities
in interfaceMetamodel
-
getEmbeddables
public Set<EmbeddableType<?>> getEmbeddables()
- Specified by:
getEmbeddables
in interfaceJpaMetamodel
- Specified by:
getEmbeddables
in interfaceMetamodel
-
getAllowedEnumLiteralTexts
public Map<String,Map<Class<?>,Enum<?>>> getAllowedEnumLiteralTexts()
Description copied from interface:JpaMetamodel
Returns a map that gives access to the enum literal expressions that can be used in queries. The key is the short-hand enum literal. The value is a map, from enum class to the actual enum value. This is needed for parsing short-hand enum literals that don't use FQNs.- Specified by:
getAllowedEnumLiteralTexts
in interfaceJpaMetamodel
-
addNamedEntityGraph
public <T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)
- Specified by:
addNamedEntityGraph
in interfaceJpaMetamodel
-
findEntityGraphByName
public <T> RootGraphImplementor<T> findEntityGraphByName(String name)
- Specified by:
findEntityGraphByName
in interfaceJpaMetamodel
-
findEntityGraphsByJavaType
public <T> List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(Class<T> entityClass)
- Specified by:
findEntityGraphsByJavaType
in interfaceJpaMetamodel
-
qualifyImportableName
public String qualifyImportableName(String queryName)
- Specified by:
qualifyImportableName
in interfaceJpaMetamodel
-
resolveEntityReference
public <T> EntityDomainType<T> resolveEntityReference(Class<T> javaType)
-
getMappingMetamodel
public MappingMetamodel 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)
-
-