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 class
HibernateSchemaManagementTool.JdbcContextImpl
-
Constructor Summary
Constructors Constructor Description HibernateSchemaManagementTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DdlTransactionIsolator
getDdlTransactionIsolator(JdbcContext jdbcContext)
ExtractionTool
getExtractionTool()
SchemaCreator
getSchemaCreator(Map<String,Object> options)
SchemaDropper
getSchemaDropper(Map<String,Object> options)
SchemaMigrator
getSchemaMigrator(Map<String,Object> options)
SchemaValidator
getSchemaValidator(Map<String,Object> options)
ServiceRegistry
getServiceRegistry()
void
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.JdbcContext
resolveJdbcContext(Map<String,Object> configurationValues)
void
setCustomDatabaseGenerationTarget(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:ServiceRegistryAwareService
Callback to inject the registry.- Specified by:
injectServices
in interfaceServiceRegistryAwareService
- Parameters:
serviceRegistry
- The registry
-
getSchemaCreator
public SchemaCreator getSchemaCreator(Map<String,Object> options)
- Specified by:
getSchemaCreator
in interfaceSchemaManagementTool
-
getSchemaDropper
public SchemaDropper getSchemaDropper(Map<String,Object> options)
- Specified by:
getSchemaDropper
in interfaceSchemaManagementTool
-
getSchemaMigrator
public SchemaMigrator getSchemaMigrator(Map<String,Object> options)
- Specified by:
getSchemaMigrator
in interfaceSchemaManagementTool
-
getSchemaValidator
public SchemaValidator getSchemaValidator(Map<String,Object> options)
- Specified by:
getSchemaValidator
in interfaceSchemaManagementTool
-
setCustomDatabaseGenerationTarget
public void setCustomDatabaseGenerationTarget(GenerationTarget generationTarget)
Description copied from interface:SchemaManagementTool
This 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:
setCustomDatabaseGenerationTarget
in interfaceSchemaManagementTool
- Parameters:
generationTarget
- the custom instance to use.
-
getExtractionTool
public ExtractionTool getExtractionTool()
- Specified by:
getExtractionTool
in interfaceSchemaManagementTool
-
getDdlTransactionIsolator
public DdlTransactionIsolator getDdlTransactionIsolator(JdbcContext jdbcContext)
-
resolveJdbcContext
public JdbcContext resolveJdbcContext(Map<String,Object> configurationValues)
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
-
-