Interface JpaMetamodel
- All Superinterfaces:
Metamodel
- All Known Subinterfaces:
JpaMetamodelImplementor
,Metamodel
,MetamodelImplementor
- All Known Implementing Classes:
JpaMetamodelImpl
,MappingMetamodelImpl
Extensions to the JPA-defined metamodel of
persistent Java types.
- Since:
- 6.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T> void
addNamedEntityGraph
(String graphName, RootGraphImplementor<T> entityGraph) <X> EmbeddableDomainType<X>
embeddable
(Class<X> cls) <X> EmbeddableDomainType<X>
embeddable
(String embeddableName) Access to an embeddable type from FQN<X> EntityDomainType<X>
<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 asentity(java.lang.String)
exceptnull
is returned rather than throwing an exception<X> ManagedDomainType<X>
findManagedType
(Class<X> cls) Same asmanagedType(java.lang.String)
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<?>>
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 namequalifyImportableName
(String queryName) <X> EntityDomainType<X>
resolveHqlEntityReference
(String entityName) Specialized handling for resolving entity-name references in an HQL query
-
Method Details
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()todo (6.0) : should we expose JpaMetamodel from TypeConfiguration? -
getServiceRegistry
ServiceRegistry getServiceRegistry() -
managedType
Access to a managed type through its name -
entity
Access to an entity supporting Hibernate's entity-name feature -
embeddable
Access to an embeddable type from FQN -
getHqlEntityReference
Specialized handling for resolving entity-name references in an HQL query -
resolveHqlEntityReference
Specialized handling for resolving entity-name references in an HQL query -
findManagedType
Same asmanagedType(java.lang.String)
exceptnull
is returned rather than throwing an exception -
findEntityType
Same asentity(java.lang.String)
exceptnull
is returned rather than throwing an exception -
qualifyImportableName
-
getEnumTypesForValue
-
getEnumType
-
enumValue
-
getJavaConstantType
-
getJavaConstant
-
managedType
- Specified by:
managedType
in interfaceMetamodel
-
entity
-
embeddable
- Specified by:
embeddable
in interfaceMetamodel
-
getManagedTypes
Set<ManagedType<?>> getManagedTypes()- Specified by:
getManagedTypes
in interfaceMetamodel
-
getEntities
Set<EntityType<?>> getEntities()- Specified by:
getEntities
in interfaceMetamodel
-
getEmbeddables
Set<EmbeddableType<?>> getEmbeddables()- Specified by:
getEmbeddables
in interfaceMetamodel
-
addNamedEntityGraph
-
findEntityGraphByName
-
findEntityGraphsByJavaType
-
getJpaCompliance
JpaCompliance getJpaCompliance()
-