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