Package org.hibernate.tool.schema.spi
Interface SchemaManagementTool
- All Superinterfaces:
Serializable,Service
- All Known Implementing Classes:
HibernateSchemaManagementTool
@Incubatingpublic interfaceSchemaManagementToolextendsService
Contract for schema management tool integration.
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description defaultGenerationTarget[]buildGenerationTargets(TargetDescriptor targetDescriptor,JdbcContext jdbcContext,Map<String,Object> options, boolean needsAutoCommit)Resolves thetargets to which to send the DDL commands based on configurationExtractionToolgetExtractionTool()SchemaCreatorgetSchemaCreator(Map<String,Object> options)SchemaDroppergetSchemaDropper(Map<String,Object> options)SchemaMigratorgetSchemaMigrator(Map<String,Object> options)defaultSchemaTruncatorgetSchemaTruncator(Map<String,Object> options)SchemaValidatorgetSchemaValidator(Map<String,Object> options)voidsetCustomDatabaseGenerationTarget(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 thetargets to which to send the DDL commands based on configuration