public final class PrevalidatedQuarkusMetadata extends Object implements org.hibernate.boot.Metadata
MetadataImpl.validate() method
earlier than when it is normally performed, for two main reasons: further reduce
the work that is still necessary when performing a runtime boot, and to be
able to still use reflection as it's neccessary e.g. to validate enum fields.
We also make sure that methods getSessionFactoryBuilder() and buildSessionFactory()
are unavailable, as these would normally trigger an additional validation phase:
we can actually boot Quarkus in a simpler way.| Modifier and Type | Method and Description |
|---|---|
org.hibernate.SessionFactory |
buildSessionFactory() |
org.hibernate.boot.internal.SessionFactoryOptionsBuilder |
buildSessionFactoryOptionsBuilder() |
Collection<org.hibernate.mapping.Table> |
collectTableMappings() |
org.hibernate.mapping.Collection |
getCollectionBinding(String role) |
Collection<org.hibernate.mapping.Collection> |
getCollectionBindings() |
org.hibernate.boot.model.relational.Database |
getDatabase() |
org.hibernate.mapping.PersistentClass |
getEntityBinding(String entityName) |
Collection<org.hibernate.mapping.PersistentClass> |
getEntityBindings() |
org.hibernate.mapping.FetchProfile |
getFetchProfile(String name) |
Collection<org.hibernate.mapping.FetchProfile> |
getFetchProfiles() |
org.hibernate.engine.spi.FilterDefinition |
getFilterDefinition(String name) |
Map<String,org.hibernate.engine.spi.FilterDefinition> |
getFilterDefinitions() |
org.hibernate.boot.model.IdentifierGeneratorDefinition |
getIdentifierGenerator(String name) |
org.hibernate.id.factory.IdentifierGeneratorFactory |
getIdentifierGeneratorFactory()
Deprecated.
|
String |
getIdentifierPropertyName(String className) |
org.hibernate.type.Type |
getIdentifierType(String className) |
Map<String,String> |
getImports() |
org.hibernate.cfg.annotations.NamedEntityGraphDefinition |
getNamedEntityGraph(String name) |
Map<String,org.hibernate.cfg.annotations.NamedEntityGraphDefinition> |
getNamedEntityGraphs() |
org.hibernate.engine.spi.NamedSQLQueryDefinition |
getNamedNativeQueryDefinition(String name) |
Collection<org.hibernate.engine.spi.NamedSQLQueryDefinition> |
getNamedNativeQueryDefinitions() |
Collection<org.hibernate.cfg.annotations.NamedProcedureCallDefinition> |
getNamedProcedureCallDefinitions() |
org.hibernate.engine.spi.NamedQueryDefinition |
getNamedQueryDefinition(String name) |
Collection<org.hibernate.engine.spi.NamedQueryDefinition> |
getNamedQueryDefinitions() |
org.hibernate.boot.spi.MetadataImplementor |
getOriginalMetadata() |
org.hibernate.type.Type |
getReferencedPropertyType(String className,
String propertyName) |
org.hibernate.engine.ResultSetMappingDefinition |
getResultSetMapping(String name) |
Map<String,org.hibernate.engine.ResultSetMappingDefinition> |
getResultSetMappingDefinitions() |
org.hibernate.boot.SessionFactoryBuilder |
getSessionFactoryBuilder() |
Map<String,org.hibernate.dialect.function.SQLFunction> |
getSqlFunctionMap() |
org.hibernate.boot.model.TypeDefinition |
getTypeDefinition(String typeName) |
UUID |
getUUID() |
static PrevalidatedQuarkusMetadata |
validateAndWrap(org.hibernate.boot.internal.MetadataImpl original) |
public static PrevalidatedQuarkusMetadata validateAndWrap(org.hibernate.boot.internal.MetadataImpl original)
public org.hibernate.boot.internal.SessionFactoryOptionsBuilder buildSessionFactoryOptionsBuilder()
public org.hibernate.boot.spi.MetadataImplementor getOriginalMetadata()
public org.hibernate.boot.SessionFactoryBuilder getSessionFactoryBuilder()
getSessionFactoryBuilder in interface org.hibernate.boot.Metadatapublic org.hibernate.SessionFactory buildSessionFactory()
buildSessionFactory in interface org.hibernate.boot.Metadatapublic UUID getUUID()
getUUID in interface org.hibernate.boot.Metadatapublic org.hibernate.boot.model.relational.Database getDatabase()
getDatabase in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.mapping.PersistentClass> getEntityBindings()
getEntityBindings in interface org.hibernate.boot.Metadatapublic org.hibernate.mapping.PersistentClass getEntityBinding(String entityName)
getEntityBinding in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.mapping.Collection> getCollectionBindings()
getCollectionBindings in interface org.hibernate.boot.Metadatapublic org.hibernate.mapping.Collection getCollectionBinding(String role)
getCollectionBinding in interface org.hibernate.boot.Metadatapublic Map<String,String> getImports()
getImports in interface org.hibernate.boot.Metadatapublic org.hibernate.engine.spi.NamedQueryDefinition getNamedQueryDefinition(String name)
getNamedQueryDefinition in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.engine.spi.NamedQueryDefinition> getNamedQueryDefinitions()
getNamedQueryDefinitions in interface org.hibernate.boot.Metadatapublic org.hibernate.engine.spi.NamedSQLQueryDefinition getNamedNativeQueryDefinition(String name)
getNamedNativeQueryDefinition in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.engine.spi.NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
getNamedNativeQueryDefinitions in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.cfg.annotations.NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
getNamedProcedureCallDefinitions in interface org.hibernate.boot.Metadatapublic org.hibernate.engine.ResultSetMappingDefinition getResultSetMapping(String name)
getResultSetMapping in interface org.hibernate.boot.Metadatapublic Map<String,org.hibernate.engine.ResultSetMappingDefinition> getResultSetMappingDefinitions()
getResultSetMappingDefinitions in interface org.hibernate.boot.Metadatapublic org.hibernate.boot.model.TypeDefinition getTypeDefinition(String typeName)
getTypeDefinition in interface org.hibernate.boot.Metadatapublic Map<String,org.hibernate.engine.spi.FilterDefinition> getFilterDefinitions()
getFilterDefinitions in interface org.hibernate.boot.Metadatapublic org.hibernate.engine.spi.FilterDefinition getFilterDefinition(String name)
getFilterDefinition in interface org.hibernate.boot.Metadatapublic org.hibernate.mapping.FetchProfile getFetchProfile(String name)
getFetchProfile in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.mapping.FetchProfile> getFetchProfiles()
getFetchProfiles in interface org.hibernate.boot.Metadatapublic org.hibernate.cfg.annotations.NamedEntityGraphDefinition getNamedEntityGraph(String name)
getNamedEntityGraph in interface org.hibernate.boot.Metadatapublic Map<String,org.hibernate.cfg.annotations.NamedEntityGraphDefinition> getNamedEntityGraphs()
getNamedEntityGraphs in interface org.hibernate.boot.Metadatapublic org.hibernate.boot.model.IdentifierGeneratorDefinition getIdentifierGenerator(String name)
getIdentifierGenerator in interface org.hibernate.boot.Metadatapublic Collection<org.hibernate.mapping.Table> collectTableMappings()
collectTableMappings in interface org.hibernate.boot.Metadatapublic Map<String,org.hibernate.dialect.function.SQLFunction> getSqlFunctionMap()
getSqlFunctionMap in interface org.hibernate.boot.Metadata@Deprecated public org.hibernate.id.factory.IdentifierGeneratorFactory getIdentifierGeneratorFactory()
getIdentifierGeneratorFactory in interface org.hibernate.engine.spi.Mappingpublic org.hibernate.type.Type getIdentifierType(String className) throws org.hibernate.MappingException
getIdentifierType in interface org.hibernate.engine.spi.Mappingorg.hibernate.MappingExceptionpublic String getIdentifierPropertyName(String className) throws org.hibernate.MappingException
getIdentifierPropertyName in interface org.hibernate.engine.spi.Mappingorg.hibernate.MappingExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.