Package org.hibernate.boot.spi
Interface MetadataImplementor
- All Superinterfaces:
MappingContext
,Metadata
- All Known Subinterfaces:
InFlightMetadataCollector
- All Known Implementing Classes:
AbstractDelegatingMetadata
,InFlightMetadataCollectorImpl
,MetadataImpl
The SPI-level
Metadata
contract.- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionShort-hand form of building aSessionFactory
through the builder without any additional option overrides.Access to theSqmFunctionRegistry
belonging to theBootstrapContext
getGenericComponent
(Class<?> componentClass) Access to the options used to build thisMetadata
Access to theTypeConfiguration
belonging to theBootstrapContext
void
initSessionFactory
(SessionFactoryImplementor sessionFactoryImplementor) void
orderColumns
(boolean forceOrdering) resolveEmbeddableDiscriminatorType
(Class<?> embeddableClass, Supplier<DiscriminatorType<?>> supplier) void
validate()
void
visitRegisteredComponents
(Consumer<Component> consumer) Methods inherited from interface org.hibernate.type.MappingContext
getIdentifierPropertyName, getIdentifierType, getReferencedPropertyType
Methods inherited from interface org.hibernate.boot.Metadata
collectTableMappings, getCollectionBinding, getCollectionBindings, getContributors, getDatabase, getEntityBinding, getEntityBindings, getFetchProfile, getFetchProfiles, getFilterDefinition, getFilterDefinitions, getIdentifierGenerator, getImports, getNamedEntityGraph, getNamedEntityGraphs, getNamedHqlQueryMapping, getNamedNativeQueryMapping, getNamedProcedureCallMapping, getResultSetMapping, getSessionFactoryBuilder, getSqlFunctionMap, getTypeDefinition, getUUID, visitNamedHqlQueryDefinitions, visitNamedNativeQueryDefinitions, visitNamedProcedureCallDefinition, visitNamedResultSetMappingDefinition
-
Method Details
-
getMetadataBuildingOptions
MetadataBuildingOptions getMetadataBuildingOptions()Access to the options used to build thisMetadata
- Returns:
- The
MetadataBuildingOptions
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()Access to theTypeConfiguration
belonging to theBootstrapContext
-
getFunctionRegistry
SqmFunctionRegistry getFunctionRegistry()Access to theSqmFunctionRegistry
belonging to theBootstrapContext
-
buildNamedQueryRepository
NamedObjectRepository buildNamedQueryRepository() -
orderColumns
-
validate
- Throws:
MappingException
-
getMappedSuperclassMappingsCopy
Set<MappedSuperclass> getMappedSuperclassMappingsCopy() -
initSessionFactory
-
visitRegisteredComponents
-
getGenericComponent
-
resolveEmbeddableDiscriminatorType
DiscriminatorType<?> resolveEmbeddableDiscriminatorType(Class<?> embeddableClass, Supplier<DiscriminatorType<?>> supplier) -
buildSessionFactory
SessionFactoryImplementor buildSessionFactory()Description copied from interface:Metadata
Short-hand form of building aSessionFactory
through the builder without any additional option overrides.- Specified by:
buildSessionFactory
in interfaceMetadata
- Returns:
- THe built SessionFactory.
-