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 of
SchemaManagementTool
for performing schema management.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GenerationTarget
buildDatabaseTarget
(JdbcContext jdbcContext, boolean needsAutoCommit) buildGenerationTargets
(TargetDescriptor targetDescriptor, JdbcContext jdbcContext, Map<String, Object> options, boolean needsAutoCommit) Resolves the targets to which to send the DDL commands based on configurationprotected GenerationTarget
buildScriptTarget
(TargetDescriptor targetDescriptor, String scriptDelimiter) protected GenerationTarget
buildStdoutTarget
(String scriptDelimiter) getDdlTransactionIsolator
(JdbcContext jdbcContext) getSchemaCreator
(Map<String, Object> options) getSchemaDropper
(Map<String, Object> options) getSchemaMigrator
(Map<String, Object> options) getSchemaTruncator
(Map<String, Object> options) getSchemaValidator
(Map<String, Object> options) void
injectServices
(ServiceRegistryImplementor serviceRegistry) Callback to inject the registry.resolveJdbcContext
(Map<String, Object> configurationValues) void
setCustomDatabaseGenerationTarget
(GenerationTarget generationTarget) This allows to set an alternative implementation for the Database generation target.
-
Constructor Details
-
HibernateSchemaManagementTool
public HibernateSchemaManagementTool()
-
-
Method Details
-
injectServices
Description copied from interface:ServiceRegistryAwareService
Callback to inject the registry.- Specified by:
injectServices
in interfaceServiceRegistryAwareService
- Parameters:
serviceRegistry
- The registry
-
getSchemaCreator
- Specified by:
getSchemaCreator
in interfaceSchemaManagementTool
-
getSchemaDropper
- Specified by:
getSchemaDropper
in interfaceSchemaManagementTool
-
getSchemaTruncator
- Specified by:
getSchemaTruncator
in interfaceSchemaManagementTool
-
getSchemaMigrator
- Specified by:
getSchemaMigrator
in interfaceSchemaManagementTool
-
getSchemaValidator
- Specified by:
getSchemaValidator
in interfaceSchemaManagementTool
-
setCustomDatabaseGenerationTarget
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
- 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
-
buildScriptTarget
protected GenerationTarget buildScriptTarget(TargetDescriptor targetDescriptor, String scriptDelimiter) -
buildDatabaseTarget
-
getDdlTransactionIsolator
-
resolveJdbcContext
-
getServiceRegistry
-