类 DataSourceClosingSpringLiquibase

java.lang.Object
liquibase.integration.spring.SpringLiquibase
org.springframework.boot.autoconfigure.liquibase.DataSourceClosingSpringLiquibase
所有已实现的接口:
Aware, BeanNameAware, DisposableBean, InitializingBean, ResourceLoaderAware

public class DataSourceClosingSpringLiquibase extends liquibase.integration.spring.SpringLiquibase implements DisposableBean
A custom SpringLiquibase extension that closes the underlying DataSource once the database has been migrated.
从以下版本开始:
2.0.6
作者:
Andy Wilkinson
  • 字段概要

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

    beanName, changeLog, clearCheckSums, contexts, customizer, databaseChangeLogLockTable, databaseChangeLogTable, dataSource, defaultSchema, dropFirst, labelFilter, liquibaseSchema, liquibaseTablespace, log, parameters, resourceLoader, rollbackFile, shouldRun, showSummary, showSummaryOutput, tag, testRollbackOnUpdate, uiService
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    void
     
    void
    setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated)
     

    从类继承的方法 liquibase.integration.spring.SpringLiquibase

    createDatabase, createLiquibase, createResourceOpener, getBeanName, getChangeLog, getContexts, getCustomizer, getDatabaseChangeLogLockTable, getDatabaseChangeLogTable, getDatabaseProductName, getDataSource, getDefaultSchema, getLabelFilter, getLabels, getLiquibaseSchema, getLiquibaseTablespace, getResourceLoader, getTag, getUiService, isClearCheckSums, isDropFirst, isTestRollbackOnUpdate, performUpdate, setBeanName, setChangeLog, setChangeLogParameters, setClearCheckSums, setContexts, setCustomizer, setDatabaseChangeLogLockTable, setDatabaseChangeLogTable, setDataSource, setDefaultSchema, setDropFirst, setLabelFilter, setLabels, setLiquibaseSchema, setLiquibaseTablespace, setResourceLoader, setRollbackFile, setShouldRun, setShowSummary, setShowSummaryOutput, setTag, setTestRollbackOnUpdate, setUiService, toString

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • DataSourceClosingSpringLiquibase

      public DataSourceClosingSpringLiquibase()
  • 方法详细资料

    • setCloseDataSourceOnceMigrated

      public void setCloseDataSourceOnceMigrated(boolean closeDataSourceOnceMigrated)
    • afterPropertiesSet

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

      public void destroy() throws Exception
      指定者:
      destroy 在接口中 DisposableBean
      抛出:
      Exception