public interface MetamodelImplementor extends Metamodel
Modifier and Type | Method and Description |
---|---|
<T> void |
addNamedEntityGraph(String graphName,
EntityGraph<T> entityGraph) |
void |
close() |
CollectionPersister |
collectionPersister(String role)
Get the persister object for a collection role.
|
Map<String,CollectionPersister> |
collectionPersisters()
Get all collection persisters as a Map, which collection role as the key and the persister is the value.
|
EntityPersister |
entityPersister(Class entityClass)
Locate the persister for an entity by the entity class.
|
EntityPersister |
entityPersister(String entityName)
Locate the persister for an entity by the entity-name
|
Map<String,EntityPersister> |
entityPersisters()
Get all entity persisters as a Map, which entity name its the key and the persister is the value.
|
<T> EntityGraph<T> |
findEntityGraphByName(String name) |
<T> List<EntityGraph<? super T>> |
findEntityGraphsByType(Class<T> entityClass) |
String[] |
getAllCollectionRoles()
Get the names of all collections known to this Metamodel
|
String[] |
getAllEntityNames()
Get the names of all entities known to this Metamodel
|
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.
|
Collection<EntityNameResolver> |
getEntityNameResolvers() |
SessionFactoryImplementor |
getSessionFactory()
Access to the SessionFactory that this Metamodel instance is bound to.
|
TypeConfiguration |
getTypeConfiguration()
Access to the TypeConfiguration in effect for this SessionFactory/Metamodel
|
EntityPersister |
locateEntityPersister(Class byClass)
Locate an EntityPersister by the entity class.
|
EntityPersister |
locateEntityPersister(String byName)
Locate the entity persister by name.
|
entity, getEntityTypeByName, getImplementors, getImportedClassName
embeddable, entity, getEmbeddables, getEntities, getManagedTypes, managedType
TypeConfiguration getTypeConfiguration()
SessionFactoryImplementor getSessionFactory()
Metamodel
Collection<EntityNameResolver> getEntityNameResolvers()
EntityPersister locateEntityPersister(Class byClass)
byClass
- The concrete Class or proxy interface for the entity to locate the persister for.null
UnknownEntityTypeException
- If a matching EntityPersister cannot be locatedEntityPersister locateEntityPersister(String byName)
byName
- The entity namenull
UnknownEntityTypeException
- If a matching EntityPersister cannot be locatedEntityPersister entityPersister(Class entityClass)
entityClass
- The entity classMappingException
- Indicates persister for that class could not be found.EntityPersister entityPersister(String entityName)
entityName
- The name of the entity for which to retrieve the persister.MappingException
- Indicates persister could not be found with that name.Map<String,EntityPersister> entityPersisters()
CollectionPersister collectionPersister(String role)
role
- The role of the collection for which to retrieve the persister.MappingException
- Indicates persister could not be found with that role.Map<String,CollectionPersister> collectionPersisters()
Set<String> getCollectionRolesByEntityParticipant(String entityName)
entityName
- The entity name for which to get the collection roles.String[] getAllEntityNames()
String[] getAllCollectionRoles()
<T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
<T> EntityGraph<T> findEntityGraphByName(String name)
<T> List<EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
void close()
Copyright © 2019 JBoss by Red Hat. All rights reserved.