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 ofSchemaManagementToolfor 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
-
-
-
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
-
getSchemaTruncator
public SchemaTruncator getSchemaTruncator(Map<String,Object> options)
- Specified by:
getSchemaTruncatorin 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
-
buildGenerationTargets
public GenerationTarget[] buildGenerationTargets(TargetDescriptor targetDescriptor, JdbcContext jdbcContext, Map<String,Object> options, boolean needsAutoCommit)
Description copied from interface:SchemaManagementToolResolves the targets to which to send the DDL commands based on configuration- Specified by:
buildGenerationTargetsin 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()
-
-