Package org.hibernate.boot.spi
Class AbstractDelegatingMetadataBuildingOptions
java.lang.Object
org.hibernate.boot.spi.AbstractDelegatingMetadataBuildingOptions
- All Implemented Interfaces:
JpaOrmXmlPersistenceUnitDefaultAware,MetadataBuildingOptions
public abstract class AbstractDelegatingMetadataBuildingOptions
extends Object
implements MetadataBuildingOptions, JpaOrmXmlPersistenceUnitDefaultAware
Convenience base class for custom implementors of
MetadataBuildingOptions using delegation.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.boot.spi.JpaOrmXmlPersistenceUnitDefaultAware
JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PersistenceUnitMetadata persistenceUnitMetadata) voidapply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults) Apply theorm.xml-definedpersistence-unit-defaultsvalues.booleanWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.protected MetadataBuildingOptionsdelegate()Access the list ofBasicTyperegistrations.Access the list ofCompositeUserTyperegistrations.Access to any implicit cacheAccessType.Access to theMappingDefaults.Access 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.booleanbooleanWhether we should implicitly force discriminators into SQL selects.booleanShould we use nationalized variants of character data by default?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver
-
Constructor Details
-
AbstractDelegatingMetadataBuildingOptions
-
-
Method Details
-
delegate
-
getServiceRegistry
Description copied from interface:MetadataBuildingOptionsAccess to theStandardServiceRegistry.- Specified by:
getServiceRegistryin interfaceMetadataBuildingOptions
-
getMappingDefaults
Description copied from interface:MetadataBuildingOptionsAccess to theMappingDefaults.- Specified by:
getMappingDefaultsin interfaceMetadataBuildingOptions
-
getDefaultTimeZoneStorage
- Specified by:
getDefaultTimeZoneStoragein interfaceMetadataBuildingOptions- Returns:
- the
TimeZoneStorageStrategydetermined by the global configuration property and the time zone support of the configuredDialect - See Also:
-
getTimeZoneSupport
- Specified by:
getTimeZoneSupportin interfaceMetadataBuildingOptions- Returns:
- the
TimeZoneSupportof the configuredDialect - See Also:
-
getWrapperArrayHandling
- Specified by:
getWrapperArrayHandlingin interfaceMetadataBuildingOptions- Returns:
- the
WrapperArrayHandlingto use for wrapper arraysByte[]andCharacter[]. - See Also:
-
getBasicTypeRegistrations
Description copied from interface:MetadataBuildingOptionsAccess the list ofBasicTyperegistrations.These are the
BasicTypesexplicitly registered via calls to:- Specified by:
getBasicTypeRegistrationsin interfaceMetadataBuildingOptions- Returns:
- The
BasicTypesregistrations
-
getCompositeUserTypes
Description copied from interface:MetadataBuildingOptionsAccess the list ofCompositeUserTyperegistrations.- Specified by:
getCompositeUserTypesin interfaceMetadataBuildingOptions
-
getTypeConfiguration
- Specified by:
getTypeConfigurationin interfaceMetadataBuildingOptions- Returns:
- the
TypeConfigurationbelonging to theBootstrapContext
-
getImplicitNamingStrategy
- Specified by:
getImplicitNamingStrategyin interfaceMetadataBuildingOptions- See Also:
-
getPhysicalNamingStrategy
- Specified by:
getPhysicalNamingStrategyin interfaceMetadataBuildingOptions- See Also:
-
getColumnOrderingStrategy
- Specified by:
getColumnOrderingStrategyin interfaceMetadataBuildingOptions- See Also:
-
getImplicitCacheAccessType
Description copied from interface:MetadataBuildingOptionsAccess to any implicit cacheAccessType.- Specified by:
getImplicitCacheAccessTypein interfaceMetadataBuildingOptions- Returns:
- The implicit cache
AccessType - See Also:
-
isMultiTenancyEnabled
public boolean isMultiTenancyEnabled()Description copied from interface:MetadataBuildingOptionsIs multi-tenancy enabled?Multi-tenancy is enabled implicitly if a
MultiTenantConnectionProvideris available.- Specified by:
isMultiTenancyEnabledin interfaceMetadataBuildingOptions- Returns:
trueis multi-tenancy is enabled- See Also:
-
ignoreExplicitDiscriminatorsForJoinedInheritance
public boolean ignoreExplicitDiscriminatorsForJoinedInheritance()Description copied from interface:MetadataBuildingOptionsWhether explicit discriminator declarations should be ignored for joined subclass style inheritance.- Specified by:
ignoreExplicitDiscriminatorsForJoinedInheritancein interfaceMetadataBuildingOptions- Returns:
trueindicates they should be ignored;falseindicates they should not be ignored.- See Also:
-
createImplicitDiscriminatorsForJoinedInheritance
public boolean createImplicitDiscriminatorsForJoinedInheritance()Description copied from interface:MetadataBuildingOptionsWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.- Specified by:
createImplicitDiscriminatorsForJoinedInheritancein interfaceMetadataBuildingOptions- Returns:
trueindicates we should do discrimination;falsewe should not.- See Also:
-
shouldImplicitlyForceDiscriminatorInSelect
public boolean shouldImplicitlyForceDiscriminatorInSelect()Description copied from interface:MetadataBuildingOptionsWhether we should implicitly force discriminators into SQL selects. By default, Hibernate will not. This can be specified per discriminator in the mapping as well.- Specified by:
shouldImplicitlyForceDiscriminatorInSelectin interfaceMetadataBuildingOptions- Returns:
trueindicates we should force the discriminator in selects for any mappings which do not say explicitly.- See Also:
-
useNationalizedCharacterData
public boolean useNationalizedCharacterData()Description copied from interface:MetadataBuildingOptionsShould we use nationalized variants of character data by default?For example, should
NVARCHARbe used in preference toVARCHAR?- Specified by:
useNationalizedCharacterDatain interfaceMetadataBuildingOptions- Returns:
trueif nationalized character data should be used by default;falseotherwise.- See Also:
-
isNoConstraintByDefault
public boolean isNoConstraintByDefault()Description copied from interface:MetadataBuildingOptionsShould we disable constraint creation whenConstraintMode.PROVIDER_DEFAULT?- Specified by:
isNoConstraintByDefaultin interfaceMetadataBuildingOptions- Returns:
trueif we should not create constraints by default;falseif we should.- See Also:
-
apply
public void apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults) Description copied from interface:JpaOrmXmlPersistenceUnitDefaultAwareApply theorm.xml-definedpersistence-unit-defaultsvalues.- Specified by:
applyin interfaceJpaOrmXmlPersistenceUnitDefaultAware- Parameters:
jpaOrmXmlPersistenceUnitDefaults- Thepersistence-unit-defaultsvalues
-
apply
- Specified by:
applyin interfaceJpaOrmXmlPersistenceUnitDefaultAware
-
getSchemaCharset
- Specified by:
getSchemaCharsetin interfaceMetadataBuildingOptions- See Also:
-
isXmlMappingEnabled
public boolean isXmlMappingEnabled()- Specified by:
isXmlMappingEnabledin interfaceMetadataBuildingOptions- See Also:
-
isAllowExtensionsInCdi
public boolean isAllowExtensionsInCdi()Description copied from interface:MetadataBuildingOptionsCheck to see if extensions can be hosted in CDI- Specified by:
isAllowExtensionsInCdiin interfaceMetadataBuildingOptions
-
isXmlFormatMapperLegacyFormatEnabled
public boolean isXmlFormatMapperLegacyFormatEnabled()Description copied from interface:MetadataBuildingOptionsWhether to use the legacy format for serializing/deserializing XML data.- Specified by:
isXmlFormatMapperLegacyFormatEnabledin interfaceMetadataBuildingOptions- See Also:
-