@Profile(value="nflow.db.db2") @Configuration public class Db2DatabaseConfiguration extends DatabaseConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
Db2DatabaseConfiguration.Db2SQLVariants
SQL variants optimized for DB2.
|
NFLOW_DATABASE_INITIALIZER| Constructor and Description |
|---|
Db2DatabaseConfiguration()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDatabaseConfiguration(Environment env,
DataSource dataSource)
Checks that the database is configured as nFlow expects.
|
SQLVariants |
sqlVariants(Environment env)
Creates the SQL variants for DB2.
|
nflowDatabaseInitializer, nflowDatasource, nflowJdbcTemplate, nflowNamedParameterJdbcTemplate, nflowTransactionTemplate, property, propertypublic Db2DatabaseConfiguration()
@Bean public SQLVariants sqlVariants(Environment env)
env - The Spring environment for getting the configuration property values.protected void checkDatabaseConfiguration(Environment env, DataSource dataSource)
DatabaseConfigurationcheckDatabaseConfiguration in class DatabaseConfigurationenv - The Spring environment.dataSource - The nFlow datasource.Copyright © 2014–2020 Nitor Creations. All rights reserved.