Package org.hibernate.boot.spi
Interface MetadataBuildingContext
- All Known Subinterfaces:
EnversMetadataBuildingContext
,HbmLocalMetadataBuildingContext
,LocalMetadataBuildingContext
- All Known Implementing Classes:
DialectFeatureChecks.FakeMetadataBuildingContext
,EnversMetadataBuildingContextImpl
,MappingDocument
,MetadataBuildingContextRootImpl
,MetadataBuildingContextTestingImpl
,MockSessionFactory
,ProcessorSessionFactory
public interface MetadataBuildingContext
Describes the context in which the process of building
Metadata
from MetadataSources
occurs.
MetadataBuildingContext
s are hierarchical: global, persistence unit, document, mapping.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionAccess to the options specified by theMetadataBuilder
The name of the contributor whose mappings we are currently processingAccess to mapping defaults in effect for this contextAccess to the collector of metadata as we build it.Not sure how I feel about this exposed heredefault int
default int
default int
default int
default int
default boolean
static boolean
isPreferJavaTimeJdbcTypesEnabled
(ConfigurationService configurationService) static boolean
isPreferJavaTimeJdbcTypesEnabled
(ServiceRegistry serviceRegistry) default boolean
static boolean
isPreferNativeEnumTypesEnabled
(ConfigurationService configurationService) static boolean
isPreferNativeEnumTypesEnabled
(ServiceRegistry serviceRegistry)
-
Method Details
-
getBootstrapContext
BootstrapContext getBootstrapContext() -
getBuildingOptions
MetadataBuildingOptions getBuildingOptions()Access to the options specified by theMetadataBuilder
- Returns:
- The options
-
getEffectiveDefaults
EffectiveMappingDefaults getEffectiveDefaults()Access to mapping defaults in effect for this context- Returns:
- The mapping defaults.
-
getMetadataCollector
InFlightMetadataCollector getMetadataCollector()Access to the collector of metadata as we build it.- Returns:
- The metadata collector.
-
getObjectNameNormalizer
ObjectNameNormalizer getObjectNameNormalizer()Not sure how I feel about this exposed here- Returns:
- The ObjectNameNormalizer
-
getPreferredSqlTypeCodeForBoolean
-
getPreferredSqlTypeCodeForDuration
-
getPreferredSqlTypeCodeForUuid
-
getPreferredSqlTypeCodeForInstant
-
getPreferredSqlTypeCodeForArray
-
isPreferJavaTimeJdbcTypesEnabled
-
isPreferNativeEnumTypesEnabled
-
isPreferJavaTimeJdbcTypesEnabled
-
isPreferNativeEnumTypesEnabled
-
isPreferJavaTimeJdbcTypesEnabled
-
isPreferNativeEnumTypesEnabled
-
getTypeDefinitionRegistry
TypeDefinitionRegistry getTypeDefinitionRegistry() -
getCurrentContributorName
String getCurrentContributorName()The name of the contributor whose mappings we are currently processing
-