Top Inners Fields Constructors Methods
org.hibernate.boot.internal

public Class MetadataBuilderImpl

extends Object
implements MetadataBuilderImplementor, TypeContributions
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.TypeContributions, org.hibernate.boot.spi.MetadataBuilderImplementor, org.hibernate.boot.MetadataBuilder
Imports
java.util.ArrayList, .Collections, .List, .Locale, java.util.concurrent.Callable, org.hibernate.AnnotationException, .HibernateException, .TimeZoneStorageStrategy, org.hibernate.annotations.CacheConcurrencyStrategy, .TimeZoneStorageType, org.hibernate.boot.CacheRegionDefinition, .MetadataBuilder, .MetadataSources, org.hibernate.boot.archive.scan.spi.ScanEnvironment, .ScanOptions, .Scanner, org.hibernate.boot.archive.spi.ArchiveDescriptorFactory, org.hibernate.boot.cfgxml.spi.CfgXmlAccessService, .LoadedConfig, .MappingReference, org.hibernate.boot.model.FunctionContributions, .FunctionContributor, .TypeContributions, .TypeContributor, org.hibernate.boot.model.convert.internal.ClassBasedConverterDescriptor, .InstanceBasedConverterDescriptor, org.hibernate.boot.model.convert.spi.ConverterDescriptor, org.hibernate.boot.model.naming.ImplicitNamingStrategy, .ImplicitNamingStrategyJpaCompliantImpl, .PhysicalNamingStrategy, .PhysicalNamingStrategyStandardImpl, org.hibernate.boot.model.process.spi.MetadataBuildingProcess, org.hibernate.boot.model.relational.AuxiliaryDatabaseObject, .ColumnOrderingStrategy, .ColumnOrderingStrategyStandard, org.hibernate.boot.registry.BootstrapServiceRegistry, .StandardServiceRegistry, .StandardServiceRegistryBuilder, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.boot.registry.selector.spi.StrategySelector, org.hibernate.boot.spi.BasicTypeRegistration, .BootstrapContext, .JpaOrmXmlPersistenceUnitDefaultAware, .MappingDefaults, .MetadataBuilderImplementor, .MetadataBuilderInitializer, .MetadataBuildingOptions, .MetadataImplementor, .MetadataSourcesContributor, org.hibernate.cache.spi.RegionFactory, org.hibernate.cache.spi.access.AccessType, org.hibernate.cfg.AvailableSettings, .MetadataSourceType, org.hibernate.dialect.Dialect, .TimeZoneSupport, org.hibernate.engine.config.spi.ConfigurationService, .StandardConverters, org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.id.factory.IdentifierGeneratorFactory, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.log.DeprecationLogger, org.hibernate.internal.util.NullnessHelper, .StringHelper, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.metamodel.CollectionClassification, org.hibernate.query.sqm.function.SqmFunctionDescriptor, .SqmFunctionRegistry, org.hibernate.service.ServiceRegistry, org.hibernate.service.spi.ServiceException, org.hibernate.type.BasicType, .SqlTypes, .WrapperArrayHandling, org.hibernate.type.spi.TypeConfiguration, org.hibernate.usertype.CompositeUserType, .UserType, org.jboss.jandex.IndexView, jakarta.persistence.AttributeConverter, .ConstraintMode, .SharedCacheMode

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final BootstrapContextImpl
private static final CoreMessageLogger
private final MetadataBuilderImpl.MetadataBuildingOptionsImpl
private final MetadataSources

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public MetadataBuilder
public MetadataBuilder
applyAccessType(AccessType
The access-type to use as default.
implicitCacheAccessType
)

Implements org.hibernate.boot.MetadataBuilder.applyAccessType.

Specify the second-level access-type to be used by default for entities and collections that define second-level caching, but do not specify a granular access-type.
public MetadataBuilder
applyArchiveDescriptorFactory(ArchiveDescriptorFactory
The ArchiveDescriptorFactory to use.
factory
)

Implements org.hibernate.boot.MetadataBuilder.applyArchiveDescriptorFactory.

Specify a particular ArchiveDescriptorFactory instance to use in scanning.
public MetadataBuilder
public <O, R> MetadataBuilder
applyAttributeConverter(Class<? extends AttributeConverter<O, R>>
The AttributeConverter class.
attributeConverterClass
)

Implements org.hibernate.boot.MetadataBuilder.applyAttributeConverter.

Adds an AttributeConverter by its Class.
public <O, R> MetadataBuilder
applyAttributeConverter(Class<? extends AttributeConverter<O, R>>
The AttributeConverter class.
attributeConverterClass
,
boolean
Should the AttributeConverter be auto applied to property types as specified by its "entity attribute" parameterized type?
autoApply
)

Implements org.hibernate.boot.MetadataBuilder.applyAttributeConverter.

Adds an AttributeConverter by Class, explicitly indicating whether to auto-apply it.
public <O, R> MetadataBuilder
applyAttributeConverter(AttributeConverter<O, R>
The AttributeConverter instance.
attributeConverter
)

Implements org.hibernate.boot.MetadataBuilder.applyAttributeConverter.

Adds an AttributeConverter instance.
public MetadataBuilder
applyAttributeConverter(AttributeConverter<?, ?>
The AttributeConverter instance.
attributeConverter
,
boolean
Should the AttributeConverter be auto applied to property types as specified by its "entity attribute" parameterized type?
autoApply
)

Implements org.hibernate.boot.MetadataBuilder.applyAttributeConverter.

Adds an AttributeConverter instance, explicitly indicating whether to auto-apply it.
public MetadataBuilder
public MetadataBuilder
applyBasicType(BasicType<?>
The type addition or override.
type
)

Implements org.hibernate.boot.MetadataBuilder.applyBasicType.

Specify an additional or overridden basic type mapping.
public MetadataBuilder
applyBasicType(BasicType<?>
The type addition or override.
type
,
String...
The keys under which to register the basic type.
keys
)

Implements org.hibernate.boot.MetadataBuilder.applyBasicType.

Specify an additional or overridden basic type mapping supplying specific registration keys.
public MetadataBuilder
applyBasicType(UserType<?>
The custom type
type
,
String...
The keys under which to register the custom type.
keys
)

Implements org.hibernate.boot.MetadataBuilder.applyBasicType.

Register an additional or overridden custom type mapping.
public MetadataBuilder
applyCacheRegionDefinition(CacheRegionDefinition
The cache region definition to apply
cacheRegionDefinition
)

Implements org.hibernate.boot.MetadataBuilder.applyCacheRegionDefinition.

Apply a CacheRegionDefinition to be applied to an entity, collection, or query while building the Metadata object.
private void
public MetadataBuilder
public MetadataBuilder
applyFunctions(FunctionContributor
The contributor to apply
functionContributor
)

Implements org.hibernate.boot.MetadataBuilder.applyFunctions.

Apply an explicit FunctionContributor (implicit application via java.util.ServiceLoader will still happen too)
public MetadataBuilder
applyImplicitCatalogName(String
The implicit catalog name
implicitCatalogName
)

Implements org.hibernate.boot.MetadataBuilder.applyImplicitCatalogName.

Specify the implicit catalog name to apply to any unqualified database names.
public MetadataBuilder
public MetadataBuilder
public MetadataBuilder
applyImplicitSchemaName(String
The implicit schema name
implicitSchemaName
)

Implements org.hibernate.boot.MetadataBuilder.applyImplicitSchemaName.

Specify the implicit schema name to apply to any unqualified database names.
public MetadataBuilder
applyIndexView(IndexView
The Jandex index to use.
jandexView
)

Implements org.hibernate.boot.MetadataBuilder.applyIndexView.

Allows specifying a specific Jandex index to use for reading annotation information.
public MetadataBuilder
public MetadataBuilder
applyScanEnvironment(ScanEnvironment
The environment for scanning
scanEnvironment
)

Implements org.hibernate.boot.MetadataBuilder.applyScanEnvironment.

Consider this temporary as discussed on ScanEnvironment
public MetadataBuilder
applyScanner(Scanner
The scanner to use.
scanner
)

Implements org.hibernate.boot.MetadataBuilder.applyScanner.

Specify a particular Scanner instance to use.
public MetadataBuilder
applyScanOptions(ScanOptions
The scan options.
scanOptions
)

Implements org.hibernate.boot.MetadataBuilder.applyScanOptions.

Specify the options to be used in performing scanning.
public MetadataBuilder
applySharedCacheMode(SharedCacheMode
The cache mode.
sharedCacheMode
)

Implements org.hibernate.boot.MetadataBuilder.applySharedCacheMode.

Specify the second-level cache mode.
public MetadataBuilder
applySourceProcessOrdering(MetadataSourceType...
The types, in the order they should be processed
sourceTypes
)

Implements org.hibernate.boot.MetadataBuilder.applySourceProcessOrdering.

Deprecated
Apply a specific ordering to the processing of sources.
public MetadataBuilder
public MetadataBuilder
applyTempClassLoader(ClassLoader
ClassLoader for use while building the Metadata
tempClassLoader
)

Implements org.hibernate.boot.MetadataBuilder.applyTempClassLoader.

Apply a ClassLoader for use while building the Metadata.
public MetadataBuilder
applyTypes(TypeContributor
The contributor to apply
typeContributor
)

Implements org.hibernate.boot.MetadataBuilder.applyTypes.

Apply an explicit TypeContributor (implicit application via java.util.ServiceLoader will still happen too)
public MetadataImplementor
build()

Implements org.hibernate.boot.MetadataBuilder.build.

Deprecated as a consequence of MetadataImplementor being deprecated.
Actually build the metamodel
public void
public void
public void
public void
public void
contributeType(CompositeUserType<?> type)

Overrides default org.hibernate.boot.model.TypeContributions.contributeType.

Register a CompositeUserType as the implicit (auto-applied) type for values of type CompositeUserType#returnedClass().
public MetadataBuilder
enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean
Should processing (not ignoring) explicit discriminators be enabled?
supported
)

Implements org.hibernate.boot.MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport.

Should we process or ignore explicitly defined discriminators in the case of joined subclasses?
public MetadataBuilder
enableGlobalNationalizedCharacterDataSupport(boolean
true says to use nationalized variants; false says to use the non-nationalized variants.
enabled
)

Implements org.hibernate.boot.MetadataBuilder.enableGlobalNationalizedCharacterDataSupport.

Should nationalized variants of character data be used in the database types?
public MetadataBuilder
enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean
Should we implicitly create discriminator for joined inheritance if one is not explicitly mentioned?
supported
)

Implements org.hibernate.boot.MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport.

Similarly to enableExplicitDiscriminatorsForJoinedSubclassSupport, but here how should we treat joined inheritance when there is no explicitly defined discriminator annotations?
public MetadataBuilder
enableImplicitForcingOfDiscriminatorsInSelect(boolean
true indicates we will force the discriminator into the select; false indicates we will not.
supported
)

Implements org.hibernate.boot.MetadataBuilder.enableImplicitForcingOfDiscriminatorsInSelect.

For entities which do not explicitly say, should we force discriminators into SQL selects?
public BootstrapContext
public MetadataBuildingOptions
getMetadataBuildingOptions()

Implements org.hibernate.boot.spi.MetadataBuilderImplementor.getMetadataBuildingOptions.

Get the options being collected on this MetadataBuilder that will ultimately be used in building the Metadata.
private static StandardServiceRegistry
public TypeConfiguration
public MetadataBuilder
private static WrapperArrayHandling
private static TimeZoneStorageType
private static WrapperArrayHandling
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait