Class BatchDataSourceInitializer
- java.lang.Object
- org.springframework.boot.jdbc.AbstractDataSourceInitializer
- org.springframework.boot.autoconfigure.batch.BatchDataSourceInitializer
public class BatchDataSourceInitializer extends org.springframework.boot.jdbc.AbstractDataSourceInitializer
Initialize the Spring Batch schema (ignoring errors, so should be idempotent).
Constructor Summary
Constructors Constructor Description BatchDataSourceInitializer(DataSource dataSource, org.springframework.core.io.ResourceLoader resourceLoader, BatchProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getDatabaseName()
protected org.springframework.boot.jdbc.DataSourceInitializationMode
getMode()
protected String
getSchemaLocation()
Constructor Detail
BatchDataSourceInitializer
public BatchDataSourceInitializer(DataSource dataSource, org.springframework.core.io.ResourceLoader resourceLoader, BatchProperties properties)
Method Detail
getMode
protected org.springframework.boot.jdbc.DataSourceInitializationMode getMode()
- Specified by:
getMode
in classorg.springframework.boot.jdbc.AbstractDataSourceInitializer
getSchemaLocation
protected String getSchemaLocation()
- Specified by:
getSchemaLocation
in classorg.springframework.boot.jdbc.AbstractDataSourceInitializer
getDatabaseName
protected String getDatabaseName()
- Overrides:
getDatabaseName
in classorg.springframework.boot.jdbc.AbstractDataSourceInitializer