Package org.hibernate.boot.spi
Interface MetadataBuildingOptions
-
- All Known Implementing Classes:
AbstractDelegatingMetadataBuildingOptions,MetadataBuilderImpl.MetadataBuildingOptionsImpl,MockSessionFactory,ProcessorSessionFactory
public interface MetadataBuildingOptionsDescribes the options used while building theMetadataobject duringMetadataBuilder.build()processing.- Since:
- 5.0
-
-
Method Summary
-
-
-
Method Detail
-
getServiceRegistry
StandardServiceRegistry getServiceRegistry()
Access to theStandardServiceRegistry.
-
getMappingDefaults
MappingDefaults getMappingDefaults()
Access to theMappingDefaults.
-
getIdentifierGeneratorFactory
IdentifierGeneratorFactory getIdentifierGeneratorFactory()
The service implementingIdentifierGeneratorFactory.- Implementation Note:
- Almost always a
StandardIdentifierGeneratorFactory.
-
getDefaultTimeZoneStorage
TimeZoneStorageStrategy getDefaultTimeZoneStorage()
- Returns:
- the
TimeZoneStorageStrategydetermined by the global configuration property and the time zone support of the configuredDialect - See Also:
MappingSettings.TIMEZONE_DEFAULT_STORAGE,Dialect.getTimeZoneSupport()
-
getTimeZoneSupport
TimeZoneSupport getTimeZoneSupport()
- Returns:
- the
TimeZoneSupportof the configuredDialect - See Also:
Dialect.getTimeZoneSupport()
-
getWrapperArrayHandling
WrapperArrayHandling getWrapperArrayHandling()
- Returns:
- the
WrapperArrayHandlingto use for wrapper arraysByte[]andCharacter[]. - See Also:
MappingSettings.WRAPPER_ARRAY_HANDLING
-
getManagedTypeRepresentationResolver
default ManagedTypeRepresentationResolver getManagedTypeRepresentationResolver()
-
getPersistentCollectionRepresentationResolver
default CollectionSemanticsResolver 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:
MappingSettings.IMPLICIT_NAMING_STRATEGY
-
getPhysicalNamingStrategy
PhysicalNamingStrategy getPhysicalNamingStrategy()
- See Also:
MappingSettings.PHYSICAL_NAMING_STRATEGY
-
getColumnOrderingStrategy
ColumnOrderingStrategy getColumnOrderingStrategy()
- See Also:
MappingSettings.COLUMN_ORDERING_STRATEGY
-
getSharedCacheMode
SharedCacheMode getSharedCacheMode()
Access to theSharedCacheModeto determine if the second-level cache is enabled.- Returns:
- The
SharedCacheMode - See Also:
CacheSettings.JAKARTA_SHARED_CACHE_MODE
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()
Access to any implicit cacheAccessType.- Returns:
- The implicit cache
AccessType - See Also:
CacheSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGY
-
isMultiTenancyEnabled
boolean isMultiTenancyEnabled()
Is multi-tenancy enabled?Multi-tenancy is enabled implicitly if a
MultiTenantConnectionProvideris available.- Returns:
trueis multi-tenancy is enabled- See Also:
MultiTenancySettings.MULTI_TENANT_CONNECTION_PROVIDER
-
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:
MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean),MappingSettings.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:
trueindicates we should do discrimination;falsewe should not.- See Also:
MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean),MappingSettings.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:
trueindicates we should force the discriminator in selects for any mappings which do not say explicitly.- See Also:
MappingSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
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:
MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean),MappingSettings.USE_NATIONALIZED_CHARACTER_DATA
-
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:
ConstraintMode.PROVIDER_DEFAULT,SchemaToolingSettings.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.
- See Also:
MappingSettings.ARTIFACT_PROCESSING_ORDER
-
getSchemaCharset
default String getSchemaCharset()
-
isXmlMappingEnabled
default boolean isXmlMappingEnabled()
- See Also:
MappingSettings.XML_MAPPING_ENABLED
-
isAllowExtensionsInCdi
boolean isAllowExtensionsInCdi()
Check to see if extensions can be hosted in CDI
-
disallowExtensionsInCdi
@Deprecated(forRemoval=true) default boolean 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
-
-