Package org.hibernate.tool.schema.spi
Interface SchemaManagementTool
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
HibernateSchemaManagementTool
@Incubating public interface SchemaManagementTool extends Service
Contract for schema management tool integration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GenerationTarget[]
buildGenerationTargets(TargetDescriptor targetDescriptor, JdbcContext jdbcContext, Map<String,Object> options, boolean needsAutoCommit)
Resolves the targets to which to send the DDL commands based on configurationExtractionTool
getExtractionTool()
SchemaCreator
getSchemaCreator(Map<String,Object> options)
SchemaDropper
getSchemaDropper(Map<String,Object> options)
SchemaMigrator
getSchemaMigrator(Map<String,Object> options)
default SchemaTruncator
getSchemaTruncator(Map<String,Object> options)
SchemaValidator
getSchemaValidator(Map<String,Object> options)
void
setCustomDatabaseGenerationTarget(GenerationTarget generationTarget)
This allows to set an alternative implementation for the Database generation target.
-
-
-
Method Detail
-
getSchemaCreator
SchemaCreator getSchemaCreator(Map<String,Object> options)
-
getSchemaDropper
SchemaDropper getSchemaDropper(Map<String,Object> options)
-
getSchemaMigrator
SchemaMigrator getSchemaMigrator(Map<String,Object> options)
-
getSchemaValidator
SchemaValidator getSchemaValidator(Map<String,Object> options)
-
getSchemaTruncator
default SchemaTruncator getSchemaTruncator(Map<String,Object> options)
-
setCustomDatabaseGenerationTarget
void setCustomDatabaseGenerationTarget(GenerationTarget generationTarget)
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.- Parameters:
generationTarget
- the custom instance to use.
-
getExtractionTool
ExtractionTool getExtractionTool()
-
buildGenerationTargets
default GenerationTarget[] buildGenerationTargets(TargetDescriptor targetDescriptor, JdbcContext jdbcContext, Map<String,Object> options, boolean needsAutoCommit)
Resolves the targets to which to send the DDL commands based on configuration
-
-