Package org.hibernate.metamodel.spi
Interface MetamodelImplementor
-
- All Superinterfaces:
JpaMetamodel
,MappingMetamodel
,Metamodel
,Metamodel
- All Known Implementing Classes:
MappingMetamodelImpl
@Deprecated(since="6.0") public interface MetamodelImplementor extends MappingMetamodel, Metamodel
Deprecated.Extensions to the JPA-definedMetamodel
contract.
-
-
Method Summary
-
Methods inherited from interface org.hibernate.metamodel.model.domain.JpaMetamodel
addNamedEntityGraph, embeddable, entity, entity, findEntityGraphByName, findEntityGraphsByJavaType, findEntityType, findManagedType, getAllowedEnumLiteralTexts, getEmbeddables, getEntities, getHqlEntityReference, getJpaCompliance, getManagedTypes, getServiceRegistry, getTypeConfiguration, managedType, qualifyImportableName, resolveHqlEntityReference
-
Methods 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, streamEntityDescriptors
-
Methods inherited from interface org.hibernate.Metamodel
getImplementors
-
-
-
-
Method Detail
-
getEntityNameResolvers
@Deprecated(since="6.0") Collection<EntityNameResolver> getEntityNameResolvers()
Deprecated.
-
entityPersister
@Deprecated(since="6.0") default EntityPersister entityPersister(Class<?> entityClass)
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(since="6.0") default EntityPersister entityPersister(String entityName)
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(since="6.0") Map<String,EntityPersister> 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(since="6.0") default CollectionPersister collectionPersister(String role)
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(since="6.0") Map<String,CollectionPersister> 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(since="6.0") Set<String> getCollectionRolesByEntityParticipant(String entityName)
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.
-
-