Uses of Interface
org.hibernate.boot.spi.MetadataBuildingContext
Packages that use MetadataBuildingContext
Package
Description
This package defines an easy way to extend Hibernate with user-defined
annotations that define customized O/R mappings of annotated entities
and annotated entity attributes.
This package defines the boot-time metamodel, which is an interpretation
of the domain model (entity classes, embeddable classes, and attributes)
and the mapping of these "domain model parts" to the database.
Defines the SPI of a
registry
of JPA
AttributeConverter
s.This API allows intervention by generic code in the process of determining the names of
database objects (tables, columns, and constraints).
Support for handling named queries during the bootstrap process.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package defines the Hibernate configuration-time mapping model.
Defines a registry for Hibernate
Type
s.-
Uses of MetadataBuildingContext in org.hibernate.binder
Methods in org.hibernate.binder with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionvoid
AttributeBinder.bind
(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property) Perform some custom configuration of the model relating to the given annotatedProperty
of the given entity class or embeddable class.void
TypeBinder.bind
(A annotation, MetadataBuildingContext buildingContext, Component embeddableClass) Perform some custom configuration of the model relating to the given annotated embeddable class.void
TypeBinder.bind
(A annotation, MetadataBuildingContext buildingContext, PersistentClass persistentClass) Perform some custom configuration of the model relating to the given annotated entity class. -
Uses of MetadataBuildingContext in org.hibernate.boot.model
Methods in org.hibernate.boot.model with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionstatic BasicValue.Resolution
<?> TypeDefinition.createLocalResolution
(String name, Class<?> typeImplementorClass, Map<?, ?> localTypeParams, MetadataBuildingContext buildingContext) TypeDefinition.resolve
(Map<?, ?> localConfigParameters, MetadataBuildingContext context, JdbcTypeIndicators indicators) TypeDefinition.resolve
(Map<?, ?> localConfigParameters, MutabilityPlan<?> explicitMutabilityPlan, MetadataBuildingContext context, JdbcTypeIndicators indicators) -
Uses of MetadataBuildingContext in org.hibernate.boot.model.convert.spi
Methods in org.hibernate.boot.model.convert.spi with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionConverterDescriptor
<?, ?> ConverterAutoApplyHandler.findAutoApplyConverterForAttribute
(org.hibernate.models.spi.MemberDetails attributeMember, MetadataBuildingContext context) Resolve the auto-applied converter to be applied to a basic attribute described by the passed property descriptor.ConverterDescriptor
<?, ?> ConverterAutoApplyHandler.findAutoApplyConverterForCollectionElement
(org.hibernate.models.spi.MemberDetails attributeMember, MetadataBuildingContext context) Resolve the auto-applied converter to be applied to the elements of a plural attribute described by the passed property descriptor.ConverterDescriptor
<?, ?> ConverterAutoApplyHandler.findAutoApplyConverterForMapKey
(org.hibernate.models.spi.MemberDetails attributeMember, MetadataBuildingContext context) Resolve the auto-applied converter to be applied to the keys of a plural Map attribute described by the passed property descriptor.ConverterDescriptor
<?, ?> AutoApplicableConverterDescriptor.getAutoAppliedConverterDescriptorForAttribute
(org.hibernate.models.spi.MemberDetails memberDetails, MetadataBuildingContext context) ConverterDescriptor
<?, ?> AutoApplicableConverterDescriptor.getAutoAppliedConverterDescriptorForCollectionElement
(org.hibernate.models.spi.MemberDetails memberDetails, MetadataBuildingContext context) ConverterDescriptor
<?, ?> AutoApplicableConverterDescriptor.getAutoAppliedConverterDescriptorForMapKey
(org.hibernate.models.spi.MemberDetails memberDetails, MetadataBuildingContext context) Constructors in org.hibernate.boot.model.convert.spi with parameters of type MetadataBuildingContextModifierConstructorDescriptionRegisteredConversion
(Class<?> explicitDomainType, Class<? extends AttributeConverter<?, ?>> converterType, boolean autoApply, MetadataBuildingContext context) -
Uses of MetadataBuildingContext in org.hibernate.boot.model.naming
Methods in org.hibernate.boot.model.naming that return MetadataBuildingContextModifier and TypeMethodDescriptionImplicitNameSource.getBuildingContext()
Access to the current building context.protected MetadataBuildingContext
ObjectNameNormalizer.getBuildingContext()
Access the contextual information related to the current process of building metadata.Methods in org.hibernate.boot.model.naming with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionNamingStrategyHelper.determineImplicitName
(MetadataBuildingContext buildingContext) Called when the user supplied no explicit name/identifier for the given database object.NamingStrategyHelper.handleExplicitName
(String explicitName, MetadataBuildingContext buildingContext) Called when the user has supplied an explicit name for the database object.protected NamingHelper
ImplicitNamingStrategyJpaCompliantImpl.namingHelper
(MetadataBuildingContext context) Obtain aNamingHelper
for use in constraint name generation.protected Identifier
ImplicitNamingStrategyJpaCompliantImpl.toIdentifier
(String stringForm, MetadataBuildingContext buildingContext) Easy hook to build anIdentifier
using the keyword safeIdentifierHelper
.NamingStrategyHelper.toPhysicalName
(Identifier logicalName, MetadataBuildingContext buildingContext) Handle converting a logical name to a physical nameConstructors in org.hibernate.boot.model.naming with parameters of type MetadataBuildingContext -
Uses of MetadataBuildingContext in org.hibernate.boot.model.source.spi
Subinterfaces of MetadataBuildingContext in org.hibernate.boot.model.source.spiModifier and TypeInterfaceDescriptioninterface
Specialization of the MetadataBuildingContext contract specific to a given origin. -
Uses of MetadataBuildingContext in org.hibernate.boot.models.spi
Methods in org.hibernate.boot.models.spi with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionFilterDefRegistration.toFilterDefinition
(MetadataBuildingContext buildingContext) -
Uses of MetadataBuildingContext in org.hibernate.boot.query
Methods in org.hibernate.boot.query with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionstatic void
HbmResultSetMappingDescriptor.collectJoinFetch
(JaxbHbmNativeQueryJoinReturnType jaxbHbmJoin, Map<String, Map<String, HbmResultSetMappingDescriptor.JoinDescriptor>> joinDescriptors, Map<String, HbmResultSetMappingDescriptor.HbmFetchParent> fetchParentByAlias, String registrationName, MetadataBuildingContext context) HbmResultSetMappingDescriptor.extractPropertyFetchDescriptors
(List<JaxbHbmNativeQueryPropertyReturnType> hbmReturnProperties, HbmResultSetMappingDescriptor.HbmFetchParent fetchParent, String registrationName, MetadataBuildingContext context) Constructors in org.hibernate.boot.query with parameters of type MetadataBuildingContextModifierConstructorDescriptionCollectionResultDescriptor
(JaxbHbmNativeQueryCollectionLoadReturnType hbmCollectionReturn, Supplier<Map<String, Map<String, HbmResultSetMappingDescriptor.JoinDescriptor>>> joinDescriptorsAccess, String registrationName, MetadataBuildingContext context) EntityResultDescriptor
(JaxbHbmNativeQueryReturnType hbmEntityReturn, Supplier<Map<String, Map<String, HbmResultSetMappingDescriptor.JoinDescriptor>>> joinDescriptorsAccess, String registrationName, MetadataBuildingContext context) HbmResultSetMappingDescriptor
(JaxbHbmResultSetMappingType hbmResultSetMapping, MetadataBuildingContext context) Constructor for an explicit<resultset/>
mapping.ImplicitHbmResultSetMappingDescriptorBuilder
(String queryRegistrationName, int numberOfReturns, MetadataBuildingContext metadataBuildingContext) ImplicitHbmResultSetMappingDescriptorBuilder
(String queryRegistrationName, MetadataBuildingContext metadataBuildingContext) JoinDescriptor
(JaxbHbmNativeQueryJoinReturnType hbmJoinReturn, Supplier<Map<String, Map<String, HbmResultSetMappingDescriptor.JoinDescriptor>>> joinDescriptorsAccess, Supplier<Map<String, HbmResultSetMappingDescriptor.HbmFetchParent>> fetchParentByAliasAccess, String registrationName, MetadataBuildingContext context) PropertyFetchDescriptor
(JaxbHbmNativeQueryPropertyReturnType hbmPropertyMapping, HbmResultSetMappingDescriptor.HbmFetchParent parent, String registrationName, MetadataBuildingContext context) -
Uses of MetadataBuildingContext in org.hibernate.boot.spi
Methods in org.hibernate.boot.spi with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionInFlightMetadataCollector.addDenormalizedTable
(String schema, String catalog, String name, boolean isAbstract, String subselect, Table includedTable, MetadataBuildingContext buildingContext) Adds a 'denormalized table' to this repository.InFlightMetadataCollector.addTable
(String schema, String catalog, String name, String subselect, boolean isAbstract, MetadataBuildingContext buildingContext) Adds table metadata to this repository returning the created metadata instance.void
AdditionalMappingContributor.contribute
(AdditionalMappingContributions contributions, InFlightMetadataCollector metadata, ResourceStreamLocator resourceStreamLocator, MetadataBuildingContext buildingContext) Contribute the additional mappingsMethod parameters in org.hibernate.boot.spi with type arguments of type MetadataBuildingContextModifier and TypeMethodDescriptionvoid
InFlightMetadataCollector.registerValueMappingResolver
(Function<MetadataBuildingContext, Boolean> resolver) -
Uses of MetadataBuildingContext in org.hibernate.envers.boot.spi
Subinterfaces of MetadataBuildingContext in org.hibernate.envers.boot.spiModifier and TypeInterfaceDescriptioninterface
Metadata building context for Hibernate Envers -
Uses of MetadataBuildingContext in org.hibernate.mapping
Methods in org.hibernate.mapping that return MetadataBuildingContextModifier and TypeMethodDescriptionCollection.getBuildingContext()
OneToMany.getBuildingContext()
SimpleValue.getBuildingContext()
default MetadataBuildingContext
Value.getBuildingContext()
Methods in org.hibernate.mapping with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionvoid
PersistentClass.createConstraints
(MetadataBuildingContext context) void
SingleTableSubclass.createConstraints
(MetadataBuildingContext context) void
DenormalizedTable.createForeignKeys
(MetadataBuildingContext context) void
Table.createForeignKeys
(MetadataBuildingContext context) void
Collection.createUniqueKey
(MetadataBuildingContext context) void
ManyToOne.createUniqueKey
(MetadataBuildingContext context) void
OneToMany.createUniqueKey
(MetadataBuildingContext context) void
OneToOne.createUniqueKey
(MetadataBuildingContext context) void
SimpleValue.createUniqueKey
(MetadataBuildingContext context) void
Table.createUniqueKey
(List<Column> keyColumns, MetadataBuildingContext context) If there is one given column, mark it unique, otherwise create aUniqueKey
comprising the given columns.void
Table.createUniqueKey
(Column column, MetadataBuildingContext context) Mark the given column unique and assign a name to the unique key.void
Value.createUniqueKey
(MetadataBuildingContext context) Column.getNameIdentifier
(MetadataBuildingContext buildingContext) boolean
BasicValue.resolve
(MetadataBuildingContext buildingContext) boolean
DependantValue.resolve
(MetadataBuildingContext buildingContext) boolean
Resolvable.resolve
(MetadataBuildingContext buildingContext) static TimeZoneStorageStrategy
BasicValue.timeZoneStorageStrategy
(TimeZoneStorageType timeZoneStorageType, MetadataBuildingContext buildingContext) Constructors in org.hibernate.mapping with parameters of type MetadataBuildingContextModifierConstructorDescriptionAny
(MetadataBuildingContext buildingContext, Table table) Any
(MetadataBuildingContext buildingContext, Table table, boolean annotations) Array
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Array
(MetadataBuildingContext buildingContext, PersistentClass owner) Bag
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Annotation bindingBag
(MetadataBuildingContext buildingContext, PersistentClass owner) hbm.xml bindingBasicValue
(MetadataBuildingContext buildingContext) BasicValue
(MetadataBuildingContext buildingContext, Table table) protected
Collection
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Annotation bindingprotected
Collection
(MetadataBuildingContext buildingContext, PersistentClass owner) hbm.xml bindingComponent
(MetadataBuildingContext metadata, Collection collection) Component
(MetadataBuildingContext metadata, Component component) Component
(MetadataBuildingContext metadata, Join join) Component
(MetadataBuildingContext metadata, PersistentClass owner) Component
(MetadataBuildingContext metadata, Table table, PersistentClass owner) DependantBasicValue
(MetadataBuildingContext buildingContext, Table table, BasicValue referencedValue, boolean nullable, boolean updateable) DependantValue
(MetadataBuildingContext buildingContext, Table table, KeyValue prototype) IdentifierBag
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) annotation bindingIdentifierBag
(MetadataBuildingContext buildingContext, PersistentClass owner) hbm.xml bindingIdentifierCollection
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) IdentifierCollection
(MetadataBuildingContext buildingContext, PersistentClass owner) IndexedCollection
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) IndexedCollection
(MetadataBuildingContext buildingContext, PersistentClass owner) JoinedSubclass
(PersistentClass superclass, MetadataBuildingContext buildingContext) KeyValue
(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext) KeyValue
(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext, Table table) List
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) annotation bindingList
(MetadataBuildingContext buildingContext, PersistentClass owner) hbm.xml bindingManyToOne
(MetadataBuildingContext buildingContext, Table table) Map
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Map
(MetadataBuildingContext buildingContext, PersistentClass owner) MetaValue
(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext) MetaValue
(Consumer<Selectable> selectableConsumer, MetadataBuildingContext buildingContext, Table table) OneToMany
(MetadataBuildingContext buildingContext, PersistentClass owner) OneToOne
(MetadataBuildingContext buildingContext, Table table, PersistentClass owner) PersistentClass
(MetadataBuildingContext buildingContext) PrimitiveArray
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) PrimitiveArray
(MetadataBuildingContext buildingContext, PersistentClass owner) RootClass
(MetadataBuildingContext buildingContext) Set
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass persistentClass, MetadataBuildingContext buildingContext) Used by annotation bindingSet
(MetadataBuildingContext buildingContext, PersistentClass owner) Used by hbm.xml bindingSimpleValue
(MetadataBuildingContext buildingContext) SimpleValue
(MetadataBuildingContext buildingContext, Table table) SingleTableSubclass
(PersistentClass superclass, MetadataBuildingContext buildingContext) Subclass
(PersistentClass superclass, MetadataBuildingContext buildingContext) protected
ToOne
(MetadataBuildingContext buildingContext, Table table) UnionSubclass
(PersistentClass superclass, MetadataBuildingContext buildingContext) -
Uses of MetadataBuildingContext in org.hibernate.type.spi
Methods in org.hibernate.type.spi that return MetadataBuildingContextModifier and TypeMethodDescriptionTypeConfiguration.getMetadataBuildingContext()
Deprecated.This operation is not very typesafe, and we're migrating away from its useMethods in org.hibernate.type.spi with parameters of type MetadataBuildingContextModifier and TypeMethodDescriptionvoid
TypeConfiguration.scope
(MetadataBuildingContext metadataBuildingContext) Scope thisTypeConfiguration
to the givenMetadataBuildingContext
.