Class JpaMetamodelImpl
java.lang.Object
org.hibernate.metamodel.model.domain.internal.JpaMetamodelImpl
- All Implemented Interfaces:
Metamodel,Serializable,JpaMetamodel,JpaMetamodelImplementor
- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJpaMetamodelImpl(TypeConfiguration typeConfiguration, MappingMetamodel mappingMetamodel, ServiceRegistry serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAllowedEnumLiteralsToEnumTypesMap(Map<String, Set<String>> allowedEnumLiteralsToEnumTypeNames, String enumConstantName, String enumSimpleName, String enumAlternativeName, String enumClassName) <T> voidaddNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph) <X> EmbeddableDomainType<X>embeddable(Class<X> cls) Return the metamodel embeddable type representing the embeddable class.<X> EmbeddableDomainType<X>embeddable(String embeddableName) Access to an embeddable type from FQN<X> EntityDomainType<X>Return the metamodel entity type representing the entity.<X> EntityDomainType<X>Access to an entity supporting Hibernate's entity-name feature<E extends Enum<E>>
EenumValue(EnumJavaType<E> enumType, String enumValueName) <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.String)exceptnullis returned rather than throwing an exceptionSet<EmbeddableType<?>>Return the metamodel embeddable types.Set<EntityType<?>>Return the metamodel entity types.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> TgetJavaConstant(String className, String fieldName) JavaType<?>getJavaConstantType(String className, String fieldName) Set<ManagedType<?>>Return the metamodel managed types.todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?<X> ManagedDomainType<X>managedType(Class<X> cls) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.<X> ManagedDomainType<X>managedType(String typeName) Access to a managed type through its namevoidprocessJpa(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:JpaMetamodeltodo (6.0) : should we expose JpaMetamodel from TypeConfiguration?- Specified by:
getTypeConfigurationin interfaceJpaMetamodel
-
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceJpaMetamodel
-
getJpaCompliance
- Specified by:
getJpaCompliancein interfaceJpaMetamodel
-
managedType
Description copied from interface:JpaMetamodelAccess to a managed type through its name- Specified by:
managedTypein interfaceJpaMetamodel
-
entity
Description copied from interface:JpaMetamodelAccess to an entity supporting Hibernate's entity-name feature- Specified by:
entityin interfaceJpaMetamodel
-
embeddable
Description copied from interface:JpaMetamodelAccess to an embeddable type from FQN- Specified by:
embeddablein interfaceJpaMetamodel
-
getHqlEntityReference
Description copied from interface:JpaMetamodelSpecialized handling for resolving entity-name references in an HQL query- Specified by:
getHqlEntityReferencein interfaceJpaMetamodel
-
resolveHqlEntityReference
Description copied from interface:JpaMetamodelSpecialized handling for resolving entity-name references in an HQL query- Specified by:
resolveHqlEntityReferencein interfaceJpaMetamodel
-
findManagedType
Description copied from interface:JpaMetamodelSame asJpaMetamodel.managedType(java.lang.String)exceptnullis returned rather than throwing an exception- Specified by:
findManagedTypein interfaceJpaMetamodel
-
findEntityType
Description copied from interface:JpaMetamodelSame asJpaMetamodel.entity(java.lang.String)exceptnullis returned rather than throwing an exception- Specified by:
findEntityTypein interfaceJpaMetamodel
-
managedType
Description copied from interface:MetamodelReturn the metamodel managed type representing the entity, mapped superclass, or embeddable class.- Specified by:
managedTypein interfaceJpaMetamodel- Specified by:
managedTypein interfaceMetamodel- Parameters:
cls- the type of the represented managed class- Returns:
- the metamodel managed type
-
entity
Description copied from interface:MetamodelReturn the metamodel entity type representing the entity.- Specified by:
entityin interfaceJpaMetamodel- Specified by:
entityin interfaceMetamodel- Parameters:
cls- the type of the represented entity- Returns:
- the metamodel entity type
-
embeddable
Description copied from interface:MetamodelReturn the metamodel embeddable type representing the embeddable class.- Specified by:
embeddablein interfaceJpaMetamodel- Specified by:
embeddablein interfaceMetamodel- Parameters:
cls- the type of the represented embeddable class- Returns:
- the metamodel embeddable type
-
getManagedTypes
Description copied from interface:MetamodelReturn the metamodel managed types.- Specified by:
getManagedTypesin interfaceJpaMetamodel- Specified by:
getManagedTypesin interfaceMetamodel- Returns:
- the metamodel managed types
-
getEntities
Description copied from interface:MetamodelReturn the metamodel entity types.- Specified by:
getEntitiesin interfaceJpaMetamodel- Specified by:
getEntitiesin interfaceMetamodel- Returns:
- the metamodel entity types
-
getEmbeddables
Description copied from interface:MetamodelReturn the metamodel embeddable types. Returns empty set if there are no embeddable types.- Specified by:
getEmbeddablesin interfaceJpaMetamodel- Specified by:
getEmbeddablesin interfaceMetamodel- Returns:
- the metamodel embeddable types
-
getEnumTypesForValue
- Specified by:
getEnumTypesForValuein interfaceJpaMetamodel
-
getEnumType
- Specified by:
getEnumTypein interfaceJpaMetamodel
-
enumValue
- Specified by:
enumValuein interfaceJpaMetamodel
-
getJavaConstantType
- Specified by:
getJavaConstantTypein interfaceJpaMetamodel
-
getJavaConstant
- Specified by:
getJavaConstantin interfaceJpaMetamodel
-
addNamedEntityGraph
- Specified by:
addNamedEntityGraphin interfaceJpaMetamodel
-
findEntityGraphByName
- Specified by:
findEntityGraphByNamein interfaceJpaMetamodel
-
findEntityGraphsByJavaType
- Specified by:
findEntityGraphsByJavaTypein interfaceJpaMetamodel
-
qualifyImportableName
- Specified by:
qualifyImportableNamein interfaceJpaMetamodel
-
resolveEntityReference
-
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) -
addAllowedEnumLiteralsToEnumTypesMap
-