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
- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.default booleanDeprecated, for removal: This API element is subject to removal in a future version.Access the list ofBasicTyperegistrations.Access the list ofCompositeUserTyperegistrations.The service implementingIdentifierGeneratorFactory.Access to any implicit cacheAccessType.Access to theMappingDefaults.default CollectionSemanticsResolverdefault StringAccess to theStandardServiceRegistry.Access to theSharedCacheModeto determine if the second-level cache is enabled.Retrieve the ordering in which sources should be processed.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?booleandefault 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. -
getIdentifierGeneratorFactory
IdentifierGeneratorFactory getIdentifierGeneratorFactory()The service implementingIdentifierGeneratorFactory. -
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
-
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:
-
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:
-
isSpecjProprietarySyntaxEnabled
boolean isSpecjProprietarySyntaxEnabled() -
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:
-
getSourceProcessOrdering
List<MetadataSourceType> getSourceProcessOrdering()Retrieve the ordering in which sources should be processed.- Returns:
- The order in which sources should be processed.
- See Also:
-
getSchemaCharset
-
isXmlMappingEnabled
default boolean isXmlMappingEnabled()- See Also:
-
isAllowExtensionsInCdi
boolean isAllowExtensionsInCdi()Check to see if extensions can be hosted in CDI -
disallowExtensionsInCdi
Deprecated, for removal: This API element is subject to removal in a future version.Check to see if extensions can be hosted in CDI
-
isAllowExtensionsInCdi()