public interface MappingMetamodel
Modifier and Type | Method and Description |
---|---|
RootGraph<?> |
defaultGraph(Class entityJavaType) |
RootGraph<?> |
defaultGraph(EntityDomainType<?> entityDomainType) |
RootGraph<?> |
defaultGraph(EntityPersister entityDescriptor) |
RootGraph<?> |
defaultGraph(String entityName) |
CollectionPersister |
findCollectionDescriptor(NavigableRole role)
Find a collection mapping descriptor based on its role.
|
CollectionPersister |
findCollectionDescriptor(String role)
Find a collection mapping descriptor based on its role.
|
EntityPersister |
findEntityDescriptor(Class entityJavaType)
Find an entity mapping descriptor based on its Class.
|
EntityPersister |
findEntityDescriptor(String entityName)
Find an entity mapping descriptor based on its Hibernate entity-name.
|
RootGraph<?> |
findNamedGraph(String name) |
List<RootGraph<?>> |
findRootGraphsForType(Class baseEntityJavaType) |
List<RootGraph<?>> |
findRootGraphsForType(EntityPersister baseEntityDescriptor) |
List<RootGraph<?>> |
findRootGraphsForType(String baseEntityName) |
CollectionPersister |
getCollectionDescriptor(NavigableRole role)
Get a collection mapping descriptor based on its role
|
CollectionPersister |
getCollectionDescriptor(String role)
Get a collection mapping descriptor based on its role
|
EntityPersister |
getEntityDescriptor(Class entityJavaType)
Get an entity mapping descriptor based on its Class.
|
EntityPersister |
getEntityDescriptor(NavigableRole name)
Get an entity mapping descriptor based on its NavigableRole.
|
EntityPersister |
getEntityDescriptor(String entityName)
Get an entity mapping descriptor based on its Hibernate entity-name
|
String |
getImportedName(String name) |
TypeConfiguration |
getTypeConfiguration()
The TypeConfiguration this metamodel is associated with
|
MappingModelExpressable |
lenientlyResolveMappingExpressable(SqmExpressable<?> sqmExpressable,
Function<NavigablePath,TableGroup> tableGroupLocator) |
EntityPersister |
locateEntityDescriptor(Class byClass)
Locate an entity mapping descriptor by Class.
|
default EntityPersister |
locateEntityPersister(Class byClass)
Deprecated.
(since 6.0) use
locateEntityDescriptor(Class) instead |
EntityPersister |
locateEntityPersister(String byName)
Deprecated.
(since 6.0) - use
getEntityDescriptor(String) instead |
EntityPersister |
resolveEntityDescriptor(EntityDomainType<?> entityDomainType)
Given a JPA entity domain type, get the associated Hibernate entity descriptor
|
MappingModelExpressable |
resolveMappingExpressable(SqmExpressable<?> sqmExpressable,
Function<NavigablePath,TableGroup> tableGroupLocator)
todo (6.0) : POC!!! Intended for use in SQM -> SQL translation
|
<T> AllowableParameterType<T> |
resolveQueryParameterType(Class<T> javaType)
Given a Java type, determine the corresponding AllowableParameterType to
use implicitly
|
void |
visitCollectionDescriptors(Consumer<CollectionPersister> action)
Visit the mapping descriptors for all collections defined in the model
|
void |
visitEntityDescriptors(Consumer<EntityPersister> action)
Visit all entity mapping descriptors defined in the model
|
void |
visitNamedGraphs(Consumer<RootGraph<?>> action) |
TypeConfiguration getTypeConfiguration()
MappingModelExpressable resolveMappingExpressable(SqmExpressable<?> sqmExpressable, Function<NavigablePath,TableGroup> tableGroupLocator)
MappingModelExpressable lenientlyResolveMappingExpressable(SqmExpressable<?> sqmExpressable, Function<NavigablePath,TableGroup> tableGroupLocator)
<T> AllowableParameterType<T> resolveQueryParameterType(Class<T> javaType)
void visitEntityDescriptors(Consumer<EntityPersister> action)
EntityPersister resolveEntityDescriptor(EntityDomainType<?> entityDomainType)
EntityPersister getEntityDescriptor(String entityName)
IllegalArgumentException
- if the name does not refer to an entityfindEntityDescriptor(java.lang.String)
EntityPersister getEntityDescriptor(NavigableRole name)
IllegalArgumentException
- if the name does not refer to an entityfindEntityDescriptor(java.lang.String)
EntityPersister getEntityDescriptor(Class entityJavaType)
IllegalArgumentException
- if the name does not refer to an entityfindEntityDescriptor(java.lang.String)
EntityPersister findEntityDescriptor(String entityName)
null
rather than throwing exceptionEntityPersister findEntityDescriptor(Class entityJavaType)
null
rather than throwing exceptionEntityPersister locateEntityDescriptor(Class byClass)
UnknownEntityTypeException
- If a matching EntityPersister cannot be located@Deprecated default EntityPersister locateEntityPersister(Class byClass)
locateEntityDescriptor(Class)
insteadlocateEntityDescriptor(java.lang.Class)
@Deprecated EntityPersister locateEntityPersister(String byName)
getEntityDescriptor(String)
insteadnull
UnknownEntityTypeException
- If a matching EntityPersister cannot be locatedvoid visitCollectionDescriptors(Consumer<CollectionPersister> action)
CollectionPersister getCollectionDescriptor(String role)
IllegalArgumentException
- if the role does not refer to a collectionfindCollectionDescriptor(org.hibernate.metamodel.model.domain.NavigableRole)
CollectionPersister getCollectionDescriptor(NavigableRole role)
IllegalArgumentException
- if the role does not refer to a collectionfindCollectionDescriptor(org.hibernate.metamodel.model.domain.NavigableRole)
CollectionPersister findCollectionDescriptor(NavigableRole role)
null
if the role does not refer to a collectionCollectionPersister findCollectionDescriptor(String role)
null
if the role does not refer to a collectionRootGraph<?> defaultGraph(EntityPersister entityDescriptor)
RootGraph<?> defaultGraph(EntityDomainType<?> entityDomainType)
List<RootGraph<?>> findRootGraphsForType(EntityPersister baseEntityDescriptor)
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.