List of usage examples for org.springframework.jdbc.datasource.embedded ConnectionProperties setPassword
void setPassword(String password);
From source file:sf.wicklet.gwt.site.server.db.H2Configurator.java
@Override public void configureConnectionProperties(final ConnectionProperties properties, final String dbname) { properties.setDriverClass(driverClass); properties.setUrl(String.format("jdbc:h2:%s;AUTOCOMMIT=ON", dbPath)); properties.setUsername("sa"); properties.setPassword(""); }
From source file:org.fao.geonet.GeonetworkH2TestEmbeddedDatabaseConfigurer.java
public void configureConnectionProperties(ConnectionProperties properties, String databaseName) { properties.setDriverClass(this.driverClass); // properties.setUrl(String.format("jdbc:h2:mem:%s;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=FALSE", databaseName)); if (_dbPathLocator.isPresent()) { try {/*from w w w .j a va 2 s . co m*/ properties.setUrl( String.format("jdbc:h2:%s;DB_CLOSE_DELAY=-1%s", _dbPathLocator.get().call(), _mode)); } catch (Exception e) { throw new RuntimeException(e); } } else { properties.setUrl(String.format("jdbc:h2:mem:%s;DB_CLOSE_DELAY=-1%s", databaseName, _mode)); } properties.setUsername(_username); properties.setPassword(_password); }
From source file:org.springframework.jdbc.datasource.embedded.DerbyEmbeddedDatabaseConfigurer.java
@Override public void configureConnectionProperties(ConnectionProperties properties, String databaseName) { properties.setDriverClass(EmbeddedDriver.class); properties.setUrl(String.format(URL_TEMPLATE, databaseName, "create=true")); properties.setUsername("sa"); properties.setPassword(""); }