public interface DataSourceProvider
| 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
|
DataSource createDataSource(String url, String user, String password)
url - The url to access the databaseuser - database userpassword - database passwordDataSource createDataSource(String url, String user, String password, int minConnections, int maxConnections)
url - 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 poolString getDialect()
Copyright © 2017 Gumga. All rights reserved.