public class H2DataSourceProvider extends Object implements DataSourceProvider
| Constructor and Description |
|---|
H2DataSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
createDataSource(String url,
String user,
String password)
Creates the data source
|
DataSource |
createDataSource(String url,
String user,
String password,
int minConnections,
int maxConnections)
Creates the data source with additional parameters
|
String |
getDialect()
Returns the name of the dialect
|
static void |
initDefaultMap() |
public DataSource createDataSource(String url, String user, String password)
DataSourceProvidercreateDataSource in interface DataSourceProviderurl - The url to access the databaseuser - database userpassword - database passwordpublic DataSource createDataSource(String url, String user, String password, int minConnections, int maxConnections)
DataSourceProvidercreateDataSource in interface DataSourceProviderurl - The url to access the databaseuser - database userpassword - database passwordminConnections - The minimum database connections to be open by the connection poolmaxConnections - The maximum database connections to be open by the connection poolpublic String getDialect()
DataSourceProvidergetDialect in interface DataSourceProviderpublic static void initDefaultMap()
Copyright © 2017 Gumga. All rights reserved.