org.apache.avalon.excalibur.datasource
Interface DataSourceComponent
- All Superinterfaces:
- Component, Configurable, ThreadSafe
- All Known Subinterfaces:
- HashedDataSourceCluster, IndexedDataSourceCluster, RoundRobinDataSourceCluster
- All Known Implementing Classes:
- DefaultHashedDataSourceCluster, DefaultIndexedDataSourceCluster, DefaultRoundRobinDataSourceCluster, InformixDataSource, J2eeDataSource, JdbcDataSource, ResourceLimitingJdbcDataSource
- public interface DataSourceComponent
- extends Component, Configurable, ThreadSafe
The standard interface for DataSources in Avalon.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.10 $ $Date: 2003/04/29 03:04:05 $
- Author:
- Berin Loritsch
Field Summary |
static String |
ROLE
The name of the role for convenience |
ROLE
public static final String ROLE
- The name of the role for convenience
getConnection
public Connection getConnection()
throws SQLException
- Gets the Connection to the database
- Returns:
- Connection a valid connection for you to use
- Throws:
NoValidConnectionException
- when there is no valid Connection wrapper
available in the classloader.
NoAvailableConnectionException
- when there are no more available
Connections in the pool.
SQLException
Copyright © 2000-2003 Apache Avalon Project. All Rights Reserved.