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 during MetadataBuilder.build() processing.- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.Access the list ofBasicTyperegistrations.Access the list ofCompositeUserTyperegistrations.Access to any implicit cacheAccessType.Deprecated, for removal: This API element is subject to removal in a future version.no longer calledAccess to theMappingDefaults.default CollectionSemanticsResolverdefault StringAccess to theStandardServiceRegistry.Access to theSharedCacheModeto determine if the second-level cache is enabled.booleanWhether explicit discriminator declarations should be ignored for joined subclass style inheritance.booleanCheck to see if extensions can be hosted in CDIbooleanIs multi-tenancy enabled?booleanShould we disable constraint creation whenConstraintMode.PROVIDER_DEFAULT?booleanWhether to use the legacy format for serializing/deserializing XML data.default booleanbooleanWhether we should implicitly force discriminators into SQL selects.booleanShould we use nationalized variants of character data by default?
-
Method Details
-
getServiceRegistry
StandardServiceRegistry getServiceRegistry()Access to theStandardServiceRegistry. -
getMappingDefaults
MappingDefaults getMappingDefaults()Access to theMappingDefaults. -
getDefaultTimeZoneStorage
TimeZoneStorageStrategy getDefaultTimeZoneStorage()- Returns:
- the
TimeZoneStorageStrategydetermined by the global configuration property and the time zone support of the configuredDialect - See Also:
-
getTimeZoneSupport
TimeZoneSupport getTimeZoneSupport()- Returns:
- the
TimeZoneSupportof the configuredDialect - See Also:
-
getWrapperArrayHandling
WrapperArrayHandling getWrapperArrayHandling()- Returns:
- the
WrapperArrayHandlingto use for wrapper arraysByte[]andCharacter[]. - See Also:
-
getManagedTypeRepresentationResolver
@Deprecated(since="7.0", forRemoval=true) default ManagedTypeRepresentationResolver getManagedTypeRepresentationResolver()Deprecated, for removal: This API element is subject to removal in a future version.no longer called -
getPersistentCollectionRepresentationResolver
-
getBasicTypeRegistrations
List<BasicTypeRegistration> getBasicTypeRegistrations()Access the list ofBasicTyperegistrations.These are the
BasicTypesexplicitly registered via calls to:- Returns:
- The
BasicTypesregistrations
-
getCompositeUserTypes
List<CompositeUserType<?>> getCompositeUserTypes()Access the list ofCompositeUserTyperegistrations. -
getImplicitNamingStrategy
ImplicitNamingStrategy getImplicitNamingStrategy()- See Also:
-
getPhysicalNamingStrategy
PhysicalNamingStrategy getPhysicalNamingStrategy()- See Also:
-
getColumnOrderingStrategy
ColumnOrderingStrategy getColumnOrderingStrategy()- See Also:
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()Access to any implicit cacheAccessType.- Returns:
- The implicit cache
AccessType - See Also:
-
isMultiTenancyEnabled
boolean isMultiTenancyEnabled()Is multi-tenancy enabled?Multi-tenancy is enabled implicitly if a
MultiTenantConnectionProvideris available.- Returns:
trueis multi-tenancy is enabled- See Also:
-
isXmlFormatMapperLegacyFormatEnabled
Whether to use the legacy format for serializing/deserializing XML data.- Since:
- 7.0
- See Also:
-
getTypeConfiguration
TypeConfiguration getTypeConfiguration()- Returns:
- the
TypeConfigurationbelonging to theBootstrapContext
-
ignoreExplicitDiscriminatorsForJoinedInheritance
boolean ignoreExplicitDiscriminatorsForJoinedInheritance()Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.- Returns:
trueindicates they should be ignored;falseindicates they should not be ignored.- See Also:
-
createImplicitDiscriminatorsForJoinedInheritance
boolean createImplicitDiscriminatorsForJoinedInheritance()Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.- Returns:
trueindicates we should do discrimination;falsewe should not.- See Also:
-
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:
trueindicates we should force the discriminator in selects for any mappings which do not say explicitly.- See Also:
-
useNationalizedCharacterData
boolean useNationalizedCharacterData()Should we use nationalized variants of character data by default?For example, should
NVARCHARbe used in preference toVARCHAR?- Returns:
trueif nationalized character data should be used by default;falseotherwise.- See Also:
-
isNoConstraintByDefault
boolean isNoConstraintByDefault()Should we disable constraint creation whenConstraintMode.PROVIDER_DEFAULT?- Returns:
trueif we should not create constraints by default;falseif we should.- See Also:
-
getSchemaCharset
- See Also:
-
isXmlMappingEnabled
default boolean isXmlMappingEnabled()- See Also:
-
isAllowExtensionsInCdi
boolean isAllowExtensionsInCdi()Check to see if extensions can be hosted in CDI
-