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> voidaddNamedEntityGraph(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)exceptnullis returned rather than throwing an exception<X> ManagedDomainType<X>findManagedType(Class<X> cls)Same asJpaMetamodel.managedType(java.lang.Class<X>)exceptnullis 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 queryJpaCompliancegetJpaCompliance()Set<ManagedType<?>>getManagedTypes()MappingMetamodelgetMappingMetamodel()ServiceRegistrygetServiceRegistry()TypeConfigurationgetTypeConfiguration()todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?<X> ManagedDomainType<X>managedType(Class<X> cls)voidprocessJpa(MetadataImplementor bootMetamodel, MappingMetamodel mappingMetamodel, Map<Class<?>,String> entityProxyInterfaceMap, JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting, Collection<NamedEntityGraphDefinition> namedEntityGraphDefinitions, RuntimeModelCreationContext runtimeModelCreationContext)StringqualifyImportableName(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:JpaMetamodeltodo (6.0) : should we expose JpaMetamodel from TypeConfiguration?- Specified by:
getTypeConfigurationin interfaceJpaMetamodel
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistryin interfaceJpaMetamodel
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- Specified by:
getJpaCompliancein interfaceJpaMetamodel
-
entity
public <X> EntityDomainType<X> entity(String entityName)
Description copied from interface:JpaMetamodelAccess to an entity supporting Hibernate's entity-name feature- Specified by:
entityin interfaceJpaMetamodel
-
getHqlEntityReference
public <X> EntityDomainType<X> getHqlEntityReference(String entityName)
Description copied from interface:JpaMetamodelSpecialized handling for resolving entity-name references in an HQL query- Specified by:
getHqlEntityReferencein interfaceJpaMetamodel
-
resolveHqlEntityReference
public <X> EntityDomainType<X> resolveHqlEntityReference(String entityName)
Description copied from interface:JpaMetamodelSpecialized handling for resolving entity-name references in an HQL query- Specified by:
resolveHqlEntityReferencein interfaceJpaMetamodel
-
findManagedType
public <X> ManagedDomainType<X> findManagedType(Class<X> cls)
Description copied from interface:JpaMetamodelSame asJpaMetamodel.managedType(java.lang.Class<X>)exceptnullis returned rather than throwing an exception- Specified by:
findManagedTypein interfaceJpaMetamodel
-
findEntityType
public <X> EntityDomainType<X> findEntityType(Class<X> cls)
Description copied from interface:JpaMetamodelSame asJpaMetamodel.entity(java.lang.String)exceptnullis returned rather than throwing an exception- Specified by:
findEntityTypein interfaceJpaMetamodel
-
managedType
public <X> ManagedDomainType<X> managedType(Class<X> cls)
- Specified by:
managedTypein interfaceJpaMetamodel- Specified by:
managedTypein interfaceMetamodel
-
entity
public <X> EntityDomainType<X> entity(Class<X> cls)
- Specified by:
entityin interfaceJpaMetamodel- Specified by:
entityin interfaceMetamodel
-
embeddable
public <X> EmbeddableDomainType<X> embeddable(Class<X> cls)
- Specified by:
embeddablein interfaceJpaMetamodel- Specified by:
embeddablein interfaceMetamodel
-
getManagedTypes
public Set<ManagedType<?>> getManagedTypes()
- Specified by:
getManagedTypesin interfaceJpaMetamodel- Specified by:
getManagedTypesin interfaceMetamodel
-
getEntities
public Set<EntityType<?>> getEntities()
- Specified by:
getEntitiesin interfaceJpaMetamodel- Specified by:
getEntitiesin interfaceMetamodel
-
getEmbeddables
public Set<EmbeddableType<?>> getEmbeddables()
- Specified by:
getEmbeddablesin interfaceJpaMetamodel- Specified by:
getEmbeddablesin interfaceMetamodel
-
getAllowedEnumLiteralTexts
public Map<String,Map<Class<?>,Enum<?>>> getAllowedEnumLiteralTexts()
Description copied from interface:JpaMetamodelReturns 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:
getAllowedEnumLiteralTextsin interfaceJpaMetamodel
-
addNamedEntityGraph
public <T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)
- Specified by:
addNamedEntityGraphin interfaceJpaMetamodel
-
findEntityGraphByName
public <T> RootGraphImplementor<T> findEntityGraphByName(String name)
- Specified by:
findEntityGraphByNamein interfaceJpaMetamodel
-
findEntityGraphsByJavaType
public <T> List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(Class<T> entityClass)
- Specified by:
findEntityGraphsByJavaTypein interfaceJpaMetamodel
-
qualifyImportableName
public String qualifyImportableName(String queryName)
- Specified by:
qualifyImportableNamein interfaceJpaMetamodel
-
resolveEntityReference
public <T> EntityDomainType<T> resolveEntityReference(Class<T> javaType)
-
getMappingMetamodel
public MappingMetamodel getMappingMetamodel()
- Specified by:
getMappingMetamodelin interfaceJpaMetamodelImplementor
-
processJpa
public void processJpa(MetadataImplementor bootMetamodel, MappingMetamodel mappingMetamodel, Map<Class<?>,String> entityProxyInterfaceMap, JpaStaticMetaModelPopulationSetting jpaStaticMetaModelPopulationSetting, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting, Collection<NamedEntityGraphDefinition> namedEntityGraphDefinitions, RuntimeModelCreationContext runtimeModelCreationContext)
-
-