Class HibernateSchemaManagementTool
- java.lang.Object
-
- org.hibernate.tool.schema.internal.HibernateSchemaManagementTool
-
- All Implemented Interfaces:
Serializable,Service,ServiceRegistryAwareService,SchemaManagementTool
public class HibernateSchemaManagementTool extends Object implements SchemaManagementTool, ServiceRegistryAwareService
The standard Hibernate implementation for performing schema management.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernateSchemaManagementTool.JdbcContextImpl
-
Constructor Summary
Constructors Constructor Description HibernateSchemaManagementTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DdlTransactionIsolatorgetDdlTransactionIsolator(JdbcContext jdbcContext)ExtractionToolgetExtractionTool()SchemaCreatorgetSchemaCreator(Map<String,Object> options)SchemaDroppergetSchemaDropper(Map<String,Object> options)SchemaMigratorgetSchemaMigrator(Map<String,Object> options)SchemaValidatorgetSchemaValidator(Map<String,Object> options)ServiceRegistrygetServiceRegistry()voidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.JdbcContextresolveJdbcContext(Map<String,Object> configurationValues)voidsetCustomDatabaseGenerationTarget(GenerationTarget generationTarget)This allows to set an alternative implementation for the Database generation target.
-
-
-
Method Detail
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
Description copied from interface:ServiceRegistryAwareServiceCallback to inject the registry.- Specified by:
injectServicesin interfaceServiceRegistryAwareService- Parameters:
serviceRegistry- The registry
-
getSchemaCreator
public SchemaCreator getSchemaCreator(Map<String,Object> options)
- Specified by:
getSchemaCreatorin interfaceSchemaManagementTool
-
getSchemaDropper
public SchemaDropper getSchemaDropper(Map<String,Object> options)
- Specified by:
getSchemaDropperin interfaceSchemaManagementTool
-
getSchemaMigrator
public SchemaMigrator getSchemaMigrator(Map<String,Object> options)
- Specified by:
getSchemaMigratorin interfaceSchemaManagementTool
-
getSchemaValidator
public SchemaValidator getSchemaValidator(Map<String,Object> options)
- Specified by:
getSchemaValidatorin interfaceSchemaManagementTool
-
setCustomDatabaseGenerationTarget
public void setCustomDatabaseGenerationTarget(GenerationTarget generationTarget)
Description copied from interface:SchemaManagementToolThis allows to set an alternative implementation for the Database generation target. Used by Hibernate Reactive so that it can use the reactive database access rather than needing a JDBC connection.- Specified by:
setCustomDatabaseGenerationTargetin interfaceSchemaManagementTool- Parameters:
generationTarget- the custom instance to use.
-
getExtractionTool
public ExtractionTool getExtractionTool()
- Specified by:
getExtractionToolin interfaceSchemaManagementTool
-
getDdlTransactionIsolator
public DdlTransactionIsolator getDdlTransactionIsolator(JdbcContext jdbcContext)
-
resolveJdbcContext
public JdbcContext resolveJdbcContext(Map<String,Object> configurationValues)
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
-
-