Package org.hibernate.boot.spi
Interface MetadataBuildingContext
-
- All Known Subinterfaces:
EnversMetadataBuildingContext,HbmLocalMetadataBuildingContext,LocalMetadataBuildingContext
- All Known Implementing Classes:
EnversMetadataBuildingContextImpl,MappingDocument,MetadataBuildingContextRootImpl,MetadataBuildingContextTestingImpl
public interface MetadataBuildingContextDescribes the context in which the process of building Metadata out of MetadataSources occurs. BindingContext are generally hierarchical getting more specific as we "go down". E.g. global -> PU -> document -> mapping- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BootstrapContextgetBootstrapContext()MetadataBuildingOptionsgetBuildingOptions()Access to the options specified by theMetadataBuilderStringgetCurrentContributorName()The name of the contributor whose mappings we are currently processingMappingDefaultsgetMappingDefaults()Access to mapping defaults in effect for this contextInFlightMetadataCollectorgetMetadataCollector()Access to the collector of metadata as we build it.ObjectNameNormalizergetObjectNameNormalizer()Not sure how I feel about this exposed heredefault intgetPreferredSqlTypeCodeForArray()default intgetPreferredSqlTypeCodeForBoolean()default intgetPreferredSqlTypeCodeForDuration()default intgetPreferredSqlTypeCodeForInstant()default intgetPreferredSqlTypeCodeForUuid()TypeDefinitionRegistrygetTypeDefinitionRegistry()
-
-
-
Method Detail
-
getBootstrapContext
BootstrapContext getBootstrapContext()
-
getBuildingOptions
MetadataBuildingOptions getBuildingOptions()
Access to the options specified by theMetadataBuilder- Returns:
- The options
-
getMappingDefaults
MappingDefaults getMappingDefaults()
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
default int getPreferredSqlTypeCodeForBoolean()
-
getPreferredSqlTypeCodeForDuration
default int getPreferredSqlTypeCodeForDuration()
-
getPreferredSqlTypeCodeForUuid
default int getPreferredSqlTypeCodeForUuid()
-
getPreferredSqlTypeCodeForInstant
default int getPreferredSqlTypeCodeForInstant()
-
getPreferredSqlTypeCodeForArray
default int getPreferredSqlTypeCodeForArray()
-
getTypeDefinitionRegistry
TypeDefinitionRegistry getTypeDefinitionRegistry()
-
getCurrentContributorName
String getCurrentContributorName()
The name of the contributor whose mappings we are currently processing
-
-