@Profile(value="nflow.db.h2") @Configuration public class H2DatabaseConfiguration extends DatabaseConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
H2DatabaseConfiguration.H2SQLVariants
SQL variants optimized for H2.
|
NFLOW_DATABASE_INITIALIZER| Constructor and Description |
|---|
H2DatabaseConfiguration()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.h2.tools.Server |
h2ConsoleServer(Environment env)
Creates a console server for connecting to the in-memory database.
|
org.h2.tools.Server |
h2TcpServer(Environment env)
Creates a server for connecting to the in-memory database.
|
SQLVariants |
sqlVariants(Environment env)
Creates the SQL variants for the database.
|
checkDatabaseConfiguration, nflowDatabaseInitializer, nflowDatasource, nflowDatasource, nflowJdbcTemplate, nflowNamedParameterJdbcTemplate, nflowTransactionTemplate, property, property@Bean(initMethod="start", destroyMethod="stop") public org.h2.tools.Server h2TcpServer(Environment env) throws SQLException
env - The Spring environemnt for getting the configuration properties.SQLException@Bean(initMethod="start", destroyMethod="stop") public org.h2.tools.Server h2ConsoleServer(Environment env) throws SQLException
env - The Spring environemnt for getting the configuration properties.SQLException@Bean public SQLVariants sqlVariants(Environment env)
sqlVariants in class DatabaseConfigurationenv - The Spring environment.Copyright © 2014–2021 Nitor Creations. All rights reserved.