Top Description Methods
org.hibernate.metamodel.spi

public Interface MetamodelImplementor

extends MappingMetamodel, Metamodel
Known Direct Implementers
org.hibernate.metamodel.model.domain.internal.MappingMetamodelImpl
Annotations
@Deprecated
since:6.0
Imports
java.util.Collection, .Map, .Set, org.hibernate.EntityNameResolver, .MappingException, .Metamodel, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.MappingMetamodel, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.EntityPersister

Deprecated

since 6.0.

Use MappingMetamodel or org.hibernate.metamodel.model.domain.JpaMetamodel instead. See org.hibernate.metamodel.RuntimeMetamodels.

Extensions to the JPA-defined Metamodel contract.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
public default CollectionPersister

Returns:

The persister
collectionPersister
(String
The role of the collection for which to retrieve the persister.
role
)

Deprecated since 6.0. Use MappingMetamodel#getCollectionDescriptor instead
Get the persister object for a collection role.
public Map<String, CollectionPersister>

Returns:

The Map contains all collection persisters.
collectionPersisters
()

Deprecated since 6.0. With no direct replacement; see MappingMetamodel#forEachCollectionDescriptor and MappingMetamodel#streamCollectionDescriptors() instead
Get all collection persisters as a Map, which collection role as the key and the persister is the value.
public default EntityPersister

Returns:

The entity persister
entityPersister
(Class<?>
The entity class
entityClass
)

Deprecated since 6.0. Use MappingMetamodel#getEntityDescriptor instead
Locate the persister for an entity by the entity class.
public default EntityPersister

Returns:

The persister
entityPersister
(String
The name of the entity for which to retrieve the persister.
entityName
)

Deprecated since 6.0. Use MappingMetamodel#getEntityDescriptor instead
Locate the persister for an entity by the entity-name
public Map<String, EntityPersister>

Returns:

The Map contains all entity persisters.
entityPersisters
()

Deprecated since 6.0. With no direct replacement; see MappingMetamodel#forEachEntityDescriptor and MappingMetamodel#streamEntityDescriptors() instead
Get all entity persisters as a Map, which entity name its the key and the persister is the value.
public String[]

Returns:

All the entity names
getAllCollectionRoles
()

Get the names of all collections known to this Metamodel

public String[]

Returns:

All the entity names
getAllEntityNames
()

Get the names of all entities known to this Metamodel

public Set<String>

Returns:

set of all the collection roles in which the given entityName participates.
getCollectionRolesByEntityParticipant
(String
The entity name for which to get the collection roles.
entityName
)

Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element.
public Collection<EntityNameResolver>
Inherited from org.hibernate.Metamodel:
getImplementors
Inherited from org.hibernate.metamodel.MappingMetamodel:
addNamedEntityGraphdefaultGraphdefaultGraphdefaultGraphdefaultGraphfindCollectionDescriptorfindCollectionDescriptorfindEntityDescriptorfindEntityDescriptorfindNamedGraphfindRootGraphsForTypefindRootGraphsForTypefindRootGraphsForTypeforEachCollectionDescriptorforEachEntityDescriptorforEachNamedGraphgetCollectionDescriptorgetCollectionDescriptorgetEmbeddableValuedModelPartgetEntityDescriptorgetEntityDescriptorgetEntityDescriptorgetImportedNamegetTypeConfigurationisEntityClasslocateEntityDescriptorlocateEntityPersisterlocateEntityPersisterresolveMappingExpressibleresolveQueryParameterTypestreamCollectionDescriptorsstreamEntityDescriptors

Method Detail

closeback to summary
public void close()
collectionPersisterback to summary
public default CollectionPersister collectionPersister(String role)

Deprecated

since 6.0.

Use MappingMetamodel#getCollectionDescriptor instead

Get the persister object for a collection role.

Parameters
role:String

The role of the collection for which to retrieve the persister.

Returns:CollectionPersister

The persister

Annotations
@Deprecated
since:6.0
Exceptions
MappingException:
Indicates persister could not be found with that role.
collectionPersistersback to summary
public Map<String, CollectionPersister> collectionPersisters()

Deprecated

since 6.0.

With no direct replacement; see MappingMetamodel#forEachCollectionDescriptor and MappingMetamodel#streamCollectionDescriptors() instead

Get all collection persisters as a Map, which collection role as the key and the persister is the value.

Returns:Map<String, CollectionPersister>

The Map contains all collection persisters.

Annotations
@Deprecated
since:6.0
entityPersisterback to summary
public default EntityPersister entityPersister(Class<?> entityClass)

Deprecated

since 6.0.

Use MappingMetamodel#getEntityDescriptor instead

Locate the persister for an entity by the entity class.

Parameters
entityClass:Class<?>

The entity class

Returns:EntityPersister

The entity persister

Annotations
@Deprecated
since:6.0
Exceptions
MappingException:
Indicates persister for that class could not be found.
entityPersisterback to summary
public default EntityPersister entityPersister(String entityName)

Deprecated

since 6.0.

Use MappingMetamodel#getEntityDescriptor instead

Locate the persister for an entity by the entity-name

Parameters
entityName:String

The name of the entity for which to retrieve the persister.

Returns:EntityPersister

The persister

Annotations
@Deprecated
since:6.0
Exceptions
MappingException:
Indicates persister could not be found with that name.
entityPersistersback to summary
public Map<String, EntityPersister> entityPersisters()

Deprecated

since 6.0.

With no direct replacement; see MappingMetamodel#forEachEntityDescriptor and MappingMetamodel#streamEntityDescriptors() instead

Get all entity persisters as a Map, which entity name its the key and the persister is the value.

Returns:Map<String, EntityPersister>

The Map contains all entity persisters.

Annotations
@Deprecated
since:6.0
getAllCollectionRolesback to summary
public String[] getAllCollectionRoles()

Get the names of all collections known to this Metamodel

Returns:String[]

All the entity names

getAllEntityNamesback to summary
public String[] getAllEntityNames()

Get the names of all entities known to this Metamodel

Returns:String[]

All the entity names

getCollectionRolesByEntityParticipantback to summary
public Set<String> getCollectionRolesByEntityParticipant(String entityName)

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:String

The entity name for which to get the collection roles.

Returns:Set<String>

set of all the collection roles in which the given entityName participates.

Annotations
@Deprecated
since:6.0
getEntityNameResolversback to summary
public Collection<EntityNameResolver> getEntityNameResolvers()

Deprecated

since 6.0.

Use MappingMetamodelImplementor#getEntityNameResolvers instead

Annotations
@Deprecated
since:6.0