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)
Create data source for H2 database
|
String |
getDialect()
Get the dialect for H2 database
|
static void |
initDefaultMap()
Set the Map to use H2 Database
|
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)
createDataSource 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()
getDialect in interface DataSourceProviderpublic static void initDefaultMap()
Copyright © 2018 Gumga. All rights reserved.