Package org.hibernate.boot.spi
Interface MetadataBuildingOptions
-
- All Known Implementing Classes:
AbstractDelegatingMetadataBuildingOptions
,MetadataBuilderImpl.MetadataBuildingOptionsImpl
public interface MetadataBuildingOptions
Describes the options used while building the Metadata object (duringMetadataBuilder.build()
processing).- Since:
- 5.0
-
-
Method Summary
-
-
-
Method Detail
-
getServiceRegistry
StandardServiceRegistry getServiceRegistry()
Access to the service registry.- Returns:
- The service registry
-
getMappingDefaults
MappingDefaults getMappingDefaults()
Access to the mapping defaults.- Returns:
- The mapping defaults
-
getIdentifierGeneratorFactory
IdentifierGeneratorFactory getIdentifierGeneratorFactory()
-
getDefaultTimeZoneStorage
TimeZoneStorageStrategy getDefaultTimeZoneStorage()
-
getTimeZoneSupport
TimeZoneSupport getTimeZoneSupport()
-
getManagedTypeRepresentationResolver
default ManagedTypeRepresentationResolver getManagedTypeRepresentationResolver()
-
getPersistentCollectionRepresentationResolver
default CollectionSemanticsResolver getPersistentCollectionRepresentationResolver()
-
getBasicTypeRegistrations
List<BasicTypeRegistration> getBasicTypeRegistrations()
Access the list of BasicType registrations. These are the BasicTypes explicitly registered via calls to:- Returns:
- The BasicType registrations
-
getImplicitNamingStrategy
ImplicitNamingStrategy getImplicitNamingStrategy()
-
getPhysicalNamingStrategy
PhysicalNamingStrategy getPhysicalNamingStrategy()
-
getColumnOrderingStrategy
ColumnOrderingStrategy getColumnOrderingStrategy()
-
getSharedCacheMode
jakarta.persistence.SharedCacheMode getSharedCacheMode()
Access to the SharedCacheMode for determining whether we should perform second level caching or not.- Returns:
- The SharedCacheMode
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()
Access to any implicit cache AccessType.- Returns:
- The implicit cache AccessType
-
isMultiTenancyEnabled
boolean isMultiTenancyEnabled()
Access to the MultiTenancyStrategy for this environment.- Returns:
- The MultiTenancyStrategy
-
getIdGenerationTypeInterpreter
IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()
-
ignoreExplicitDiscriminatorsForJoinedInheritance
boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.- Returns:
true
indicates they should be ignored;false
indicates they should not be ignored.- See Also:
MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
createImplicitDiscriminatorsForJoinedInheritance
boolean createImplicitDiscriminatorsForJoinedInheritance()
Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.- Returns:
true
indicates we should do discrimination;false
we should not.- See Also:
MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
shouldImplicitlyForceDiscriminatorInSelect
boolean shouldImplicitlyForceDiscriminatorInSelect()
Whether we should implicitly force discriminators into SQL selects. By default, Hibernate will not. This can be specified per discriminator in the mapping as well.- Returns:
true
indicates we should force the discriminator in selects for any mappings which do not say explicitly.- See Also:
AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
useNationalizedCharacterData
boolean useNationalizedCharacterData()
Should we use nationalized variants of character data (e.g. NVARCHAR rather than VARCHAR) by default?- Returns:
true
if nationalized character data should be used by default;false
otherwise.- See Also:
MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean)
,AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
-
isSpecjProprietarySyntaxEnabled
boolean isSpecjProprietarySyntaxEnabled()
-
isNoConstraintByDefault
boolean isNoConstraintByDefault()
Should we create constraint by default?- Returns:
true
if not create constraint by default;false
otherwise.- See Also:
ConstraintMode.PROVIDER_DEFAULT
,AvailableSettings.HBM2DDL_DEFAULT_CONSTRAINT_MODE
-
getSourceProcessOrdering
List<MetadataSourceType> getSourceProcessOrdering()
Retrieve the ordering in which sources should be processed.- Returns:
- The order in which sources should be processed.
-
getSchemaCharset
default String getSchemaCharset()
-
isXmlMappingEnabled
default boolean isXmlMappingEnabled()
-
-