| java.lang.Object org.geotools.data.jdbc.datasource.DataSourceUtil
DataSourceUtil | public class DataSourceUtil (Code) | | Utility methods to build a default connection pool
author: Andrea Aime - TOPP |
Method Summary | |
public static ManageableDataSource | buildDefaultDataSource(String url, String driverName, String username, String password, String validationQuery) Builds up a default DBCP DataSource that easy to use connection factories
can use to setup a connection pool. | public static ManageableDataSource | buildDefaultDataSource(String url, String driverName, String username, String password, int maxActive, int minIdle, String validationQuery, boolean cachePreparedStatements, int removeAbandonedTimeout) Builds up a default DBCP DataSource that easy to use connection factories
can use to setup a connection pool. |
buildDefaultDataSource | public static ManageableDataSource buildDefaultDataSource(String url, String driverName, String username, String password, String validationQuery) throws DataSourceException(Code) | | Builds up a default DBCP DataSource that easy to use connection factories
can use to setup a connection pool.
Parameters: url - the jdbc url Parameters: driverName - the jdbc driver full qualified class name Parameters: username - Parameters: password - Parameters: validationQuery - the validation query to be used for connection liveliness onborrow, or null, if no check is to be performed throws: DataSourceException - |
buildDefaultDataSource | public static ManageableDataSource buildDefaultDataSource(String url, String driverName, String username, String password, int maxActive, int minIdle, String validationQuery, boolean cachePreparedStatements, int removeAbandonedTimeout) throws DataSourceException(Code) | | Builds up a default DBCP DataSource that easy to use connection factories
can use to setup a connection pool.
Parameters: url - the jdbc url Parameters: driverName - the jdbc driver full qualified class name Parameters: username - Parameters: password - Parameters: maxActive - maximum number of concurrent connections in the pool Parameters: minIdle - minimum number of concurrent connections in the pool Parameters: validationQuery - the validation query to be used for connection liveliness onborrow, or null, if no check is to be performed Parameters: cachePreparedStatements - wheter to cache prepared statements or not throws: DataSourceException - |
|
|