public class BatchDataSourceScriptDatabaseInitializer extends DataSourceScriptDatabaseInitializer
DataSourceScriptDatabaseInitializer
for the Spring Batch database. May be
registered as a bean to override auto-configuration.Constructor and Description |
---|
BatchDataSourceScriptDatabaseInitializer(DataSource dataSource,
BatchProperties.Jdbc properties)
Create a new
BatchDataSourceScriptDatabaseInitializer instance. |
BatchDataSourceScriptDatabaseInitializer(DataSource dataSource,
DatabaseInitializationSettings settings)
Create a new
BatchDataSourceScriptDatabaseInitializer instance. |
Modifier and Type | Method and Description |
---|---|
static DatabaseInitializationSettings |
getSettings(DataSource dataSource,
BatchProperties.Jdbc properties)
Adapts
Spring Batch JDBC properties to
DatabaseInitializationSettings replacing any @@platform@@
placeholders. |
customize, getDataSource, isEmbeddedDatabase, runScripts
afterPropertiesSet, initializeDatabase, setResourceLoader
public BatchDataSourceScriptDatabaseInitializer(DataSource dataSource, BatchProperties.Jdbc properties)
BatchDataSourceScriptDatabaseInitializer
instance.dataSource
- the Spring Batch data sourceproperties
- the Spring Batch JDBC propertiesgetSettings(javax.sql.DataSource, org.springframework.boot.autoconfigure.batch.BatchProperties.Jdbc)
public BatchDataSourceScriptDatabaseInitializer(DataSource dataSource, DatabaseInitializationSettings settings)
BatchDataSourceScriptDatabaseInitializer
instance.dataSource
- the Spring Batch data sourcesettings
- the database initialization settingsgetSettings(javax.sql.DataSource, org.springframework.boot.autoconfigure.batch.BatchProperties.Jdbc)
public static DatabaseInitializationSettings getSettings(DataSource dataSource, BatchProperties.Jdbc properties)
Spring Batch JDBC properties
to
DatabaseInitializationSettings
replacing any @@platform@@
placeholders.dataSource
- the Spring Batch data sourceproperties
- batch JDBC propertiesDatabaseInitializationSettings
instanceBatchDataSourceScriptDatabaseInitializer(DataSource,
DatabaseInitializationSettings)