Top Description Fields Constructors Methods
org.hibernate.boot.spi

public abstract Class AbstractDelegatingMetadata

extends Object
implements MetadataImplementor
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.spi.MetadataImplementor, org.hibernate.boot.Metadata, org.hibernate.engine.spi.Mapping
Imports
java.util.Collection, .Map, .Set, .UUID, java.util.function.Consumer, org.hibernate.MappingException, .SessionFactory, org.hibernate.boot.SessionFactoryBuilder, org.hibernate.boot.model.IdentifierGeneratorDefinition, .NamedEntityGraphDefinition, .TypeDefinition, org.hibernate.boot.model.relational.Database, org.hibernate.boot.query.NamedHqlQueryDefinition, .NamedNativeQueryDefinition, .NamedProcedureCallDefinition, .NamedResultSetMappingDescriptor, org.hibernate.engine.spi.FilterDefinition, .SessionFactoryImplementor, org.hibernate.mapping.Component, .FetchProfile, .MappedSuperclass, .PersistentClass, .Table, org.hibernate.query.named.NamedObjectRepository, org.hibernate.query.sqm.function.SqmFunctionDescriptor, .SqmFunctionRegistry, org.hibernate.type.Type, org.hibernate.type.spi.TypeConfiguration

Deprecated

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

Convenience base class for custom implementors of MetadataImplementor using delegation.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
private final MetadataImplementor
delegate

Deprecated as a consequence of MetadataImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
public
AbstractDelegatingMetadata(MetadataImplementor delegate)

Deprecated as a consequence of MetadataImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public NamedObjectRepository
public SessionFactory
buildSessionFactory()

Implements org.hibernate.boot.Metadata.buildSessionFactory.

Short-hand form of building a SessionFactory through the builder without any additional option overrides.
public Collection<Table>
protected MetadataImplementor
delegate()

Deprecated as a consequence of MetadataImplementor being deprecated.
public Collection
getCollectionBinding(String
The collection role for which to retrieve the metadata.
role
)

Implements org.hibernate.boot.Metadata.getCollectionBinding.

Retrieves the collection mapping metadata for the given collection role.
public Collection<Collection>
getCollectionBindings()

Implements org.hibernate.boot.Metadata.getCollectionBindings.

Retrieves the Collection metadata representation for all known collections.
public Set<String>
getContributors()

Implements org.hibernate.boot.Metadata.getContributors.

All of the known model contributors
public Database
getDatabase()

Implements org.hibernate.boot.Metadata.getDatabase.

Retrieve the database model.
public PersistentClass
getEntityBinding(String
The entity name for which to retrieve the metadata.
entityName
)

Implements org.hibernate.boot.Metadata.getEntityBinding.

Retrieves the PersistentClass entity mapping metadata representation for the given entity name.
public Collection<PersistentClass>
getEntityBindings()

Implements org.hibernate.boot.Metadata.getEntityBindings.

Retrieves the PersistentClass entity metadata representation for all known entities.
public FetchProfile
public Collection<FetchProfile>
public FilterDefinition
getFilterDefinition(String
The name of the filter definition to retrieve .
name
)

Implements org.hibernate.boot.Metadata.getFilterDefinition.

Retrieves a filter definition by name.
public Map<String, FilterDefinition>
getFilterDefinitions()

Implements org.hibernate.boot.Metadata.getFilterDefinitions.

Retrieves the complete map of filter definitions.
public SqmFunctionRegistry
public Component
public IdentifierGeneratorDefinition
public String
public Type
public Map<String, String>
getImports()

Implements org.hibernate.boot.Metadata.getImports.

Retrieves all defined imports (class renames).
public Set<MappedSuperclass>
public MetadataBuildingOptions
getMetadataBuildingOptions()

Implements org.hibernate.boot.spi.MetadataImplementor.getMetadataBuildingOptions.

Access to the options used to build this Metadata
public NamedEntityGraphDefinition
public Map<String, NamedEntityGraphDefinition>
public NamedHqlQueryDefinition
getNamedHqlQueryMapping(String name)

Implements org.hibernate.boot.Metadata.getNamedHqlQueryMapping.

Retrieve named query metadata by name.
public NamedNativeQueryDefinition
public NamedProcedureCallDefinition
public Type
public NamedResultSetMappingDescriptor
getResultSetMapping(String
The mapping name.
name
)

Implements org.hibernate.boot.Metadata.getResultSetMapping.

Retrieve the metadata for a named SQL result set mapping.
public SessionFactoryBuilder
getSessionFactoryBuilder()

Implements org.hibernate.boot.Metadata.getSessionFactoryBuilder.

Get the builder for SessionFactory instances based on this metamodel.
public Map<String, SqmFunctionDescriptor>
public TypeConfiguration
public TypeDefinition
getTypeDefinition(String typeName)

Implements org.hibernate.boot.Metadata.getTypeDefinition.

Retrieve a type definition by name.
public UUID
getUUID()

Implements org.hibernate.boot.Metadata.getUUID.

Gets the UUID for this metamodel.
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final MetadataImplementor delegate

Deprecated

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

Constructor Detail

AbstractDelegatingMetadataback to summary
public AbstractDelegatingMetadata(MetadataImplementor delegate)

Deprecated

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

Method Detail

buildNamedQueryRepositoryback to summary
public NamedObjectRepository buildNamedQueryRepository(SessionFactoryImplementor sessionFactory)

Implements org.hibernate.boot.spi.MetadataImplementor.buildNamedQueryRepository.

Deprecated

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

Annotations
@Override
buildSessionFactoryback to summary
public SessionFactory buildSessionFactory()

Implements org.hibernate.boot.Metadata.buildSessionFactory.

Doc from org.hibernate.boot.Metadata.buildSessionFactory.

Short-hand form of building a SessionFactory through the builder without any additional option overrides.

Returns:SessionFactory

THe built SessionFactory.

Annotations
@Override
collectTableMappingsback to summary
public Collection<Table> collectTableMappings()

Implements org.hibernate.boot.Metadata.collectTableMappings.

Annotations
@Override
delegateback to summary
protected MetadataImplementor delegate()

Deprecated

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

getCollectionBindingback to summary
public Collection getCollectionBinding(String role)

Implements org.hibernate.boot.Metadata.getCollectionBinding.

Doc from org.hibernate.boot.Metadata.getCollectionBinding.

Retrieves the collection mapping metadata for the given collection role.

Parameters
role:String

The collection role for which to retrieve the metadata.

Returns:Collection

The collection mapping metadata, or null if no matching collection found.

Annotations
@Override
getCollectionBindingsback to summary
public Collection<Collection> getCollectionBindings()

Implements org.hibernate.boot.Metadata.getCollectionBindings.

Doc from org.hibernate.boot.Metadata.getCollectionBindings.

Retrieves the Collection metadata representation for all known collections. Returned collection is immutable

Returns:Collection<Collection>

All Collection representations.

Annotations
@Override
getContributorsback to summary
public Set<String> getContributors()

Implements org.hibernate.boot.Metadata.getContributors.

Doc from org.hibernate.boot.Metadata.getContributors.

All of the known model contributors

Annotations
@Override
getDatabaseback to summary
public Database getDatabase()

Implements org.hibernate.boot.Metadata.getDatabase.

Doc from org.hibernate.boot.Metadata.getDatabase.

Retrieve the database model.

Returns:Database

The database model.

Annotations
@Override
getEntityBindingback to summary
public PersistentClass getEntityBinding(String entityName)

Implements org.hibernate.boot.Metadata.getEntityBinding.

Doc from org.hibernate.boot.Metadata.getEntityBinding.

Retrieves the PersistentClass entity mapping metadata representation for the given entity name.

Parameters
entityName:String

The entity name for which to retrieve the metadata.

Returns:PersistentClass

The entity mapping metadata, or null if no matching entity found.

Annotations
@Override
getEntityBindingsback to summary
public Collection<PersistentClass> getEntityBindings()

Implements org.hibernate.boot.Metadata.getEntityBindings.

Doc from org.hibernate.boot.Metadata.getEntityBindings.

Retrieves the PersistentClass entity metadata representation for all known entities. Returned collection is immutable

Returns:Collection<PersistentClass>

All PersistentClass representations.

Annotations
@Override
getFetchProfileback to summary
public FetchProfile getFetchProfile(String name)

Implements org.hibernate.boot.Metadata.getFetchProfile.

Annotations
@Override
getFetchProfilesback to summary
public Collection<FetchProfile> getFetchProfiles()

Implements org.hibernate.boot.Metadata.getFetchProfiles.

Annotations
@Override
getFilterDefinitionback to summary
public FilterDefinition getFilterDefinition(String name)

Implements org.hibernate.boot.Metadata.getFilterDefinition.

Doc from org.hibernate.boot.Metadata.getFilterDefinition.

Retrieves a filter definition by name.

Parameters
name:String

The name of the filter definition to retrieve .

Returns:FilterDefinition

The filter definition, or null.

Annotations
@Override
getFilterDefinitionsback to summary
public Map<String, FilterDefinition> getFilterDefinitions()

Implements org.hibernate.boot.Metadata.getFilterDefinitions.

Doc from org.hibernate.boot.Metadata.getFilterDefinitions.

Retrieves the complete map of filter definitions. Returned map is immutable

Returns:Map<String, FilterDefinition>

The filter definition map.

Annotations
@Override
getFunctionRegistryback to summary
public SqmFunctionRegistry getFunctionRegistry()

Implements org.hibernate.boot.spi.MetadataImplementor.getFunctionRegistry.

Doc from org.hibernate.boot.spi.MetadataImplementor.getFunctionRegistry.

Access to the SqmFunctionRegistry belonging to the BootstrapContext

Annotations
@Override
getGenericComponentback to summary
public Component getGenericComponent(Class<?> componentClass)

Implements org.hibernate.boot.spi.MetadataImplementor.getGenericComponent.

Annotations
@Override
getIdentifierGeneratorback to summary
public IdentifierGeneratorDefinition getIdentifierGenerator(String name)

Implements org.hibernate.boot.Metadata.getIdentifierGenerator.

Annotations
@Override
getIdentifierPropertyNameback to summary
public String getIdentifierPropertyName(String className) throws MappingException

Implements org.hibernate.engine.spi.Mapping.getIdentifierPropertyName.

Annotations
@Override
getIdentifierTypeback to summary
public Type getIdentifierType(String className) throws MappingException

Implements org.hibernate.engine.spi.Mapping.getIdentifierType.

Annotations
@Override
getImportsback to summary
public Map<String, String> getImports()

Implements org.hibernate.boot.Metadata.getImports.

Doc from org.hibernate.boot.Metadata.getImports.

Retrieves all defined imports (class renames).

Returns:Map<String, String>

All imports

Annotations
@Override
getMappedSuperclassMappingsCopyback to summary
public Set<MappedSuperclass> getMappedSuperclassMappingsCopy()

Implements org.hibernate.boot.spi.MetadataImplementor.getMappedSuperclassMappingsCopy.

Annotations
@Override
getMetadataBuildingOptionsback to summary
public MetadataBuildingOptions getMetadataBuildingOptions()

Implements org.hibernate.boot.spi.MetadataImplementor.getMetadataBuildingOptions.

Doc from org.hibernate.boot.spi.MetadataImplementor.getMetadataBuildingOptions.

Access to the options used to build this Metadata

Returns:MetadataBuildingOptions

The MetadataBuildingOptions

Annotations
@Override
getNamedEntityGraphback to summary
public NamedEntityGraphDefinition getNamedEntityGraph(String name)

Implements org.hibernate.boot.Metadata.getNamedEntityGraph.

Annotations
@Override
getNamedEntityGraphsback to summary
public Map<String, NamedEntityGraphDefinition> getNamedEntityGraphs()

Implements org.hibernate.boot.Metadata.getNamedEntityGraphs.

Annotations
@Override
getNamedHqlQueryMappingback to summary
public NamedHqlQueryDefinition getNamedHqlQueryMapping(String name)

Implements org.hibernate.boot.Metadata.getNamedHqlQueryMapping.

Doc from org.hibernate.boot.Metadata.getNamedHqlQueryMapping.

Retrieve named query metadata by name.

Returns:NamedHqlQueryDefinition

The named query metadata, or null.

Annotations
@Override
getNamedNativeQueryMappingback to summary
public NamedNativeQueryDefinition getNamedNativeQueryMapping(String name)

Implements org.hibernate.boot.Metadata.getNamedNativeQueryMapping.

Doc from org.hibernate.boot.Metadata.getNamedNativeQueryMapping.

Retrieve named SQL query metadata.

Returns:NamedNativeQueryDefinition

The named query metadata, or null

Annotations
@Override
getNamedProcedureCallMappingback to summary
public NamedProcedureCallDefinition getNamedProcedureCallMapping(String name)

Implements org.hibernate.boot.Metadata.getNamedProcedureCallMapping.

Doc from org.hibernate.boot.Metadata.getNamedProcedureCallMapping.

Retrieve named procedure metadata.

Returns:NamedProcedureCallDefinition

The named procedure metadata, or null

Annotations
@Override
getReferencedPropertyTypeback to summary
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException

Implements org.hibernate.engine.spi.Mapping.getReferencedPropertyType.

Annotations
@Override
getResultSetMappingback to summary
public NamedResultSetMappingDescriptor getResultSetMapping(String name)

Implements org.hibernate.boot.Metadata.getResultSetMapping.

Doc from org.hibernate.boot.Metadata.getResultSetMapping.

Retrieve the metadata for a named SQL result set mapping.

Parameters
name:String

The mapping name.

Returns:NamedResultSetMappingDescriptor

The named result set mapping metadata, or null if none found.

Annotations
@Override
getSessionFactoryBuilderback to summary
public SessionFactoryBuilder getSessionFactoryBuilder()

Implements org.hibernate.boot.Metadata.getSessionFactoryBuilder.

Doc from org.hibernate.boot.Metadata.getSessionFactoryBuilder.

Get the builder for SessionFactory instances based on this metamodel.

Returns:SessionFactoryBuilder

The builder for SessionFactory instances.

Annotations
@Override
getSqlFunctionMapback to summary
public Map<String, SqmFunctionDescriptor> getSqlFunctionMap()

Implements org.hibernate.boot.Metadata.getSqlFunctionMap.

Annotations
@Override
getTypeConfigurationback to summary
public TypeConfiguration getTypeConfiguration()

Implements org.hibernate.boot.spi.MetadataImplementor.getTypeConfiguration.

Doc from org.hibernate.boot.spi.MetadataImplementor.getTypeConfiguration.

Access to the TypeConfiguration belonging to the BootstrapContext

Annotations
@Override
getTypeDefinitionback to summary
public TypeDefinition getTypeDefinition(String typeName)

Implements org.hibernate.boot.Metadata.getTypeDefinition.

Doc from org.hibernate.boot.Metadata.getTypeDefinition.

Retrieve a type definition by name.

Returns:TypeDefinition

The named type definition, or null

Annotations
@Override
getUUIDback to summary
public UUID getUUID()

Implements org.hibernate.boot.Metadata.getUUID.

Doc from org.hibernate.boot.Metadata.getUUID.

Gets the UUID for this metamodel.

Returns:UUID

the UUID.

Annotations
@Override
initSessionFactoryback to summary
public void initSessionFactory(SessionFactoryImplementor sessionFactory)

Implements org.hibernate.boot.spi.MetadataImplementor.initSessionFactory.

Deprecated

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

Annotations
@Override
orderColumnsback to summary
public void orderColumns(boolean forceOrdering)

Implements org.hibernate.boot.spi.MetadataImplementor.orderColumns.

Annotations
@Override
validateback to summary
public void validate() throws MappingException

Implements org.hibernate.boot.spi.MetadataImplementor.validate.

Annotations
@Override
visitNamedHqlQueryDefinitionsback to summary
public void visitNamedHqlQueryDefinitions(Consumer<NamedHqlQueryDefinition> definitionConsumer)

Implements org.hibernate.boot.Metadata.visitNamedHqlQueryDefinitions.

Doc from org.hibernate.boot.Metadata.visitNamedHqlQueryDefinitions.

Visit all named HQL query definitions

Annotations
@Override
visitNamedNativeQueryDefinitionsback to summary
public void visitNamedNativeQueryDefinitions(Consumer<NamedNativeQueryDefinition> definitionConsumer)

Implements org.hibernate.boot.Metadata.visitNamedNativeQueryDefinitions.

Doc from org.hibernate.boot.Metadata.visitNamedNativeQueryDefinitions.

Visit all named native query definitions

Annotations
@Override
visitNamedProcedureCallDefinitionback to summary
public void visitNamedProcedureCallDefinition(Consumer<NamedProcedureCallDefinition> definitionConsumer)

Implements org.hibernate.boot.Metadata.visitNamedProcedureCallDefinition.

Doc from org.hibernate.boot.Metadata.visitNamedProcedureCallDefinition.

Visit all named callable query definitions

Annotations
@Override
visitNamedResultSetMappingDefinitionback to summary
public void visitNamedResultSetMappingDefinition(Consumer<NamedResultSetMappingDescriptor> definitionConsumer)

Implements org.hibernate.boot.Metadata.visitNamedResultSetMappingDefinition.

Doc from org.hibernate.boot.Metadata.visitNamedResultSetMappingDefinition.

Visit all named SQL result set mapping definitions

Annotations
@Override
visitRegisteredComponentsback to summary
public void visitRegisteredComponents(Consumer<Component> consumer)

Implements org.hibernate.boot.spi.MetadataImplementor.visitRegisteredComponents.

Annotations
@Override