public class DataSourceConfig
extends java.lang.Object
DataSource
instances.Modifier and Type | Class and Description |
---|---|
static class |
DataSourceConfig.DataSourceDefinition
The definition of a DataSource.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DB_TYPE |
static java.lang.String |
DRIVER |
static java.lang.String |
MAX_POOL_SIZE |
static java.lang.String |
PASSWORD |
static java.lang.String |
URL |
static java.lang.String |
USER |
static java.lang.String |
VALIDATION_QUERY |
Constructor and Description |
---|
DataSourceConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addDataSourceDefinition(java.lang.String name,
java.util.Properties props)
Adds a DataSourceDefinition from the given properties.
|
java.util.List<DataSourceConfig.DataSourceDefinition> |
getDefinitions() |
public static final java.lang.String DRIVER
public static final java.lang.String URL
public static final java.lang.String USER
public static final java.lang.String PASSWORD
public static final java.lang.String DB_TYPE
public static final java.lang.String VALIDATION_QUERY
public static final java.lang.String MAX_POOL_SIZE
public void addDataSourceDefinition(java.lang.String name, java.util.Properties props) throws ConfigurationException
props
- the properties (key and values must be strings)ConfigurationException
- on errorpublic java.util.List<DataSourceConfig.DataSourceDefinition> getDefinitions()
DataSourceConfig.DataSourceDefinition
s"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"