public class TomcalDBPoolUtils extends Object
| Constructor and Description |
|---|
TomcalDBPoolUtils() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
createDataSource(Properties properties,
String... prefixes)
Creates and configures a
DataSource instance based on the
given properties. |
static org.apache.tomcat.jdbc.pool.PoolConfiguration |
getPoolProperties(Properties properties,
String... prefixes)
Parses the given properties and creates Properties for Data Source
|
public static org.apache.tomcat.jdbc.pool.PoolConfiguration getPoolProperties(Properties properties, String... prefixes)
properties - the propertiesprefixes - the prefixespublic DataSource createDataSource(Properties properties, String... prefixes) throws Exception
DataSource instance based on the
given properties.properties - the datasource configuration propertiesprefixes - The prefixesException - if an error occurs creating the data sourceCopyright © 2022. All rights reserved.