use of com.cadenzauk.core.sql.testutil.PooledDataSource in project siesta by cadenzauk.
the class Db2Config method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
DB2ConnectionPoolDataSource pool = new DB2ConnectionPoolDataSource();
pool.setDatabaseName("SIESTA");
pool.setDriverType(2);
pool.setConcurrentAccessResolution(1);
return new PooledDataSource(pool);
}
use of com.cadenzauk.core.sql.testutil.PooledDataSource in project siesta by cadenzauk.
the class SqlServerConfig method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
SQLServerConnectionPoolDataSource pool = new SQLServerConnectionPoolDataSource();
pool.setServerName("localhost\\SQLEXPRESS");
pool.setDatabaseName("SIESTA");
pool.setIntegratedSecurity(true);
return new PooledDataSource(pool);
}
use of com.cadenzauk.core.sql.testutil.PooledDataSource in project siesta by cadenzauk.
the class PostgresConfig method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
PGConnectionPoolDataSource pool = new PGConnectionPoolDataSource();
pool.setUser("siesta");
pool.setDatabaseName("postgres");
return new PooledDataSource(pool);
}
use of com.cadenzauk.core.sql.testutil.PooledDataSource in project siesta by cadenzauk.
the class OracleConfig method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
OracleConnectionPoolDataSource pool = new OracleConnectionPoolDataSource();
pool.setUser("siesta");
pool.setPassword("siesta");
pool.setURL("jdbc:oracle:thin:@127.0.0.1:1521:xe");
return new PooledDataSource(pool, "ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD'");
}
use of com.cadenzauk.core.sql.testutil.PooledDataSource in project siesta by cadenzauk.
the class FirebirdConfig method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
FBConnectionPoolDataSource pool = new FBConnectionPoolDataSource();
pool.setServerName("localhost");
pool.setUser("SIESTA");
pool.setPassword("siesta");
pool.setDatabaseName("siesta");
pool.setCharSet("utf-8");
return new PooledDataSource(pool);
}
Aggregations