Interface MappingMetamodel
- All Superinterfaces:
Metamodel
- All Known Subinterfaces:
MappingMetamodelImplementor
Access to information about the runtime relational O/R mapping model.
- API Note:
- This is an incubating SPI. Its name and package may change.
-
Method Summary
Modifier and TypeMethodDescriptionFind a collection mapping descriptor based on its role.Find a collection mapping descriptor based on its role.findEntityDescriptor(Class<?> entityJavaType) Find an entity mapping descriptor based on its Class.findEntityDescriptor(String entityName) Find an entity mapping descriptor based on its Hibernate entity name.voidVisit the mapping descriptors for all collections defined in the modelvoidVisit all entity mapping descriptors defined in the modelGet a collection mapping descriptor based on its roleGet a collection mapping descriptor based on its roleorg.hibernate.action.queue.internal.constraint.ConstraintModelAccess to constraint details from the domain model.Get an EmbeddableMappingType based on its NavigableRole.getEntityDescriptor(Class<?> entityJavaType) Get an entity mapping descriptor based on its Class.getEntityDescriptor(String entityName) Get an entity mapping descriptor based on its Hibernate entity-nameGet an entity mapping descriptor based on its NavigableRole.getImportedName(String name) TheTypeConfigurationthis metamodel is associated withbooleanisEntityClass(Class<?> entityJavaType) resolveMappingExpressible(SqmExpressible<?> sqmExpressible, Function<NavigablePath, TableGroup> tableGroupLocator) Methods inherited from interface Metamodel
embeddable, entity, entity, getEmbeddables, getEntities, getManagedTypes, managedType
-
Method Details
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()TheTypeConfigurationthis metamodel is associated with -
getConstraintModel
org.hibernate.action.queue.internal.constraint.ConstraintModel getConstraintModel()Access to constraint details from the domain model. -
forEachEntityDescriptor
Visit all entity mapping descriptors defined in the model -
getEntityDescriptor
Get an entity mapping descriptor based on its Hibernate entity-name- Throws:
IllegalArgumentException- if the name does not refer to an entity- See Also:
-
getEntityDescriptor
Get an entity mapping descriptor based on its Class.- Throws:
IllegalArgumentException- if the class is not an entity class- See Also:
-
findEntityDescriptor
Find an entity mapping descriptor based on its Hibernate entity name.- API Note:
- Returns
nullrather than throwing exception
-
findEntityDescriptor
Find an entity mapping descriptor based on its Class.- API Note:
- Returns
nullrather than throwing exception
-
isEntityClass
-
getImportedName
-
forEachCollectionDescriptor
Visit the mapping descriptors for all collections defined in the model -
getCollectionDescriptor
Get a collection mapping descriptor based on its role- Throws:
IllegalArgumentException- if the role does not refer to a collection- See Also:
-
findCollectionDescriptor
Find a collection mapping descriptor based on its role. Returnsnullif the role does not refer to a collection- See Also:
-
resolveMappingExpressible
@Internal MappingModelExpressible<?> resolveMappingExpressible(SqmExpressible<?> sqmExpressible, Function<NavigablePath, TableGroup> tableGroupLocator)
-