org.springframework.boot.jdbc

Class AbstractDataSourceInitializer

  • java.lang.Object
    • org.springframework.boot.jdbc.AbstractDataSourceInitializer
  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean


    public abstract class AbstractDataSourceInitializer
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    Base class used for DataSource initialization.
    Since:
    1.5.0
    • Constructor Detail

      • AbstractDataSourceInitializer

        protected AbstractDataSourceInitializer(javax.sql.DataSource dataSource,
                                                org.springframework.core.io.ResourceLoader resourceLoader)
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • initialize

        protected void initialize()
      • customize

        protected void customize(org.springframework.jdbc.datasource.init.ResourceDatabasePopulator populator)
        Customize the ResourceDatabasePopulator.
        Parameters:
        populator - the configured database populator
      • getSchemaLocation

        protected abstract java.lang.String getSchemaLocation()
      • getDatabaseName

        protected java.lang.String getDatabaseName()