public interface DataSourcePool
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getAllJndiDataSourceNames()
Return the collection of all JNDI data sources available with the system.
|
java.lang.Object |
getDataSource(java.lang.String name)
Return the named data source, if available, as an Object.
|
<AdapterType> |
getDataSource(java.lang.String name,
java.lang.Class<AdapterType> desiredType)
Return the named data source, if available
|
<AdapterType> AdapterType getDataSource(java.lang.String name, java.lang.Class<AdapterType> desiredType) throws DataSourceNotFoundException, TypeNotAvailableException
name
- Configured name of the data sourcedesiredType,
- expected type (for example DataSource.class for a
j2ee DataSource).DataSourceNotFoundException
- no data source found with supplied
name.TypeNotAvailableException
- data source found but not compatible
with desired typejava.lang.Object getDataSource(java.lang.String name) throws DataSourceNotFoundException
name
- name of the data sourceDataSourceNotFoundException
- if the data source is not foundjava.util.Collection<java.lang.String> getAllJndiDataSourceNames()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"