Package io.nflow.engine.config.db
Class Db2DatabaseConfiguration
- java.lang.Object
-
- io.nflow.engine.config.db.DatabaseConfiguration
-
- io.nflow.engine.config.db.Db2DatabaseConfiguration
-
@Profile("nflow.db.db2") @Configuration public class Db2DatabaseConfiguration extends DatabaseConfiguration
Configuration for DB2 database. Note: tested only using DB2 Express-C (Docker: ibmcom/db2express-c).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDb2DatabaseConfiguration.Db2SQLVariantsSQL variants optimized for DB2.
-
Field Summary
-
Fields inherited from class io.nflow.engine.config.db.DatabaseConfiguration
NFLOW_DATABASE_INITIALIZER
-
-
Constructor Summary
Constructors Constructor Description Db2DatabaseConfiguration()Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckDatabaseConfiguration(Environment env, DataSource dataSource)Checks that the database is configured as nFlow expects.SQLVariantssqlVariants(Environment env)Creates the SQL variants for the database.-
Methods inherited from class io.nflow.engine.config.db.DatabaseConfiguration
nflowDatabaseInitializer, nflowDatasource, nflowDatasource, nflowJdbcTemplate, nflowNamedParameterJdbcTemplate, nflowTransactionTemplate, property, property
-
-
-
-
Method Detail
-
sqlVariants
@Bean public SQLVariants sqlVariants(Environment env)
Creates the SQL variants for the database.- Specified by:
sqlVariantsin classDatabaseConfiguration- Parameters:
env- The Spring environment.- Returns:
- SQL variants optimized for the database.
-
checkDatabaseConfiguration
protected void checkDatabaseConfiguration(Environment env, DataSource dataSource)
Description copied from class:DatabaseConfigurationChecks that the database is configured as nFlow expects.- Overrides:
checkDatabaseConfigurationin classDatabaseConfiguration- Parameters:
env- The Spring environment.dataSource- The nFlow datasource.
-
-