Top Description Methods
org.hibernate.boot.spi

public Interface MetadataBuildingOptions

Known Direct Implementers
org.hibernate.boot.internal.MetadataBuilderImpl.MetadataBuildingOptionsImpl, org.hibernate.boot.spi.AbstractDelegatingMetadataBuildingOptions
Imports
java.util.List, org.hibernate.TimeZoneStorageStrategy, org.hibernate.boot.model.naming.ImplicitNamingStrategy, .PhysicalNamingStrategy, org.hibernate.boot.model.relational.ColumnOrderingStrategy, org.hibernate.boot.registry.StandardServiceRegistry, org.hibernate.cache.spi.access.AccessType, org.hibernate.cfg.MetadataSourceType, org.hibernate.collection.internal.StandardCollectionSemanticsResolver, org.hibernate.collection.spi.CollectionSemanticsResolver, org.hibernate.dialect.TimeZoneSupport, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider, org.hibernate.id.factory.IdentifierGeneratorFactory, org.hibernate.metamodel.internal.ManagedTypeRepresentationResolverStandard, org.hibernate.metamodel.spi.ManagedTypeRepresentationResolver, org.hibernate.type.WrapperArrayHandling, org.hibernate.type.spi.TypeConfiguration, org.hibernate.usertype.CompositeUserType, jakarta.persistence.SharedCacheMode

Describes the options used while building the org.hibernate.boot.Metadata object during org.hibernate.boot.MetadataBuilder#build() processing.
Author
Steve Ebersole
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true indicates we should do discrimination; false we should not.
createImplicitDiscriminatorsForJoinedInheritance
()

Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.

public default boolean
disallowExtensionsInCdi()

Deprecated for removal. Use isAllowExtensionsInCdi()
Check to see if extensions can be hosted in CDI
public List<BasicTypeRegistration>

Returns:

The BasicTypes registrations
getBasicTypeRegistrations
()

Access the list of org.hibernate.type.BasicType registrations.

public ColumnOrderingStrategy
public List<CompositeUserType<?>>
getCompositeUserTypes()

Access the list of CompositeUserType registrations.

public TimeZoneStorageStrategy

Returns:

the TimeZoneStorageStrategy determined by the global configuration property and the time zone support of the configured org.hibernate.dialect.Dialect
getDefaultTimeZoneStorage
()

public IdentifierGeneratorFactory
public AccessType

Returns:

The implicit cache AccessType
getImplicitCacheAccessType
()

Access to any implicit cache AccessType.

public ImplicitNamingStrategy
public default ManagedTypeRepresentationResolver
public MappingDefaults
public default CollectionSemanticsResolver
public PhysicalNamingStrategy
public default String
public StandardServiceRegistry
public SharedCacheMode

Returns:

The SharedCacheMode
getSharedCacheMode
()

Access to the SharedCacheMode to determine if the second-level cache is enabled.

public List<MetadataSourceType>

Returns:

The order in which sources should be processed.
getSourceProcessOrdering
()

Retrieve the ordering in which sources should be processed.

public TimeZoneSupport
public TypeConfiguration
public WrapperArrayHandling

Returns:

the WrapperArrayHandling to use for wrapper arrays Byte[] and Character[].
getWrapperArrayHandling
()

public boolean

Returns:

true indicates they should be ignored; false indicates they should not be ignored.
ignoreExplicitDiscriminatorsForJoinedInheritance
()

Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.

public boolean
isAllowExtensionsInCdi()

Check to see if extensions can be hosted in CDI

public boolean

Returns:

true is multi-tenancy is enabled
isMultiTenancyEnabled
()

Is multi-tenancy enabled?

public boolean

Returns:

true if we should not create constraints by default; false if we should.
isNoConstraintByDefault
()

Should we disable constraint creation when jakarta.persistence.ConstraintMode#PROVIDER_DEFAULT?

public boolean
public default boolean
public boolean

Returns:

true indicates we should force the discriminator in selects for any mappings which do not say explicitly.
shouldImplicitlyForceDiscriminatorInSelect
()

Whether we should implicitly force discriminators into SQL selects.

public boolean

Returns:

true if nationalized character data should be used by default; false otherwise.
useNationalizedCharacterData
()

Should we use nationalized variants of character data by default?

Method Detail

createImplicitDiscriminatorsForJoinedInheritanceback to summary
public boolean createImplicitDiscriminatorsForJoinedInheritance()

Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.

Returns:boolean

true indicates we should do discrimination; false we should not.

See Also
org.hibernate.boot.MetadataBuilder#enableImplicitDiscriminatorsForJoinedSubclassSupport, org.hibernate.cfg.AvailableSettings#IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
disallowExtensionsInCdiback to summary
public default boolean disallowExtensionsInCdi()

Deprecated

for removal.

Use isAllowExtensionsInCdi()

Check to see if extensions can be hosted in CDI

Annotations
@Deprecated
forRemoval:true
getBasicTypeRegistrationsback to summary
public List<BasicTypeRegistration> getBasicTypeRegistrations()

Access the list of org.hibernate.type.BasicType registrations.

These are the BasicTypes explicitly registered via calls to:

Returns:List<BasicTypeRegistration>

The BasicTypes registrations

getColumnOrderingStrategyback to summary
public ColumnOrderingStrategy getColumnOrderingStrategy()
See Also
org.hibernate.cfg.AvailableSettings#COLUMN_ORDERING_STRATEGY
getCompositeUserTypesback to summary
public List<CompositeUserType<?>> getCompositeUserTypes()

Access the list of CompositeUserType registrations.

getDefaultTimeZoneStorageback to summary
public TimeZoneStorageStrategy getDefaultTimeZoneStorage()
Returns:TimeZoneStorageStrategy

the TimeZoneStorageStrategy determined by the global configuration property and the time zone support of the configured org.hibernate.dialect.Dialect

See Also
org.hibernate.cfg.AvailableSettings#TIMEZONE_DEFAULT_STORAGE, org.hibernate.dialect.Dialect#getTimeZoneSupport()
getIdentifierGeneratorFactoryback to summary
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()

The service implementing IdentifierGeneratorFactory.

getImplicitCacheAccessTypeback to summary
public AccessType getImplicitCacheAccessType()

Access to any implicit cache AccessType.

Returns:AccessType

The implicit cache AccessType

See Also
org.hibernate.cfg.AvailableSettings#DEFAULT_CACHE_CONCURRENCY_STRATEGY
getImplicitNamingStrategyback to summary
public ImplicitNamingStrategy getImplicitNamingStrategy()
See Also
org.hibernate.cfg.AvailableSettings#IMPLICIT_NAMING_STRATEGY
getManagedTypeRepresentationResolverback to summary
public default ManagedTypeRepresentationResolver getManagedTypeRepresentationResolver()
getMappingDefaultsback to summary
public MappingDefaults getMappingDefaults()

Access to the MappingDefaults.

getPersistentCollectionRepresentationResolverback to summary
public default CollectionSemanticsResolver getPersistentCollectionRepresentationResolver()
getPhysicalNamingStrategyback to summary
public PhysicalNamingStrategy getPhysicalNamingStrategy()
See Also
org.hibernate.cfg.AvailableSettings#PHYSICAL_NAMING_STRATEGY
getSchemaCharsetback to summary
public default String getSchemaCharset()
See Also
org.hibernate.cfg.AvailableSettings#HBM2DDL_CHARSET_NAME
getServiceRegistryback to summary
public StandardServiceRegistry getServiceRegistry()

Access to the StandardServiceRegistry.

getSharedCacheModeback to summary
public SharedCacheMode getSharedCacheMode()

Access to the SharedCacheMode to determine if the second-level cache is enabled.

Returns:SharedCacheMode

The SharedCacheMode

See Also
org.hibernate.cfg.AvailableSettings#JAKARTA_SHARED_CACHE_MODE
getSourceProcessOrderingback to summary
public List<MetadataSourceType> getSourceProcessOrdering()

Retrieve the ordering in which sources should be processed.

Returns:List<MetadataSourceType>

The order in which sources should be processed.

See Also
org.hibernate.cfg.AvailableSettings#ARTIFACT_PROCESSING_ORDER
getTimeZoneSupportback to summary
public TimeZoneSupport getTimeZoneSupport()
Returns:TimeZoneSupport

the TimeZoneSupport of the configured org.hibernate.dialect.Dialect

See Also
org.hibernate.dialect.Dialect#getTimeZoneSupport()
getTypeConfigurationback to summary
public TypeConfiguration getTypeConfiguration()
Returns:TypeConfiguration

the TypeConfiguration belonging to the BootstrapContext

getWrapperArrayHandlingback to summary
public WrapperArrayHandling getWrapperArrayHandling()
Returns:WrapperArrayHandling

the WrapperArrayHandling to use for wrapper arrays Byte[] and Character[].

See Also
org.hibernate.cfg.AvailableSettings#WRAPPER_ARRAY_HANDLING
ignoreExplicitDiscriminatorsForJoinedInheritanceback to summary
public boolean ignoreExplicitDiscriminatorsForJoinedInheritance()

Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.

Returns:boolean

true indicates they should be ignored; false indicates they should not be ignored.

See Also
org.hibernate.boot.MetadataBuilder#enableExplicitDiscriminatorsForJoinedSubclassSupport, org.hibernate.cfg.AvailableSettings#IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
isAllowExtensionsInCdiback to summary
public boolean isAllowExtensionsInCdi()

Check to see if extensions can be hosted in CDI

isMultiTenancyEnabledback to summary
public boolean isMultiTenancyEnabled()

Is multi-tenancy enabled?

Multi-tenancy is enabled implicitly if a MultiTenantConnectionProvider is available.

Returns:boolean

true is multi-tenancy is enabled

See Also
org.hibernate.cfg.AvailableSettings#MULTI_TENANT_CONNECTION_PROVIDER
isNoConstraintByDefaultback to summary
public boolean isNoConstraintByDefault()

Should we disable constraint creation when jakarta.persistence.ConstraintMode#PROVIDER_DEFAULT?

Returns:boolean

true if we should not create constraints by default; false if we should.

See Also
jakarta.persistence.ConstraintMode#PROVIDER_DEFAULT, org.hibernate.cfg.AvailableSettings#HBM2DDL_DEFAULT_CONSTRAINT_MODE
isSpecjProprietarySyntaxEnabledback to summary
public boolean isSpecjProprietarySyntaxEnabled()
isXmlMappingEnabledback to summary
public default boolean isXmlMappingEnabled()
See Also
org.hibernate.cfg.AvailableSettings#XML_MAPPING_ENABLED
shouldImplicitlyForceDiscriminatorInSelectback to summary
public 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:boolean

true indicates we should force the discriminator in selects for any mappings which do not say explicitly.

See Also
org.hibernate.cfg.AvailableSettings#FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
useNationalizedCharacterDataback to summary
public boolean useNationalizedCharacterData()

Should we use nationalized variants of character data by default?

For example, should NVARCHAR be used in preference to VARCHAR?

Returns:boolean

true if nationalized character data should be used by default; false otherwise.

See Also
org.hibernate.boot.MetadataBuilder#enableGlobalNationalizedCharacterDataSupport, org.hibernate.cfg.AvailableSettings#USE_NATIONALIZED_CHARACTER_DATA