javax.persistence.metamodel.Metamodel contract.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private static final String[] | |
| private static final Object | |
| private final transient Map | |
| private final ConcurrentMap | |
| private final Map | |
| private final Map | |
| private final Map | |
| private static final String | |
| private final Map | jpaEmbeddableTypeMap
That's not strictly correct in the JPA standard since for a given Java type we could have multiple instances of an embeddable type. |
| private final Set | jpaEmbeddableTypes
There can be multiple instances of an Embeddable type, each one being relative to its parent entity. |
| private final Map | |
| private final Map | |
| private final Map | |
| private final Map | |
| private final Map | |
| private static final EntityManagerMessageLogger | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private final TypeConfiguration |
| Access | Constructor and Description |
|---|---|
| public | MetamodelImpl(SessionFactoryImplementor sessionFactory, TypeConfiguration typeConfiguration)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public <T> void | addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph)
Implements org. |
| public <T> void | addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
Implements org. |
| private void | applyNamedAttributeNodes(NamedAttributeNode[] namedAttributeNodes, NamedEntityGraph namedEntityGraph, GraphImplementor<J> graphNode)
|
| private void | |
| private void | applyNamedSubgraphs(NamedEntityGraph namedEntityGraph, String subgraphName, SubGraphImplementor<J> subgraph)
|
| private static EntityTypeImpl | |
| private static MappedSuperclassTypeImpl | |
| public void | |
| public CollectionPersister | collectionPersister(String
The role of the collection for which to retrieve the persister. role)Implements org. |
| public Map | collectionPersisters()
Implements org. |
| private String[] | |
| public <X> EmbeddedTypeDescriptor | embeddable(Class<X>
the type of the represented embeddable class cls)Implements org. |
| public <X> EntityTypeDescriptor | entity(Class<X>
the type of the represented entity cls)Implements org. |
| public <X> EntityTypeDescriptor | entity(String
The entity-name entityName)Implements org. |
| public EntityPersister | entityPersister(Class<T>
The entity class entityClass)Implements org. |
| public EntityPersister | entityPersister(String
The name of the entity for which to retrieve the persister. entityName)Implements org. |
| public Map | entityPersisters()
Implements org. |
| public <T> RootGraphImplementor | |
| public <T> List | findEntityGraphsByJavaType(Class<T> entityClass)
Implements org. |
| public String[] | getAllCollectionRoles()
Implements org. |
| public String[] | getAllEntityNames()
Implements org. |
| public Set | getCollectionRolesByEntityParticipant(String
The entity name for which to get the collection roles. entityName)Implements org. |
| public Set | getEmbeddables()
Implements javax. |
| public Set | getEntities()
Implements javax. |
| public Collection | |
| public String[] | getImplementors(String
The name of the entity class className)Implements org. |
| public String | getImportedClassName(final String className)
Implements org. |
| public Set | getManagedTypes()
Implements javax. |
| public SessionFactoryImplementor | getSessionFactory()
Implements org.
Deprecated
as a consequence of
Access to the SessionFactory that this Metamodel instance is bound to.
SessionFactoryImplementor being deprecated.
|
| public TypeConfiguration | getTypeConfiguration()
Implements org. |
| private static void | |
| public void | initialize(MetadataImplementor
The mapping information mappingMetadata, JpaMetaModelPopulationSetting Should the JPA Metamodel be built as well? jpaMetaModelPopulationSetting)Prepare the metamodel using the information from the collection of Hibernate
|
| public EntityPersister | locateEntityPersister(Class<T>
The concrete Class or proxy interface for the entity to locate the persister for. byClass)Implements org. |
| public EntityPersister | locateEntityPersister(String
The entity name byName)Implements org. |
| private static EntityTypeDescriptor | |
| private static MappedSuperclassTypeDescriptor | |
| public <X> ManagedTypeDescriptor | managedType(Class<X>
the type of the represented managed class cls)Implements org. |
| private void | |
| private static void | registerEntityNameResolvers(EntityPersister persister, Map<EntityNameResolver, Object> entityNameResolvers)
|
| private static void | registerEntityNameResolvers(EntityTuplizer tuplizer, Map<EntityNameResolver, Object> entityNameResolvers)
|
| collectionPersisterMap | back to summary |
|---|---|
| private final Map<String, CollectionPersister> collectionPersisterMap | |
| collectionRolesByEntityParticipant | back to summary |
|---|---|
| private final Map<String, Set<String>> collectionRolesByEntityParticipant | |
| EMPTY_IMPLEMENTORS | back to summary |
|---|---|
| private static final String[] EMPTY_IMPLEMENTORS | |
| ENTITY_NAME_RESOLVER_MAP_VALUE | back to summary |
|---|---|
| private static final Object ENTITY_NAME_RESOLVER_MAP_VALUE | |
| entityGraphMap | back to summary |
|---|---|
| private final transient Map<String, RootGraphImplementor<J>> entityGraphMap | |
| entityNameResolvers | back to summary |
|---|---|
| private final ConcurrentMap<EntityNameResolver, Object> entityNameResolvers | |
| entityPersisterMap | back to summary |
|---|---|
| private final Map<String, EntityPersister> entityPersisterMap | |
| entityProxyInterfaceMap | back to summary |
|---|---|
| private final Map<Class<T>, String> entityProxyInterfaceMap | |
| implementorsCache | back to summary |
|---|---|
| private final Map<String, String[]> implementorsCache | |
| INVALID_IMPORT | back to summary |
|---|---|
| private static final String INVALID_IMPORT | |
| jpaEmbeddableTypeMap | back to summary |
|---|---|
| private final Map<Class<?>, EmbeddedTypeDescriptor<?>> jpaEmbeddableTypeMap That's not strictly correct in the JPA standard since for a given Java type we could have multiple instances of an embeddable type. Some embeddable might override attributes, but we can only return a single EmbeddableTypeImpl for a given Java object class. A better approach would be if the parent class and attribute name would be included as well when trying to locate the embeddable type. | |
| jpaEmbeddableTypes | back to summary |
|---|---|
| private final Set<EmbeddedTypeDescriptor<?>> jpaEmbeddableTypes There can be multiple instances of an Embeddable type, each one being relative to its parent entity. | |
| jpaEntityTypeMap | back to summary |
|---|---|
| private final Map<Class<?>, EntityTypeDescriptor<?>> jpaEntityTypeMap | |
| jpaEntityTypesByEntityName | back to summary |
|---|---|
| private final Map<String, EntityTypeDescriptor<?>> jpaEntityTypesByEntityName | |
| jpaMappedSuperclassTypeMap | back to summary |
|---|---|
| private final Map<Class<?>, MappedSuperclassType<?>> jpaMappedSuperclassTypeMap | |
| knownInvalidImports | back to summary |
|---|---|
| private final Map<String, String> knownInvalidImports | |
| knownValidImports | back to summary |
|---|---|
| private final Map<String, String> knownValidImports | |
| log | back to summary |
|---|---|
| private static final EntityManagerMessageLogger log | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of | |
| typeConfiguration | back to summary |
|---|---|
| private final TypeConfiguration typeConfiguration | |
| MetamodelImpl | back to summary |
|---|---|
| public MetamodelImpl(SessionFactoryImplementor sessionFactory, TypeConfiguration typeConfiguration)
Deprecated as a consequence of | |
| addNamedEntityGraph | back to summary |
|---|---|
| public <T> void addNamedEntityGraph(String graphName, RootGraphImplementor<T> entityGraph) Implements org.
| |
| addNamedEntityGraph | back to summary |
|---|---|
| public <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph) Implements org.
| |
| applyNamedAttributeNodes | back to summary |
|---|---|
| private void applyNamedAttributeNodes(NamedAttributeNode[] namedAttributeNodes, NamedEntityGraph namedEntityGraph, GraphImplementor<J> graphNode) | |
| applyNamedEntityGraphs | back to summary |
|---|---|
private void applyNamedEntityGraphs(Collection<NamedEntityGraphDefinition> namedEntityGraphs)
| |
| applyNamedSubgraphs | back to summary |
|---|---|
| private void applyNamedSubgraphs(NamedEntityGraph namedEntityGraph, String subgraphName, SubGraphImplementor<J> subgraph) | |
| buildEntityType | back to summary |
|---|---|
private static EntityTypeImpl
| |
| buildMappedSuperclassType | back to summary |
|---|---|
private static MappedSuperclassTypeImpl
| |
| close | back to summary |
|---|---|
| public void close() Implements org.
| |
| collectionPersister | back to summary |
|---|---|
| public CollectionPersister collectionPersister(String role) Implements org. Doc from org. Get the persister object for a collection role.
| |
| collectionPersisters | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get all collection persisters as a Map, which collection role as the key and the persister is the value.
| |
| doGetImplementors | back to summary |
|---|---|
| private String[] doGetImplementors(Class<?> clazz) throws MappingException | |
| embeddable | back to summary |
|---|---|
| public <X> EmbeddedTypeDescriptor Implements org. Doc from javax. Return the metamodel embeddable type representing the embeddable class.
| |
| entity | back to summary |
|---|---|
| public <X> EntityTypeDescriptor Implements org. Doc from javax. Return the metamodel entity type representing the entity.
| |
| entity | back to summary |
|---|---|
| public <X> EntityTypeDescriptor Implements org. Doc from org. Access to an entity supporting Hibernate's entity-name feature
| |
| entityPersister | back to summary |
|---|---|
| public EntityPersister entityPersister(Class<T> entityClass) Implements org. Doc from org. Locate the persister for an entity by the entity class.
| |
| entityPersister | back to summary |
|---|---|
| public EntityPersister entityPersister(String entityName) throws MappingException Implements org. Doc from org. Locate the persister for an entity by the entity-name
| |
| entityPersisters | back to summary |
|---|---|
| public Map Implements org. Doc from org. 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 Implements org.
| |
| findEntityGraphsByJavaType | back to summary |
|---|---|
| public <T> List Implements org.
| |
| getAllCollectionRoles | back to summary |
|---|---|
| public String[] getAllCollectionRoles() Implements org. Doc from org. Get the names of all collections known to this Metamodel | |
| getAllEntityNames | back to summary |
|---|---|
| public String[] getAllEntityNames() Implements org. Doc from org. Get the names of all entities known to this Metamodel | |
| getCollectionRolesByEntityParticipant | back to summary |
|---|---|
| public Set Implements org. Doc from org. Retrieves a set of all the collection roles in which the given entity is a participant, as either an index or an element. | |
| getEmbeddables | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Return the metamodel embeddable types. Returns empty set if there are no embeddable types.
| |
| getEntities | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Return the metamodel entity types.
| |
| getEntityNameResolvers | back to summary |
|---|---|
| public Collection Implements org.
| |
| getImplementors | back to summary |
|---|---|
| public String[] getImplementors(String className) throws MappingException Implements org. Doc from org. Given the name of an entity class, determine all the class and interface names by which it can be referenced in an HQL query.
| |
| getImportedClassName | back to summary |
|---|---|
| public String getImportedClassName(final String className) Implements org.
| |
| getManagedTypes | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Return the metamodel managed types.
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getSessionFactory() Implements 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() Implements org. Doc from org. Access to the TypeConfiguration in effect for this SessionFactory/Metamodel
| |
| handleUnusedMappedSuperclasses | back to summary |
|---|---|
| private static void handleUnusedMappedSuperclasses(MetadataContext context) | |
| initialize | back to summary |
|---|---|
| public void initialize(MetadataImplementor mappingMetadata, JpaMetaModelPopulationSetting jpaMetaModelPopulationSetting) Prepare the metamodel using the information from the collection of Hibernate
| |
| locateEntityPersister | back to summary |
|---|---|
| public EntityPersister locateEntityPersister(Class<T> byClass) Implements org. Doc from org. 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) Implements org. Doc from org. Locate the entity persister by name.
| |
| locateOrBuildEntityType | back to summary |
|---|---|
| private static EntityTypeDescriptor | |
| locateOrBuildMappedSuperclassType | back to summary |
|---|---|
| private static MappedSuperclassTypeDescriptor | |
| managedType | back to summary |
|---|---|
| public <X> ManagedTypeDescriptor Implements org. Doc from javax. Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.
| |
| primeSecondLevelCacheRegions | back to summary |
|---|---|
| private void primeSecondLevelCacheRegions(MetadataImplementor mappingMetadata) | |
| registerEntityNameResolvers | back to summary |
|---|---|
| private static void registerEntityNameResolvers(EntityPersister persister, Map<EntityNameResolver, Object> entityNameResolvers) | |
| registerEntityNameResolvers | back to summary |
|---|---|
| private static void registerEntityNameResolvers(EntityTuplizer tuplizer, Map<EntityNameResolver, Object> entityNameResolvers) | |