Package org.hibernate.metamodel.spi
Interface MetamodelImplementor
- All Superinterfaces:
JpaMetamodel,MappingMetamodel,Metamodel,Metamodel
- All Known Implementing Classes:
MappingMetamodelImpl
Deprecated.
Extensions to the JPA-defined
Metamodel contract.- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.default CollectionPersistercollectionPersister(String role) Deprecated.Deprecated.With no direct replacement; seeMappingMetamodel.forEachCollectionDescriptor(java.util.function.Consumer<org.hibernate.persister.collection.CollectionPersister>)andMappingMetamodel.streamCollectionDescriptors()insteaddefault EntityPersisterentityPersister(Class<?> entityClass) Deprecated.default EntityPersisterentityPersister(String entityName) Deprecated.Deprecated.With no direct replacement; seeMappingMetamodel.forEachEntityDescriptor(java.util.function.Consumer<org.hibernate.persister.entity.EntityPersister>)andMappingMetamodel.streamEntityDescriptors()insteadString[]Deprecated.Get the names of all collections known to this MetamodelString[]Deprecated.Get the names of all entities known to this MetamodelgetCollectionRolesByEntityParticipant(String entityName) Deprecated.Methods inherited from interface org.hibernate.metamodel.model.domain.JpaMetamodel
addNamedEntityGraph, embeddable, embeddable, entity, entity, enumValue, findEntityGraphByName, findEntityGraphsByJavaType, findEntityType, findManagedType, getEmbeddables, getEntities, getEnumType, getEnumTypesForValue, getHqlEntityReference, getJavaConstant, getJavaConstantType, getJpaCompliance, getManagedTypes, getServiceRegistry, getTypeConfiguration, managedType, managedType, qualifyImportableName, resolveHqlEntityReferenceMethods inherited from interface org.hibernate.metamodel.MappingMetamodel
addNamedEntityGraph, defaultGraph, defaultGraph, defaultGraph, defaultGraph, findCollectionDescriptor, findCollectionDescriptor, findEntityDescriptor, findEntityDescriptor, findNamedGraph, findRootGraphsForType, findRootGraphsForType, findRootGraphsForType, forEachCollectionDescriptor, forEachEntityDescriptor, forEachNamedGraph, getCollectionDescriptor, getCollectionDescriptor, getEmbeddableValuedModelPart, getEntityDescriptor, getEntityDescriptor, getEntityDescriptor, getImportedName, getTypeConfiguration, isEntityClass, locateEntityDescriptor, locateEntityPersister, locateEntityPersister, resolveMappingExpressible, resolveQueryParameterType, streamCollectionDescriptors, streamEntityDescriptorsMethods inherited from interface org.hibernate.Metamodel
getImplementors
-
Method Details
-
getEntityNameResolvers
Deprecated. -
entityPersister
Deprecated.Locate the persister for an entity by the entity class.- Parameters:
entityClass- The entity class- Returns:
- The entity persister
- Throws:
MappingException- Indicates persister for that class could not be found.
-
entityPersister
Deprecated.Locate the persister for an entity by the entity-name- Parameters:
entityName- The name of the entity for which to retrieve the persister.- Returns:
- The persister
- Throws:
MappingException- Indicates persister could not be found with that name.
-
entityPersisters
Deprecated.With no direct replacement; seeMappingMetamodel.forEachEntityDescriptor(java.util.function.Consumer<org.hibernate.persister.entity.EntityPersister>)andMappingMetamodel.streamEntityDescriptors()insteadGet all entity persisters as a Map, which entity name its the key and the persister is the value.- Returns:
- The Map contains all entity persisters.
-
collectionPersister
Deprecated.Get the persister object for a collection role.- Parameters:
role- The role of the collection for which to retrieve the persister.- Returns:
- The persister
- Throws:
MappingException- Indicates persister could not be found with that role.
-
collectionPersisters
Deprecated.With no direct replacement; seeMappingMetamodel.forEachCollectionDescriptor(java.util.function.Consumer<org.hibernate.persister.collection.CollectionPersister>)andMappingMetamodel.streamCollectionDescriptors()insteadGet all collection persisters as a Map, which collection role as the key and the persister is the value.- Returns:
- The Map contains all collection persisters.
-
getCollectionRolesByEntityParticipant
Deprecated.Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.- Parameters:
entityName- The entity name for which to get the collection roles.- Returns:
- set of all the collection roles in which the given entityName participates.
-
getAllEntityNames
String[] getAllEntityNames()Deprecated.Get the names of all entities known to this Metamodel- Returns:
- All the entity names
-
getAllCollectionRoles
String[] getAllCollectionRoles()Deprecated.Get the names of all collections known to this Metamodel- Returns:
- All the entity names
-
close
void close()Deprecated.
-
MappingMetamodelorJpaMetamodelinstead. SeeRuntimeMetamodels.