类 DataSourceClosingSpringLiquibase
- java.lang.Object
- liquibase.integration.spring.SpringLiquibase
- org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ResourceLoaderAware
public class DataSourceClosingSpringLiquibase extends liquibase.integration.spring.SpringLiquibase implements org.springframework.beans.factory.DisposableBean
A customSpringLiquibase
extension that closes the underlyingDataSource
once the database has been migrated.- 从以下版本开始:
- 2.0.6
字段概要
从类继承的字段 liquibase.integration.spring.SpringLiquibase
beanName, changeLog, contexts, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labels, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, tag, testRollbackOnUpdate
构造器概要
构造器 构造器 说明 DataSourceClosingSpringLiquibase()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
void
destroy()
void
setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated)
从类继承的方法 liquibase.integration.spring.SpringLiquibase
createDatabase, createLiquibase, createResourceOpener, getBeanName, getChangeLog, getContexts, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabels, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, isDropFirst, isIgnoreClasspathPrefix, isTestRollbackOnUpdate, performUpdate, setBeanName, setChangeLog, setChangeLogParameters, setContexts, setDatabaseChangeLogLockTable, setDatabaseChangeLogTable, setDataSource, setDefaultSchema, setDropFirst, setIgnoreClasspathPrefix, setLabels, setLiquibaseSchema, setLiquibaseTablespace, setResourceLoader, setRollbackFile, setShouldRun, setTag, setTestRollbackOnUpdate, toString
构造器详细资料
DataSourceClosingSpringLiquibase
public DataSourceClosingSpringLiquibase()
方法详细资料
setCloseDataSourceOnceMigrated
public void setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated)
afterPropertiesSet
public void afterPropertiesSet() throws liquibase.exception.LiquibaseException
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 覆盖:
afterPropertiesSet
在类中liquibase.integration.spring.SpringLiquibase
- 抛出:
liquibase.exception.LiquibaseException