类 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 custom SpringLiquibase extension that closes the underlying DataSource once the database has been migrated.
    从以下版本开始:
    2.0.6
    • 嵌套类概要

      • 从类继承的嵌套类/接口 liquibase.integration.spring.SpringLiquibase

        liquibase.integration.spring.SpringLiquibase.SpringResourceOpener
    • 字段概要

      • 从类继承的字段 liquibase.integration.spring.SpringLiquibase

        beanName, changeLog, contexts, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labels, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, tag, testRollbackOnUpdate
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidafterPropertiesSet() 
      voiddestroy() 
      voidsetCloseDataSourceOnceMigrated​(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
    • 方法详细资料

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws liquibase.exception.LiquibaseException
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        覆盖:
        afterPropertiesSet 在类中 liquibase.integration.spring.SpringLiquibase
        抛出:
        liquibase.exception.LiquibaseException
      • destroy

        public void destroy()
                     throws Exception
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        抛出:
        Exception