public interface DataSourceComponent
extends org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ROLE
The name of the role for convenience
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Gets the Connection to the database
|
java.sql.Connection getConnection()
throws java.sql.SQLException
NoValidConnectionException - when there is no valid Connection wrapper
available in the classloader.NoAvailableConnectionException - when there are no more available
Connections in the pool.java.sql.SQLException