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
- Author:
- Steve Ebersole
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<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 asentity(java.lang.String)exceptnullis returned rather than throwing an exception<X> ManagedDomainType<X>findManagedType(Class<X> cls) Same asmanagedType(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 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)exceptnullis returned rather than throwing an exception -
findEntityType
Same asentity(java.lang.String)exceptnullis returned rather than throwing an exception -
qualifyImportableName
-
getEnumTypesForValue
-
getEnumType
-
enumValue
-
getJavaConstantType
-
getJavaConstant
-
managedType
Description copied from interface:MetamodelReturn the metamodel managed type representing the entity, mapped superclass, or embeddable class.- 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. -
embeddable
Description copied from interface:MetamodelReturn the metamodel embeddable type representing the embeddable class.- Specified by:
embeddablein interfaceMetamodel- Parameters:
cls- the type of the represented embeddable class- Returns:
- the metamodel embeddable type
-
getManagedTypes
Set<ManagedType<?>> getManagedTypes()Description copied from interface:MetamodelReturn the metamodel managed types.- Specified by:
getManagedTypesin interfaceMetamodel- Returns:
- the metamodel managed types
-
getEntities
Set<EntityType<?>> getEntities()Description copied from interface:MetamodelReturn the metamodel entity types.- Specified by:
getEntitiesin interfaceMetamodel- Returns:
- the metamodel entity types
-
getEmbeddables
Set<EmbeddableType<?>> getEmbeddables()Description copied from interface:MetamodelReturn the metamodel embeddable types. Returns empty set if there are no embeddable types.- Specified by:
getEmbeddablesin interfaceMetamodel- Returns:
- the metamodel embeddable types
-
addNamedEntityGraph
-
findEntityGraphByName
-
findEntityGraphsByJavaType
-
getJpaCompliance
JpaCompliance getJpaCompliance()
-