Metamodel contract
| Modifier and Type | Method and Description |
|---|---|
| public <T> void | |
| public <T> void | addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
Deprecated
Use
addNamedEntityGraph(String, RootGraphImplementor) instead.
|
| public void | |
| public CollectionPersister | Returns: The persisterThe role of the collection for which to retrieve the persister. role)Get the persister object for a collection role. |
| public Map | Returns: The Map contains all collection persisters.Get all collection persisters as a Map, which collection role as the key and the persister is the value. |
| public <X> EmbeddedTypeDescriptor | embeddable(Class<X>
the type of the represented embeddable class cls)Redeclares javax. |
| public <X> EntityTypeDescriptor | entity(String
The entity-name entityName)Redeclares org. |
| public <X> EntityTypeDescriptor | entity(Class<X>
the type of the represented entity cls)Redeclares javax. |
| public EntityPersister | Returns: The entity persisterThe entity class entityClass)Locate the persister for an entity by the entity class. |
| public EntityPersister | Returns: The persisterThe name of the entity for which to retrieve the persister. entityName)Locate the persister for an entity by the entity-name |
| public Map | Returns: The Map contains all entity persisters.Get all entity persisters as a Map, which entity name its the key and the persister is the value. |
| public <T> RootGraphImplementor | |
| public <T> List | |
| public default <T> List | findEntityGraphsByType(Class<T> entityClass)
Deprecated
Use
findEntityGraphsByJavaType(Class) instead.
|
| public String[] | Returns: All of the entity namesGet the names of all collections known to this Metamodel |
| public String[] | Returns: All of the entity namesGet the names of all entities known to this Metamodel |
| public Set | Returns: set of all the collection roles in which the given entityName participates.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 | |
| public default EntityTypeDescriptor | getEntityTypeByName(String entityName)
Overrides default org. |
| public SessionFactoryImplementor | getSessionFactory()
Redeclares org.
Deprecated
as a consequence of
Access to the SessionFactory that this Metamodel instance is bound to.
SessionFactoryImplementor being deprecated.
|
| public TypeConfiguration | Returns: Access to the TypeConfigurationAccess to the TypeConfiguration in effect for this SessionFactory/Metamodel |
| public EntityPersister | Returns: The located EntityPersister, nevernullThe concrete Class or proxy interface for the entity to locate the persister for. byClass)Locate an EntityPersister by the entity class. |
| public EntityPersister | Returns: The located EntityPersister, nevernullThe entity name byName)Locate the entity persister by name. |
| public <X> ManagedTypeDescriptor | managedType(Class<X>
the type of the represented managed class cls)Redeclares javax. |
| addNamedEntityGraph | back to summary |
|---|---|
| public <T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph) | |
| addNamedEntityGraph | back to summary |
|---|---|
| public <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
Deprecated Use
| |
| close | back to summary |
|---|---|
| public void close() | |
| collectionPersister | back to summary |
|---|---|
| public CollectionPersister collectionPersister(String role) Get the persister object for a collection role.
| |
| collectionPersisters | back to summary |
|---|---|
| public Map Get all collection persisters as a Map, which collection role as the key and the persister is the value.
| |
| embeddable | back to summary |
|---|---|
| public <X> EmbeddedTypeDescriptor Redeclares javax. Doc from javax. Return the metamodel embeddable type representing the embeddable class.
| |
| entity | back to summary |
|---|---|
| public <X> EntityTypeDescriptor Redeclares org. Doc from org. Access to an entity supporting Hibernate's entity-name feature
| |
| entity | back to summary |
|---|---|
| public <X> EntityTypeDescriptor Redeclares javax. Doc from javax. Return the metamodel entity type representing the entity.
| |
| entityPersister | back to summary |
|---|---|
| public EntityPersister entityPersister(Class<T> entityClass) Locate the persister for an entity by the entity class.
| |
| entityPersister | back to summary |
|---|---|
| public EntityPersister entityPersister(String entityName) Locate the persister for an entity by the entity-name
| |
| entityPersisters | back to summary |
|---|---|
| public Map Get all entity persisters as a Map, which entity name its the key and the persister is the value.
| |
| findEntityGraphByName | back to summary |
|---|---|
| public <T> RootGraphImplementor | |
| findEntityGraphsByJavaType | back to summary |
|---|---|
| public <T> List | |
| findEntityGraphsByType | back to summary |
|---|---|
| public default <T> List Deprecated Use
| |
| getAllCollectionRoles | back to summary |
|---|---|
| public String[] getAllCollectionRoles() Get the names of all collections known to this Metamodel
| |
| getAllEntityNames | back to summary |
|---|---|
| public String[] getAllEntityNames() Get the names of all entities known to this Metamodel
| |
| getCollectionRolesByEntityParticipant | back to summary |
|---|---|
| public Set Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element. | |
| getEntityNameResolvers | back to summary |
|---|---|
| public Collection | |
| getEntityTypeByName | back to summary |
|---|---|
| public default EntityTypeDescriptor Overrides default org.
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Redeclares org. Doc from org. Deprecated as a consequence of Access to the SessionFactory that this Metamodel instance is bound to.
| |
| getTypeConfiguration | back to summary |
|---|---|
| public TypeConfiguration getTypeConfiguration() Access to the TypeConfiguration in effect for this SessionFactory/Metamodel
| |
| locateEntityPersister | back to summary |
|---|---|
| public EntityPersister locateEntityPersister(Class<T> byClass) Locate an EntityPersister by the entity class. The passed Class might refer to either the entity name directly, or it might name a proxy interface for the entity. This method accounts for both, preferring the direct named entity name.
| |
| locateEntityPersister | back to summary |
|---|---|
| public EntityPersister locateEntityPersister(String byName) Locate the entity persister by name.
| |
| managedType | back to summary |
|---|---|
| public <X> ManagedTypeDescriptor Redeclares javax. Doc from javax. Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.
| |