Interface JpaMetamodel
-
- All Superinterfaces:
Metamodel
- All Known Subinterfaces:
JpaMetamodelImplementor
,Metamodel
,MetamodelImplementor
- All Known Implementing Classes:
JpaMetamodelImpl
,MappingMetamodelImpl
@Incubating public interface JpaMetamodel extends Metamodel
Extensions to the JPA-defined metamodel of persistent Java types.- Since:
- 6.0
- See Also:
MappingMetamodel
-
-
Method Summary
All Methods Instance Methods Abstract 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 asentity(java.lang.String)
exceptnull
is returned rather than throwing an exception<X> ManagedDomainType<X>
findManagedType(Class<X> cls)
Same asmanagedType(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()
ServiceRegistry
getServiceRegistry()
TypeConfiguration
getTypeConfiguration()
todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?<X> ManagedDomainType<X>
managedType(Class<X> cls)
String
qualifyImportableName(String queryName)
<X> EntityDomainType<X>
resolveHqlEntityReference(String entityName)
Specialized handling for resolving entity-name references in an HQL query
-
-
-
Method Detail
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
todo (6.0) : should we expose JpaMetamodel from TypeConfiguration?
-
getServiceRegistry
ServiceRegistry getServiceRegistry()
-
entity
<X> EntityDomainType<X> entity(String entityName)
Access to an entity supporting Hibernate's entity-name feature
-
getHqlEntityReference
<X> EntityDomainType<X> getHqlEntityReference(String entityName)
Specialized handling for resolving entity-name references in an HQL query
-
resolveHqlEntityReference
<X> EntityDomainType<X> resolveHqlEntityReference(String entityName)
Specialized handling for resolving entity-name references in an HQL query
-
findManagedType
<X> ManagedDomainType<X> findManagedType(Class<X> cls)
Same asmanagedType(java.lang.Class<X>)
exceptnull
is returned rather than throwing an exception
-
findEntityType
<X> EntityDomainType<X> findEntityType(Class<X> cls)
Same asentity(java.lang.String)
exceptnull
is returned rather than throwing an exception
-
getAllowedEnumLiteralTexts
Map<String,Map<Class<?>,Enum<?>>> getAllowedEnumLiteralTexts()
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.
-
managedType
<X> ManagedDomainType<X> managedType(Class<X> cls)
- Specified by:
managedType
in interfaceMetamodel
-
entity
<X> EntityDomainType<X> entity(Class<X> cls)
-
embeddable
<X> EmbeddableDomainType<X> embeddable(Class<X> cls)
- 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
<T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)
-
findEntityGraphByName
<T> RootGraphImplementor<T> findEntityGraphByName(String name)
-
findEntityGraphsByJavaType
<T> List<RootGraphImplementor<? super T>> findEntityGraphsByJavaType(Class<T> entityClass)
-
getJpaCompliance
JpaCompliance getJpaCompliance()
-
-