Top Description Inners Methods
org.hibernate.boot.spi

public Interface InFlightMetadataCollector

extends MetadataImplementor
Known Direct Implementers
org.hibernate.boot.internal.InFlightMetadataCollectorImpl
Imports
java.io.Serializable, java.util.Locale, .Map, java.util.function.Function, org.hibernate.DuplicateMappingException, .HibernateException, .MappingException, org.hibernate.annotations.CollectionTypeRegistration, org.hibernate.annotations.common.reflection.XClass, org.hibernate.boot.internal.NamedProcedureCallDefinitionImpl, org.hibernate.boot.model.IdentifierGeneratorDefinition, .NamedEntityGraphDefinition, .TypeDefinition, .TypeDefinitionRegistry, org.hibernate.boot.model.convert.spi.ConverterAutoApplyHandler, .ConverterDescriptor, .ConverterRegistry, .RegisteredConversion, org.hibernate.boot.model.internal.AnnotatedClassType, org.hibernate.boot.model.naming.Identifier, org.hibernate.boot.model.relational.AuxiliaryDatabaseObject, .QualifiedTableName, org.hibernate.boot.model.source.spi.LocalMetadataBuildingContext, org.hibernate.boot.query.NamedHqlQueryDefinition, .NamedNativeQueryDefinition, .NamedProcedureCallDefinition, .NamedResultSetMappingDescriptor, org.hibernate.engine.spi.FilterDefinition, org.hibernate.mapping.Collection, .Column, .Component, .FetchProfile, .Join, .MappedSuperclass, .PersistentClass, .Table, org.hibernate.metamodel.CollectionClassification, org.hibernate.metamodel.spi.EmbeddableInstantiator, org.hibernate.type.descriptor.java.JavaType, org.hibernate.type.descriptor.jdbc.JdbcType, org.hibernate.usertype.CompositeUserType, .UserCollectionType, .UserType, jakarta.persistence.AttributeConverter

Deprecated

as a consequence of MetadataImplementor being deprecated. See corresponding docs for further information.

An in-flight representation of org.hibernate.boot.Metadata while it is being built.
Author
Steve Ebersole
Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static interface
public static class
public static interface

Method Summary

Modifier and TypeMethod and Description
public void
addAttributeConverter(ConverterDescriptor descriptor)

Deprecated since 6.2. use getConverterRegistry()
Apply the descriptor for an AttributeConverter
public void
addAttributeConverter(Class<? extends AttributeConverter<?, ?>> converterClass)

Deprecated since 6.2. use getConverterRegistry()
Apply an AttributeConverter
public void
addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject
The metadata.
auxiliaryDatabaseObject
)

Add metadata pertaining to an auxiliary database object to this repository.

public AnnotatedClassType
public void
addCollectionBinding(Collection
The collection metadata
collection
)

Add collection mapping metadata to this repository.

public void
public void
public void
addColumnNameBinding(Table table, Identifier logicalColumnName, Column column)

public void
addColumnNameBinding(Table table, String logicalColumnName, Column column)

public void
public void
public void
public void
public void
public void
public Table

Returns:

The created table metadata.
addDenormalizedTable
(String
The named schema in which the table belongs (or null).
schema
,
String
The named catalog in which the table belongs (or null).
catalog
,
String
The table name
name
,
boolean
Is the table abstract (i.e. not really existing in the DB)?
isAbstract
,
String
A select statement which defines a logical table, much like a DB view.
subselect
,
Table
The "common" table
includedTable
,
MetadataBuildingContext buildingContext)

Adds a 'denormalized table' to this repository.

public void
addEntityBinding(PersistentClass
The entity metadata
persistentClass
)

Add the PersistentClass for an entity mapping.

public InFlightMetadataCollector.EntityTableXref
addEntityTableXref(String entityName, Identifier primaryTableLogicalName, Table primaryTable, InFlightMetadataCollector.EntityTableXref superEntityTableXref)

public void
public void
addFilterDefinition(FilterDefinition
The filter definition to add.
definition
)

Adds a filter definition to this repository.

public void
public void
addImport(String
The name to be used in HQL
importName
,
String
The fully-qualified name of the class
className
)

Adds an import (for use in HQL).

public void
addJavaTypeRegistration(Class<?> javaType, JavaType<?> jtd)

public void
addJdbcTypeRegistration(int typeCode, JdbcType jdbcType)

public void
addMappedBy(String name, String mappedBy, String propertyName)

public void
addMappedSuperclass(Class<?> type, MappedSuperclass mappedSuperclass)

public void
addNamedEntityGraph(NamedEntityGraphDefinition
The procedure call information
namedEntityGraphDefinition
)

Adds metadata for a named entity graph to this repository

public void
addNamedNativeQuery(NamedNativeQueryDefinition query)

Adds metadata for a named SQL query to this collector.

public void
addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)

Adds metadata for a named stored procedure call to this collector.

public void
addNamedQuery(NamedHqlQueryDefinition
The metadata
query
)

Adds metadata for a named query to this repository.

public void
addPropertyAnnotatedWithMapsId(XClass entity, PropertyData propertyAnnotatedElement)

public void
public void
addPropertyReference(String entityName, String propertyName)

public void
addPropertyReferencedAssociation(String s, String propertyName, String syntheticPropertyName)

public void
public void
addResultSetMapping(NamedResultSetMappingDescriptor resultSetMappingDefinition)

Adds the metadata for a named SQL result set mapping to this collector.

public void
public void
addSecondPass(SecondPass sp, boolean onTopOfTheQueue)

public Table

Returns:

The created table metadata, or the existing reference.
addTable
(String
The named schema in which the table belongs (or null).
schema
,
String
The named catalog in which the table belongs (or null).
catalog
,
String
The table name
name
,
String
A select statement which defines a logical table, much like a DB view.
subselect
,
boolean
Is the table abstract (i.e. not really existing in the DB)?
isAbstract
,
MetadataBuildingContext buildingContext)

Adds table metadata to this repository returning the created metadata instance.

public void
addTableNameBinding(Identifier logicalName, Table table)

public void
addTableNameBinding(String schema, String catalog, String logicalName, String realTableName, Table denormalizedSuperTable)

public void
addToOneAndIdProperty(XClass entity, PropertyData propertyAnnotatedElement)

public void
addTypeDefinition(TypeDefinition
The named type definition to add.
typeDefinition
)

Deprecated Use getTypeDefinitionRegistry() instead
Adds a type definition to this metadata repository.
public void
addUniquePropertyReference(String entityName, String propertyName)

public InFlightMetadataCollector.CollectionTypeRegistrationDescriptor
public Class<? extends CompositeUserType<?>>
public Class<? extends EmbeddableInstantiator>
public Class<? extends UserType<?>>
public ConverterAutoApplyHandler
public BootstrapContext
public AnnotatedClassType
public ConverterRegistry
getConverterRegistry()

Obtain the ConverterRegistry which may be used to register AttributeConverters.

public Map<String, PersistentClass>
getEntityBindingMap()

Needed for SecondPass handling

public InFlightMetadataCollector.EntityTableXref
public String
getFromMappedBy(String ownerEntityName, String propertyName)

public Map<String, Join>
getJoins(String entityName)

public String
getLogicalColumnName(Table table, Identifier physicalName)

public String
getLogicalColumnName(Table table, String physicalName)

public String
public MappedSuperclass
public String
public String
getPhysicalColumnName(Table table, String logicalName)

public String
public String
public PropertyData
getPropertyAnnotatedWithIdAndToOne(XClass persistentXClass, String propertyName)

public PropertyData
getPropertyAnnotatedWithMapsId(XClass persistentXClass, String propertyName)

public String
public TypeDefinitionRegistry
getTypeDefinitionRegistry()

Access to the TypeDefinitionRegistry, which may be used to add type definitions to this metadata repository.

public boolean
public NaturalIdUniqueKeyBinder
public void
public void
registerCompositeUserType(Class<?> embeddableType, Class<? extends CompositeUserType<?>> userType)

public void
registerEmbeddableInstantiator(Class<?> embeddableType, Class<? extends EmbeddableInstantiator> instantiator)

public void
public void
public void
registerUserType(Class<?> embeddableType, Class<? extends UserType<?>> userType)

public void
Inherited from org.hibernate.boot.spi.MetadataImplementor:
buildNamedQueryRepositorygetFunctionRegistrygetGenericComponentgetMappedSuperclassMappingsCopygetMetadataBuildingOptionsgetTypeConfigurationinitSessionFactoryorderColumnsvalidatevisitRegisteredComponents