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
-
-
-
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
-
getSchemaTruncator
public SchemaTruncator getSchemaTruncator(Map<String,Object> options)
- Specified by:
getSchemaTruncator
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
-
buildGenerationTargets
public GenerationTarget[] buildGenerationTargets(TargetDescriptor targetDescriptor, JdbcContext jdbcContext, Map<String,Object> options, boolean needsAutoCommit)
Description copied from interface:SchemaManagementTool
Resolves the targets to which to send the DDL commands based on configuration- Specified by:
buildGenerationTargets
in interfaceSchemaManagementTool
-
buildStdoutTarget
protected GenerationTarget buildStdoutTarget(String scriptDelimiter)
-
buildScriptTarget
protected GenerationTarget buildScriptTarget(TargetDescriptor targetDescriptor, String scriptDelimiter)
-
buildDatabaseTarget
protected GenerationTarget buildDatabaseTarget(JdbcContext jdbcContext, boolean needsAutoCommit)
-
getDdlTransactionIsolator
public DdlTransactionIsolator getDdlTransactionIsolator(JdbcContext jdbcContext)
-
resolveJdbcContext
public JdbcContext resolveJdbcContext(Map<String,Object> configurationValues)
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
-
-